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 ":".
He
was
dismissed
and
replaced
as
Viceroy
of
Catalonia
by
Pedro
Antonio
de
Aragón
,
1642–1644
.
He:O
was:O
dismissed:O
and:O
replaced:O
as:O
Viceroy:O
of:O
Catalonia:location-GPE
by:O
Pedro:person-politician
Antonio:person-politician
de:person-politician
Aragón:person-politician
,:O
1642–1644:O
.:O