edu.washington.cs.knowitall.util
Class DefaultObjects
java.lang.Object
edu.washington.cs.knowitall.util.DefaultObjects
public class DefaultObjects
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tokenizerModelFile
public static final String tokenizerModelFile
- See Also:
- Constant Field Values
taggerModelFile
public static final String taggerModelFile
- See Also:
- Constant Field Values
chunkerModelFile
public static final String chunkerModelFile
- See Also:
- Constant Field Values
sentDetectorModelFile
public static final String sentDetectorModelFile
- See Also:
- Constant Field Values
confFunctionModelFile
public static final String confFunctionModelFile
- See Also:
- Constant Field Values
DefaultObjects
public DefaultObjects()
getResourceAsStream
public static InputStream getResourceAsStream(String resource)
throws IOException
- Throws:
IOException
initializeNlpTools
public static void initializeNlpTools()
throws IOException
- Throws:
IOException
getDefaultTokenizer
public static opennlp.tools.tokenize.Tokenizer getDefaultTokenizer()
throws IOException
- Throws:
IOException
getDefaultPosTagger
public static opennlp.tools.postag.POSTagger getDefaultPosTagger()
throws IOException
- Throws:
IOException
getDefaultChunker
public static opennlp.tools.chunker.Chunker getDefaultChunker()
throws IOException
- Throws:
IOException
getDefaultSentenceDetector
public static opennlp.tools.sentdetect.SentenceDetector getDefaultSentenceDetector()
throws IOException
- Throws:
IOException
addDefaultSentenceFilters
public static void addDefaultSentenceFilters(SentenceExtractor extractor)
getDefaultSentenceExtractor
public static SentenceExtractor getDefaultSentenceExtractor()
throws IOException
- Throws:
IOException
getDefaultHtmlSentenceExtractor
public static HtmlSentenceExtractor getDefaultHtmlSentenceExtractor()
throws IOException
- Throws:
IOException
getDefaultSentenceReader
public static ChunkedSentenceReader getDefaultSentenceReader(Reader in,
boolean htmlSource)
throws IOException
- Return the default sentence reader.
- Parameters:
in - htmlSource - - Are sentences from an html source?
- Returns:
-
- Throws:
IOException
getDefaultSentenceReader
public static ChunkedSentenceReader getDefaultSentenceReader(Reader in)
throws IOException
- Throws:
IOException
getDefaultSentenceReaderHtml
public static ChunkedSentenceReader getDefaultSentenceReaderHtml(Reader in)
throws IOException
- Throws:
IOException
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.