Published January 18, 2022
| Version v1.3.2
Software
Open
nleguillarme/taxonerd: v1.3.2
Creators
Description
Code refactoring to expose the Doc object produced by spaCy. Only available when taxonerd is used as a python module.
>>> from taxonerd import TaxoNERD
>>> ner = TaxoNERD(model="en_ner_eco_md", prefer_gpu=False, with_abbrev=False)
>>> doc = ner.ner("Brown bears (Ursus arctos), which are widely distributed throughout the northern hemisphere, are recognised as opportunistic omnivore")
>>> print([ent for ent in doc.ents])
[Ursus arctos]
Files
nleguillarme/taxonerd-v1.3.2.zip
Files
(112.6 kB)
Name | Size | Download all |
---|---|---|
md5:6224e5cab18316d4631b0669574f1f9e
|
112.6 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/nleguillarme/taxonerd/tree/v1.3.2 (URL)