sustc icon indicating copy to clipboard operation
sustc copied to clipboard

[VideoService] how to calculate these cases in searchVideo

Open redhecker opened this issue 2 years ago • 4 comments

Describe your question

as i do not have a good understand of the description in searchVideo, i wonder what is the relevance of the following cases:

kewords: "java data ava"

case 1: title "javajava", owner "a", description "b" case 2: title "java javadata", owner "a", description "database"

redhecker avatar Dec 21 '23 03:12 redhecker

case 1:

  • title includes 2 "java" and 2 "ava"

so the relevance is 4

case 2:

  • title includes 2 "java", 2 "ava" and 1 "data"
  • des includes 1 "data"

so the relevance is 6

WhatWEat avatar Dec 21 '23 07:12 WhatWEat

case 1:

  • title includes 2 "java" and 2 "ava"

so the relevance is 4

case 2:

  • title includes 2 "java", 2 "ava" and 1 "data"
  • des includes 1 "data"

so the relevance is 6

A character in these fields can only be counted once for each keyword but can be counted for different keywords.
Examples:
If the title is "111" and the keyword is "11", then the relevance in the title is 1 (one for the occurrence of "11").

Hello, reviewer. Could you again explain the upper example extracted from searchVideo. Why the relevance is 1, instead of 2 because "111" includes two "11"?

Thank you.

dequeueing avatar Dec 22 '23 14:12 dequeueing

case 1:

  • title includes 2 "java" and 2 "ava"

so the relevance is 4 case 2:

  • title includes 2 "java", 2 "ava" and 1 "data"
  • des includes 1 "data"

so the relevance is 6

A character in these fields can only be counted once for each keyword but can be counted for different keywords.
Examples:
If the title is "111" and the keyword is "11", then the relevance in the title is 1 (one for the occurrence of "11").

Hello, reviewer. Could you again explain the upper example extracted from searchVideo. Why the relevance is 1, instead of 2 because "111" includes two "11"?

Thank you.

i think that is because in the description of the interface, it says that "A character in these fields can only be counted once for each keyword but can be counted for different keywords.", thus there is only one "11" in "111"

redhecker avatar Dec 22 '23 14:12 redhecker

redhecker's explanation is right.

WhatWEat avatar Dec 22 '23 14:12 WhatWEat