With no explanation, label each line with "O", "event-other", "person-politician", "location-GPE", "organization-government/governmentagency", "art-broadcastprogram", "art-film", "art-music", "art-other" or "art-painting" preceded by ":".
The
main
military
threats
to
the
Abbasid
Caliphate
were
the
Zanj
Rebellion
in
southern
Iraq
and
the
ambitions
of
Ya'qub
ibn
al-Layth
,
the
founder
of
the
Saffarid
dynasty
,
in
the
east
.
The:O
main:O
military:O
threats:O
to:O
the:O
Abbasid:O
Caliphate:O
were:O
the:O
Zanj:event-other
Rebellion:event-other
in:O
southern:O
Iraq:location-GPE
and:O
the:O
ambitions:O
of:O
Ya'qub:person-politician
ibn:person-politician
al-Layth:person-politician
,:O
the:O
founder:O
of:O
the:O
Saffarid:organization-government/governmentagency
dynasty:organization-government/governmentagency
,:O
in:O
the:O
east:O
.:O