Skip to content
This repository

Python interface to the Stanford Named Entity Recognizer

branch: master

Merge pull request #8 from chyikwei/fix_socket_error

handle socket error (for issue #7)
latest commit d5e1563eed
dat hoang authored
Octocat-spinner-32 ner remove additional '+' December 23, 2013
Octocat-spinner-32 tests Init rev. April 11, 2012
Octocat-spinner-32 .gitignore Init rev. April 11, 2012
Octocat-spinner-32 LICENSE Init rev. April 11, 2012
Octocat-spinner-32 MANIFEST.in Init rev. April 11, 2012
Octocat-spinner-32 README.md Update project info. January 19, 2013
Octocat-spinner-32 run_tests Init rev. April 11, 2012
Octocat-spinner-32 setup.py Adds email to elimiate register warning. August 29, 2013
README.md

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

Something went wrong with that request. Please try again.