Task: Text Categorization
Input (English): One rebellion against this dynasty included a group entering a shrine claiming Dervish Reza would bring Mir Faghfur back to life, while another revolt during this dynasty was led by the Nuqtavi Darvish Khusraw. Another Nuqtavi, the Mulla Qasim, called for the abdication of one ruler of this dynasty. That ruler of this dynasty gave control of the royal guard to the Shaykhavand cabal, and that ruler modernized his army with the aid of Robert Sherley. The second ruler of this dynasty signed the Treaty of Amasya with an enemy which had earlier defeated that ruler's father at the battle of Chaldiran. This dynasty was founded by a group known for wearing red hats, the Qizilbash. For 10 points, name this dynasty whose rulers included Tahmasp I, its founder Ismail I, and Abbas the Great.
Output (English): History