Task: Text Categorization
Input (English): A failed naval expedition led by this country's Blanco Encalada resulted in the 1837 Treaty of Paucarpata, while its 1925 Constitution began its Presidential Republic period. This modern day country was captured in a campaign led by Pedro de Valdivia; that campaign saw fighting against its native Araucanian or Mapuche Indians. This country's Patria Vieja period of independence was ended at the Disaster of Rancagua. Its independence campaign was led by men like the Carrera Brothers and Bernardo O'Higgins, and the 19th century saw the flourishing of its free port Valparaiso. For 10 points, name this South American country led in the 20th century by Salvador Allende and Augusto Pinochet.
Output (English): History