With no explanation, label each line with "location-GPE", "O", "person-politician", "art-broadcastprogram", "art-film", "art-music", "art-other", "art-painting", "art-writtenart" or "building-airport" preceded by ":".
Davis
was
appointed
by
President
Ulysses
S.
Grant
U.S
.
Attorney
for
the
Southern
District
of
New
York
and
held
that
office
from
July
20
,
1870
,
to
December
31
,
1872
,
when
he
resigned
.
Davis:person-politician
was:O
appointed:O
by:O
President:O
Ulysses:person-politician
S.:person-politician
Grant:person-politician
U.S:location-GPE
.:location-GPE
Attorney:O
for:O
the:O
Southern:O
District:O
of:O
New:location-GPE
York:location-GPE
and:O
held:O
that:O
office:O
from:O
July:O
20:O
,:O
1870:O
,:O
to:O
December:O
31:O
,:O
1872:O
,:O
when:O
he:O
resigned:O
.:O