} catch (IOException e) {
throw new TerminateToolException(-1, "Failed to load sentence detector model!", e);
}
}
else {
sentDetector = new NewlineSentenceDetector();
}
Tokenizer tokenizer = WhitespaceTokenizer.INSTANCE;
if (params.getTokenizerModel() != null) {