lexpredict-lexnlp icon indicating copy to clipboard operation
lexpredict-lexnlp copied to clipboard

get_companies not working

Open janlukasschroeder opened this issue 4 years ago • 2 comments

Two problems:

  1. 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.

  1. 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

janlukasschroeder avatar Sep 07 '19 08:09 janlukasschroeder

Thanks for sending this. We will need look into this further. Do you or your company have a support contract with us?

ericlex avatar Sep 09 '19 20:09 ericlex

Are there any updates for this in version 2.2.1.0?

themarisolhernandez avatar Aug 30 '22 00:08 themarisolhernandez