Skip to content

Commit 0b5db63

Browse files
authored
Update adding-synonyms.md
Made the list of disallowed special characters more prominent.
1 parent f7de149 commit 0b5db63

File tree

1 file changed

+26
-2
lines changed
  • articles/cognitive-services/language-service/question-answering/tutorials

1 file changed

+26
-2
lines changed

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

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,36 @@ As you can see, when `troubleshoot` was not added as a synonym, we got a low con
7676
> [!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.
79-
> Synonyms do not allow these special characters: ',', '?', ':', ';', '\"', '\'', '(', ')', '{', '}', '[', ']', '-', '+', '.', '/', '!', '*', '-', '_', '@', '#'
8079
8180
## Notes
8281
* 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.
8482
* 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.
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. Following is the list of special characters **not allowed**:
84+
85+
|Special character | Symbol|
86+
|--------------|--------------------------------|
87+
|Comma | ,|
88+
|Question mark | ?|
89+
|Colon| :|
90+
|Semicolon| ;|
91+
|Double quotation mark| \"|
92+
|Single quotation mark| \'|
93+
|Open parenthesis|(|
94+
|Close parenthesis|)|
95+
|Open brace|{|
96+
|Close brace|}|
97+
|Open bracket|[|
98+
|Close bracket|]|
99+
|Hyphen/dash|-|
100+
|Plus sign|+|
101+
|Period|.|
102+
|Forward slash|/|
103+
|Exclamation mark|!|
104+
|Asterisk|\*|
105+
|Underscore|\_|
106+
|Ampersand|@|
107+
|Hash|#|
108+
85109

86110
## Next steps
87111

0 commit comments

Comments
 (0)