Task: Text Categorization
Input (English): In 1834, this man ran for governor of his home state on the Anti Masonic ticket but lost to John Davis. This president appointed Robert Trimble to the Supreme Court, and was ousted as incumbent in an election that saw his opponent's wife Rachel accused of bigamy. This defending attorney in the Amistad case sorted out border disputes and acquired Florida in a treaty signed with Spanish diplomat Luis Onis. He beat out William Crawford, among others, because no candidate won the majority of electoral votes in the election of 1824 that was swung by Henry Clay's "corrupt bargain. " For 10 points, name this sixth president of the United States, son a president.
Output (English): History