Extractor
String
SentenceDetector
54555657585960
* @param sc * @throws IOException */ public ChunkedSentenceReader(Reader r, SentenceChunker sc) throws IOException { init(r, new SentenceExtractor(), sc); }
67686970717273
* @throws IOException */ public ChunkedSentenceReader(Reader r) throws IOException { if (SENT_CHUNKER == null) SENT_CHUNKER = new OpenNlpSentenceChunker(); init(r, new SentenceExtractor(), SENT_CHUNKER); }
899091929394959697
extractor.addMapper(SentenceLengthFilter.minFilter(4)); } public static SentenceExtractor getDefaultSentenceExtractor() throws IOException { SentenceExtractor extractor = new SentenceExtractor(); addDefaultSentenceFilters(extractor); return extractor; }