• Stars
    star
    293
  • Rank 140,889 (Top 3 %)
  • Language
    Python
  • License
    Other
  • Created over 12 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Python interface to the Stanford Named Entity Recognizer

PyNER

The Python interface to the Stanford Named Entity Recognizer.

Project Homepage

Installation

$ python setup.py install

Basic Usage

>>> import ner
>>> tagger = ner.HttpNER(host='localhost', port=8080)
>>> tagger.get_entities("University of California is located in California, United States")
{'LOCATION': ['California', 'United States'],
 'ORGANIZATION': ['University of California']}
>>> tagger.json_entities("Alice went to the Museum of Natural History.")
'{"ORGANIZATION": ["Museum of Natural History"], "PERSON": ["Alice"]}'

Online Demo

License

BSD License

Author

PyNER is developed by maintained by Dat Hoang. It can be found here: http://github.com/dat/pyner