Task: Text Categorization
Input (English): One thinker during this dynasty studied "meta philosophy" in his Asfar, and it saw Iskander Beg Monshi write a biography of one of its most famous rulers, who astonished Pietro della Valle with his knowledge of Christianity. That man also mocked the Kurds after his victory at the Battle of DimDim. Two rulers of this dynasty worked with the incorruptible vizier Saru Taqi, and another ruler of this dynasty was nicknamed "Very well! " and had to face rebellions by Mir Veis and the Ghilzai Afghans. Another ruler signed the Peace of Amasya, which lasted until the time of Mohammaed Kondabanda. This dynasty was succeeded by Nader Shah and the Afsharids, and was aided by the brothers Anthony and Robert Shirley. Various rulers of this dynasty were troubled by the rise of Qizilbashi factions, whose intertribal issues came to light after this dynasty's loss at the Battle of Chaldiran. For 10 points, name this Twelver Shia dynasty of Persia, noted for rulers such as Ismail, Tahmasp, and Abbas.
Output (English): History