/** * Construct a hashmap from the input tab separated dictionary. * * The input file should have, for each line, word\tabpostag\tablemma. * Alternatively, if multiple lemmas are possible for each word,postag pair, * then the format should be word\tab\postag\tablemma01#lemma02#lemma03 * * @param dictionary * the input dictionary via inputstream */ public DictionaryLemmatizer(final InputStream dictionary) throws IOException { init(dictionary); }
public DictionaryLemmatizer(File dictionaryFile) throws IOException { try (InputStream in = new FileInputStream(dictionaryFile)) { init(in); } }
/** * Construct a hashmap from the input tab separated dictionary. * * The input file should have, for each line, word\tabpostag\tablemma. * Alternatively, if multiple lemmas are possible for each word,postag pair, * then the format should be word\tab\postag\tablemma01#lemma02#lemma03 * * @param dictionary * the input dictionary via inputstream */ public DictionaryLemmatizer(final InputStream dictionary) throws IOException { init(dictionary); }
/** * Construct a hashmap from the input tab separated dictionary. * * The input file should have, for each line, word\tabpostag\tablemma. * Alternatively, if multiple lemmas are possible for each word,postag pair, * then the format should be word\tab\postag\tablemma01#lemma02#lemma03 * * @param dictionary * the input dictionary via inputstream */ public DictionaryLemmatizer(final InputStream dictionary) throws IOException { init(dictionary); }
public DictionaryLemmatizer(File dictionaryFile) throws IOException { try (InputStream in = new FileInputStream(dictionaryFile)) { init(in); } }
public DictionaryLemmatizer(File dictionaryFile) throws IOException { try (InputStream in = new FileInputStream(dictionaryFile)) { init(in); } }