* Lemmatize word using ClearNLP lemmatizer.
*/
public static String lemmatize(String word, String pos) throws IOException {
final String ENG_LEMMATIZER_DATA_FILE = "org/apache/ctakes/dependency/parser/models/lemmatizer/dictionary-1.3.1.jar";
AbstractMPAnalyzer lemmatizer;
InputStream lemmatizerModel = FileLocator.getAsStream(ENG_LEMMATIZER_DATA_FILE);
lemmatizer = EngineGetter.getMPAnalyzer(AbstractReader.LANG_EN, lemmatizerModel);
String lemma = lemmatizer.getLemma(word, pos);
lemmatizerModel.close();
return lemma;
}