if (input.size() > 5) {
maxNGram = Integer.parseInt((String) input.get(5));
}
if (stopwords != null && stopwords.size() != 0) {
analyzer = new NGramEnglishAnalyzer(Version.LUCENE_31, stopwords, stem, outputUnigrams, minNGram,
maxNGram);
} else {
analyzer = new NGramEnglishAnalyzer(Version.LUCENE_31, StandardAnalyzer.STOP_WORDS_SET, stem,
outputUnigrams, minNGram, maxNGram);
}
}
DataBag output = bagFactory.newDefaultBag();