wordent_utils module

wordent_utils.penn_to_wn(tag)[source]

Convert PENN to WordNet Format

Parameters:tag (str) – PENN Tag
Returns:Wordent Representation
Return type:str
wordent_utils.word_to_hyperTouple(word)[source]

Given an arbitrary word, return a touple of a word and the closest ancestor hypernym in the hierarchy

Parameters:word (str) – an arbitrary word
Returns:Wordent Representation
Return type:str
wordent_utils.word_to_wn(word)[source]

Convert a string/word to WordNet Format

Parameters:word (str) – an arbitrary word
Returns:Wordent Representation
Return type:str
wordent_utils.wordnet_context(word)[source]
wordent_utils.wordnet_synonyms(word)[source]

Given an arbitrary word, return the closest WordNet synonym list

Parameters:word (str) – an arbitrary word
Returns:synonym list
Return type:synonyms (list)