python synonym library

Solutions on MaxInterview for python synonym library by the best coders in the world

showing results for - "python synonym library"
Clare
19 Apr 2018
1from PyDictionary import PyDictionary
2
3dictionary=PyDictionary("hotel","ambush","nonchalant","perceptive")
4'There can be any number of words in the Instance'
5
6print(dictionary.printMeanings()) '''This print the meanings of all the words'''
7print(dictionary.getMeanings()) '''This will return meanings as dictionaries'''
8print (dictionary.getSynonyms())
9
10print (dictionary.translateTo("hi")) '''This will translate all words to Hindi'''
11