sentence1: From 1871 to 1876 , he served as an internal collector of federal revenue for the district that included Hamilton .
sentence2: From 1871 to 1876 he served as internal collector of federal revenue for the district that included Hamilton .