Skip to content

Commit d71e6d8

Browse files
authored
Merge pull request #196264 from shshubhe/patch-23
Update adding-synonyms.md
2 parents 62a8c33 + ffcc1d1 commit d71e6d8

File tree

1 file changed

+6
-1
lines changed
  • articles/cognitive-services/language-service/question-answering/tutorials

1 file changed

+6
-1
lines changed

articles/cognitive-services/language-service/question-answering/tutorials/adding-synonyms.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,16 @@ For the question and answer pair “Fix problems with Surface Pen”, we compare
7373
7474
As you can see, when `troubleshoot` was not added as a synonym, we got a low confidence response to the query “How to troubleshoot your surface pen”. However, after we add `troubleshoot` as a synonym to “fix problems”, we received the correct response to the query with a higher confidence score. Once, these synonyms were added, the relevance of results improved thereby improving user experience.
7575

76-
> [!NOTE]
76+
> [!IMPORTANT]
7777
> Synonyms are case insensitive. Synonyms also might not work as expected if you add stop words as synonyms. The list of stop words can be found here: [List of stop words](https://github.com/Azure-Samples/azure-search-sample-data/blob/master/STOPWORDS.md).
7878
> For instance, if you add the abbreviation **IT** for Information technology, the system might not be able to recognize Information Technology because **IT** is a stop word and is filtered when a query is processed.
7979
> Synonyms do not allow these special characters: ',', '?', ':', ';', '\"', '\'', '(', ')', '{', '}', '[', ']', '-', '+', '.', '/', '!', '*', '-', '_', '@', '#'
8080
81+
## Notes
82+
* Synonyms can be added in any order. The ordering is not considered in any computational logic.
83+
* Special characters are not allowed for synonyms. For hyphenated words like "COVID-19", they are treated the same as "COVID 19", and "space" can be used as a term separator.
84+
* In case of overlapping synonym words between 2 sets of alterations, it may have unexpected results and it is not recommended to use overlapping sets.
85+
8186
## Next steps
8287

8388
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)