unigramTagger = new TwoDimensionalCounter<String, String>();
}
public void process() throws IOException {
SpanishXMLTreeReaderFactory trf = new SpanishXMLTreeReaderFactory();
Tree t;
for (File file : fileList) {
Reader in =
new BufferedReader(new InputStreamReader(new FileInputStream(file),
SpanishTreebankLanguagePack.STB_ENCODING));
TreeReader tr = trf.newTreeReader(in);
// Tree reading will implicitly perform tree normalization for us
while ((t = tr.readTree()) != null) {
// Update tagger with this tree
List<CoreLabel> yield = t.taggedLabeledYield();