* @throws IOException
*/
private static void processText(TreebankNameFinder[] finders, String[] tags, BufferedReader input) throws IOException {
Span[][] nameSpans = new Span[finders.length][];
String[][] nameOutcomes = new String[finders.length][];
opennlp.tools.tokenize.Tokenizer tokenizer = new SimpleTokenizer();
StringBuffer output = new StringBuffer();
for (String line = input.readLine(); null != line; line = input.readLine()) {
if (line.equals("")) {
clearPrevTokenMaps(finders);
System.out.println();
continue;
}
output.setLength(0);
Span[] spans = tokenizer.tokenizePos(line);
String[] tokens = Span.spansToStrings(spans,line);
for (int fi = 0, fl = finders.length; fi < fl; fi++) {
nameSpans[fi] = finders[fi].nameFinder.find(tokens);
//System.err.println("EnglighNameFinder.processText: "+tags[fi] + " " + java.util.Arrays.asList(finderTags[fi]));
nameOutcomes[fi] = NameFinderEventStream.generateOutcomes(nameSpans[fi], null, tokens.length);