We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e2f878 commit d9aa851Copy full SHA for d9aa851
pythainlp/corpus/common.py
@@ -367,7 +367,9 @@ def find_synonyms(word: str) -> List[str]:
367
list_synonym.extend(synonyms["synonym"][idx])
368
list_synonym.append(synonyms["word"][idx])
369
370
+ list_synonym = sorted(list(set(list_synonym)))
371
+
372
if word in list_synonym: # remove same word
373
list_synonym.remove(word)
374
- return sorted(list(set(list_synonym)))
375
+ return list_synonym
0 commit comments