Task: Text Categorization
Input (English): This dynasty continued a system in which one month out of every five was given to military service by those who lived within 500 li of the capital; that was the Fubing system. A Buddhist savings bank stocked by donations was liquidated during this dynasty and was called the "Inexhaustible Treasury."  Governors known as "jiedushi" first sprang up during this period under emperor (*) Xuanzong. A major insurrection during this dynasty ended after Shi Chaoyi killed himself. This dynasty was  interrupted by the second Zhou dynasty when Ruizong announced that his mother, Wu Zetian, would be  emperor. For 10 points, name this Chinese dynasty that lasted from 618 until 907 and faced the An  Lushan rebellion.
Output (English): History