Task: Text Categorization
Input (English): One notable ambassador to this dynasty was Kibi no Makibi, and this dynasty was founded partly by the chancellor Li Shimin. It was ended by a rebellion lead by Huang Cho, and was weakened by the rise of military governors known as jiedushi. One ruler of this dynasty required visitors to perform oral sex on her as a sign of respect, and briefly interrupted this dynasty with the Second Zhou. That ruler, Empress Wu, was usurped by Zuanzhong. This dynasty saw the rise of the civil service exam system, as well as the rebellion of a Sogdian Turk, An Lushan. With its capital at Changan, FTP, name this Chinese dynasty that preceded the 5 dynasties and 10 kingdoms period and lasted from 618 to 907 AD.
Output (English): History