pip install namedentities
Failing that, fall back to the older approach:
(You may need to begin these with "sudo " to authorize installation.)
NOTA BENE Code runs successfully under Python 3, but packaging seemingly doesn't work as yet.
from namedentities import named_entities u = u'both em\u2014and–dashes…' print named_entities(u)
from namedentities import named_entities u = 'both em\u2014and–dashes…' print(named_entities(u))
This is basically a packaging of Ian Beck's work (described in http://beckism.com/2009/03/named_entities_python/)
Thank you, Ian!