In [4]:
import nltk

In [1]:
sentence = """At eight o'clock on Thursday morning in Chicago, Arthur
didn't feel very good."""

In [7]:
tokens = nltk.word_tokenize(sentence)

In [9]:
tagged = nltk.pos_tag(tokens)

In [11]:
entities = nltk.chunk.ne_chunk(tagged)

In [13]:
list(entities)


Out[13]:
[('At', 'IN'),
 ('eight', 'CD'),
 ("o'clock", 'JJ'),
 ('on', 'IN'),
 ('Thursday', 'NNP'),
 ('morning', 'NN'),
 ('in', 'IN'),
 Tree('GPE', [('Chicago', 'NNP')]),
 (',', ','),
 Tree('PERSON', [('Arthur', 'NNP')]),
 ('did', 'VBD'),
 ("n't", 'RB'),
 ('feel', 'VB'),
 ('very', 'RB'),
 ('good', 'JJ'),
 ('.', '.')]

In [ ]: