Source

namedentities /

Filename Size Date modified Message
635 B
946 B
2.2 KB
2.2 KB
999 B

Installation

pip install namedentities

Failing that, fall back to the older approach:

easy_install namedentities

(You may need to begin these with "sudo " to authorize installation.)

Usage

Python 2:

import namedentities

u = u'both em\u2014and–dashes…'
print named_entities(u)

Python 3:

import namedentities

u = 'both em\u2014and–dashes…'
print(named_entities(u))

Credits

This is basically a packaging of Ian Beck's work (described in http://beckism.com/2009/03/named_entities_python/)

Thank you, Ian!