microsoft / CognitiveServicesLanguageUtilities

Utilities for the Cognitive Service Custom Text document processing tool.
MIT License
17 stars 1 forks source link

Return multiple matches #102

Closed AhmedLeithy closed 3 years ago

AhmedLeithy commented 3 years ago

MatchSentenceAsync now returns a List. An optional paramter "similarityThreshold" is added for the filtering process. If the paramter is left empty, only the most matching result is included in the list (old behavior).

Tested with the sentence "ambitious man wins garbage jump" and threshold 0.35, which returns a list of two matching results.

We could also create two separate functions, one for returning the most matching result and another for returning a list. Which is better?

Closes #96.