pyhugeconnector package

Submodules

pyhugeconnector.pyhugeconnector module

pyhugeconnector.pyhugeconnector.thesaurus_entry(word, api_key, pos_tag, ngram=0, relationship_type=None)[source]

Return the Thesaurus entry for the given word.

Keyword arguments:

  • word – The word to look up (mandatory, no default)
  • api_key – Your API Key for the Big Huge Thesaurus, get your key here: https://words.bighugelabs.com/getkey.php (mandatory, no default)
  • pos_tag – WordNet style (i.e. ‘n’, ‘v’, nltk.corpus.wordnet.NOUN) or Big Huge Thesaurus style PoS Tag (i.e. ‘noun’, ‘verb’), use the function thesaurus_entry_raw if you don’t want a PoS filter (mandatory, no default)
  • ngram – Filter for specific n-grams, pass ngram=0 to get all n-grams (default: 0)
  • relationship_type – Use ‘syn’ for synonyms, ‘ant’ for antonyms, ‘rel’ for related terms, ‘sim’ for similar terms, ‘usr’ for user suggestions and None for all (default: None)
pyhugeconnector.pyhugeconnector.thesaurus_entry_raw(word, api_key, response_format='json', return_complete_response_obj=False)[source]

Return the raw Thesaurus entry for the given word (in the given response format)

Keyword arguments:

Module contents

Table Of Contents

This Page