Missing `models` directory when installed
Closed this issue · 2 comments
dwillis commented
Thanks for this - looks super interesting! Might be something I've done wrong, but have installed insight_extractor using Python 3.8 on OSX and when I try the example usage with some sentences I get:
>>> from insight_extractor.pipeline import extract_insights
>>> predictions = extract_insights(sentences)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/derekwillis/.virtualenvs/tensorflow-sandbox-JLWPiXbX/lib/python3.8/site-packages/insight_extractor/pipeline.py", line 25, in extract_insights
tokenized_docs = tokenize(cleaned_docs, TOKENIZER_PATH) # tokenize docs
File "/Users/derekwillis/.virtualenvs/tensorflow-sandbox-JLWPiXbX/lib/python3.8/site-packages/insight_extractor/preprocessors.py", line 53, in tokenize
with open(file) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/derekwillis/.virtualenvs/tensorflow-sandbox-JLWPiXbX/lib/python3.8/site-packages/insight_extractor/models/combined-tokenizer.json'
>>>
Checking the virtualenv confirms that the models
directory is not present.
soodoku commented
@NoahFinberg push to pypi when you get a chance
NoahFinberg commented
Apologies for missing this comment. Version 1.1.2 should be pushed to pypi now. Please let me know if there are any more issues. Thanks @suriyan for the fix here.