Important: the case ofs in the@Synonymand the@Vocabularydoes not affect the recognition result.@Test String
Example: [ {'synonym': 'honda', 'reference': 'HONDA', 'entity': 'car_brand', 'start': 0, 'end': 5} ]
Example: : I need two tickets to NY Recognition result: [ {'synonym': 'NY', 'reference': 'New York', 'entity': 'New York', 'start': 24, 'end': 25}, {'synonym': 'NY', 'reference': 'New York', 'entity': 'New York', 'start': 24, 'end': 25} ] The word NY was found in 2@Test Stringin one@Entity.@Vocabulary
Example: : I want to buy tickets from LA to NY Recognition result: [ {'synonym': 'LA', 'reference': 'LA', 'entity': 'LA', 'start': 22, 'end': 23}, {'synonym': 'NY', 'reference': 'NY', 'entity': 'NY', 'start': 32, 'end': 33} ] The word LA was found in 1@Test Stringin the@Entity, the word NY was found in 1@Vocabularyin the@Entity.@Vocabulary
Example: : buy tickets Moscow - St. Petersburg - Moscow [ {'synonym': 'Moscow', 'reference': 'Moscow', 'entity': 'Moscow', 'start': 14, 'end': 20}, {'synonym': 'Peter', 'reference': 'St. Petersburg', 'entity': 'St. Petersburg', 'start': 21, 'end': 26}, {'synonym': 'Moscow', 'reference': 'Moscow', 'entity': 'Moscow', 'start': 27, 'end': 33} ] The word Moscow matches the@Test String'Moscow' in the@Entityand is present in the@Vocabularytwice.@Test String