Identification de l'entité nommée NLTK sur une liste Python

J'ai utilisé NLTK de ne_chunk pour extraire des entités nommées à partir d'un texte:

my_sent = "WASHINGTON -- In the wake of a string of abuses by New York police officers in the 1990s, Loretta E. Lynch, the top federal prosecutor in Brooklyn, spoke forcefully about the pain of a broken trust that African-Americans felt and said the responsibility for repairing generations of miscommunication and mistrust fell to law enforcement."


nltk.ne_chunk(my_sent, binary=True)

Mais je ne peux pas trouver comment sauver ces entités à une liste? E. g. –

print Entity_list
('WASHINGTON', 'New York', 'Loretta', 'Brooklyn', 'African')

Grâce.

source d'informationauteur Zlo