Task: Text Categorization
Input (English): This government legalized a system of alternate attendance among feudal lords, where they were required to spend one year within their domains and one in the capital. One challenge to it came from disgruntled ronin lead by Yui Shotetsu, who attempted a coup called the Keian Uprising. Its downfall came during the Bakamatsu, during which popular sentiment called for expelling the barbarians, leading to the Boshin War and resignation of Yoshinobu. It was founded after its namesakes victory over Ishida Mitsunari at Sekigahara, and it also signed of the Treaty of Kanagawa with Matthew Perry. Immediately followed by the Meiji restoration, FTP, name this Shogunate, founded by Ieyasu, that ruled Japan from 1600 to 1868.
Output (English): History