kevinlu1248 / pyate

PYthon Automated Term Extraction
https://kevinlu1248.github.io/pyate/
MIT License
305 stars 37 forks source link

PyATE 0.5.3: general_corpus_size parameter for weirdness is ignored #54

Closed bryanj1234 closed 2 years ago

bryanj1234 commented 2 years ago

In weirdness.py the parameter general_corpus_size is ignored. This means you have to write

pyate.term_extraction.TermExtraction.config["DEFAULT_GENERAL_DOMAIN_SIZE"] = 5000
pyate.weirdness(text)

instead of just writing

pyate.weirdness(text, general_corpus_size=5000)

Appears to be the same issue in term_extractor.py.

kevinlu1248 commented 2 years ago

Thanks for the catch.