public class DefaultObjects extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
chunkerModelFile |
static String |
confFunctionModelFile |
static String |
sentDetectorModelFile |
static String |
taggerModelFile |
static String |
tokenizerModelFile |
| Constructor and Description |
|---|
DefaultObjects() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addDefaultSentenceFilters(SentenceExtractor extractor) |
static opennlp.tools.chunker.Chunker |
getDefaultChunker() |
static HtmlSentenceExtractor |
getDefaultHtmlSentenceExtractor() |
static opennlp.tools.postag.POSTagger |
getDefaultPosTagger() |
static opennlp.tools.sentdetect.SentenceDetector |
getDefaultSentenceDetector() |
static SentenceExtractor |
getDefaultSentenceExtractor() |
static ChunkedSentenceReader |
getDefaultSentenceReader(Reader in) |
static ChunkedSentenceReader |
getDefaultSentenceReader(Reader in,
boolean htmlSource)
Return the default sentence reader.
|
static ChunkedSentenceReader |
getDefaultSentenceReaderHtml(Reader in) |
static opennlp.tools.tokenize.Tokenizer |
getDefaultTokenizer() |
static InputStream |
getResourceAsStream(String resource) |
static void |
initializeNlpTools() |
public static final String tokenizerModelFile
public static final String taggerModelFile
public static final String chunkerModelFile
public static final String sentDetectorModelFile
public static final String confFunctionModelFile
public static InputStream getResourceAsStream(String resource) throws IOException
IOExceptionpublic static void initializeNlpTools()
throws IOException
IOExceptionpublic static opennlp.tools.tokenize.Tokenizer getDefaultTokenizer()
throws IOException
IOExceptionpublic static opennlp.tools.postag.POSTagger getDefaultPosTagger()
throws IOException
IOExceptionpublic static opennlp.tools.chunker.Chunker getDefaultChunker()
throws IOException
IOExceptionpublic static opennlp.tools.sentdetect.SentenceDetector getDefaultSentenceDetector()
throws IOException
IOExceptionpublic static void addDefaultSentenceFilters(SentenceExtractor extractor)
public static SentenceExtractor getDefaultSentenceExtractor() throws IOException
IOExceptionpublic static HtmlSentenceExtractor getDefaultHtmlSentenceExtractor() throws IOException
IOExceptionpublic static ChunkedSentenceReader getDefaultSentenceReader(Reader in, boolean htmlSource) throws IOException
in - htmlSource - - Are sentences from an html source?IOExceptionpublic static ChunkedSentenceReader getDefaultSentenceReader(Reader in) throws IOException
IOExceptionpublic static ChunkedSentenceReader getDefaultSentenceReaderHtml(Reader in) throws IOException
IOExceptionCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.