put tagged sentences into a file