lexpredict-lexnlp
lexpredict-lexnlp copied to clipboard
get_companies not working
Two problems:
- running the example in your docs returns faulty results
import lexnlp.extract.en.entities.nltk_re
text = "This is Deutsche Bank Securities Inc."
print(list(lexnlp.extract.en.entities.nltk_re.get_companies(text)))
# [('This is Deutsche Bank Securities', 'Inc', 'Bank')]
I didn't expect "This is" to be included in the result. That's of no value at.
- running the example with different input doesn't work at all
import lexnlp.extract.en.entities.nltk_re
text = "Google acquired Tableau"
print(list(lexnlp.extract.en.entities.nltk_re.get_companies(text)))
# [ ]
The result is empty. I expected to see Google
and Tableau
.
Link to faulty example: https://lexpredict-lexnlp.readthedocs.io/en/latest/modules/extract/en/companies.html#extract-en-companies
Thanks for sending this. We will need look into this further. Do you or your company have a support contract with us?
Are there any updates for this in version 2.2.1.0?