Skip to content
Python interface to the Stanford Named Entity Recognizer
Find file
Latest commit d5e1563 @dat Merge pull request #8 from chyikwei/fix_socket_error
handle socket error (for issue #7)
Failed to load latest commit information.
ner remove additional '+'
tests Init rev.
.gitignore Init rev.
LICENSE Init rev. Update project info.
run_tests Init rev. Adds email to elimiate register warning.


The Python interface to the Stanford Named Entity Recognizer.

Project Homepage


$ python 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


BSD License


PyNER is developed by maintained by Dat Hoang. It can be found here:

Something went wrong with that request. Please try again.