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 ":".
In
1977
he
was
appointed
senator
by
Royal
prerogative
of
King
Juan
Carlos
,
then
,
following
the
first
democratic
Spanish
general
election
,
1977
he
was
elected
as
a
socialist
senator
a
post
he
held
until
1979
.
In:O
1977:O
he:O
was:O
appointed:O
senator:O
by:O
Royal:O
prerogative:O
of:O
King:O
Juan:person-politician
Carlos:person-politician
,:O
then:O
,:O
following:O
the:O
first:O
democratic:O
Spanish:location-GPE
general:O
election:O
,:O
1977:O
he:O
was:O
elected:O
as:O
a:O
socialist:O
senator:O
a:O
post:O
he:O
held:O
until:O
1979:O
.:O