Jun-23-2017, 05:22 PM
(This post was last modified: Jun-23-2017, 05:22 PM by vijaymadhu.)
This is the code which generates synonyms for each word in words_unique
> WORD SYNONYM1 SYNONYM2 SYNONYM3 SYNONYM4 SYNONYM5 SYNONYM6
> beautiful alluring appealing charming cute dazzling delicate
This needs to be exported to csv.
synonym = [] for i in words_unique: synonym.append(wordnet.synsets(i))The result I want is something like this
> WORD SYNONYM1 SYNONYM2 SYNONYM3 SYNONYM4 SYNONYM5 SYNONYM6
> beautiful alluring appealing charming cute dazzling delicate
This needs to be exported to csv.