edu.washington.cs.knowitall.util
Class DefaultObjects

java.lang.Object
  extended by edu.washington.cs.knowitall.util.DefaultObjects

public class DefaultObjects
extends Object


Field Summary
static String chunkerModelFile
           
static String confFunctionModelFile
           
static String sentDetectorModelFile
           
static String taggerModelFile
           
static String tokenizerModelFile
           
 
Constructor Summary
DefaultObjects()
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

DefaultObjects

public DefaultObjects()
Method Detail

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.