/** Called by {@link #EnglishLemmatizer()}. */ private EnglishInflection getInflectionRules(Element eInflection, String type, String basePOS) throws IOException { Element eAffixes = XMLUtils.getFirstElementByTagName(eInflection, type); InputStream baseStream = IOUtils.getInputStreamsFromResource(ROOT + type + EXT_BASE); InputStream exceptionStream = IOUtils.getInputStreamsFromResource(ROOT + type + EXT_EXCEPTION); return getInflection(baseStream, exceptionStream, eAffixes, basePOS); }
/** Called by {@link #EnglishLemmatizer()}. */ private EnglishInflection getInflectionRules(Element eInflection, String type, String basePOS) throws IOException { Element eAffixes = XMLUtils.getFirstElementByTagName(eInflection, type); InputStream baseStream = IOUtils.getInputStreamsFromResource(ROOT + type + EXT_BASE); InputStream exceptionStream = IOUtils.getInputStreamsFromResource(ROOT + type + EXT_EXCEPTION); return getInflection(baseStream, exceptionStream, eAffixes, basePOS); }