Task: Text Categorization
Input (English): Their final defeat came in 1258, when Hulagu Khan put the last ruler to death. For three centuries before that, they served only as figureheads, at the mercy of military commanders. With their capital at Baghdad, their glory days were in the eighth and ninth centuries, under the leadership of Abdullah al-Mamun and his father, Harun ar-Rashid. FTP, name the caliphate which overthrew the Umayyads in 750, descendants of the uncle of Mohammed.
Output (English): History