public void evaluateInflection(InputStream in) throws Exception
{
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
Map<String,Map<String,Prob2DMap>> smap = Maps.newHashMap();
EnglishInflection inflection;
String line, f, m, p;
String[] t;
while ((line = reader.readLine()) != null)
{
t = PTLib.splitTabs(line);
f = t[0];
m = t[1];
p = t[2];
if (MPLibEn.isVerb(p)) inflection = inf_verb;
else if (MPLibEn.isNoun(p)) inflection = inf_noun;
else if (MPLibEn.isAdjective(p)) inflection = inf_adjective;
else if (MPLibEn.isAdverb(p)) inflection = inf_adverb;
else continue;
for (AbstractAffixMatcher matcher : inflection.getSuffixMatchers())
((EnglishSuffixMatcher)matcher).evaluateInflection(smap, inflection.getBaseSet(), m, f, p);
}
printEvaluation(smap);
}