addDictionaryEntriesToTree(tree, conceptName, dictionaryInputStream);
} finally {
dictionaryInputStream.close();
}
}
tree.prepare();
return tree;
}
private static void addDictionaryEntriesToTree(AhoCorasick tree, String type, InputStream dictionaryInputStream) throws IOException {
CsvPreference csvPrefs = CsvPreference.EXCEL_PREFERENCE;