function to create pos tagger training files from treebank files