edu.washington.cs.knowitall.sentenceextractor
Class StandardSentenceExtractor

java.lang.Object
  extended by edu.washington.cs.knowitall.sentenceextractor.AbstractSentenceExtractor
      extended by edu.washington.cs.knowitall.sentenceextractor.StandardSentenceExtractor
Direct Known Subclasses:
XmlSentenceExtractor

public class StandardSentenceExtractor
extends AbstractSentenceExtractor


Field Summary
protected  String[] endBrackets
           
protected  Pattern endPattern
           
protected  String junk
           
protected  String[] startBrackets
           
protected  Pattern startPattern
           
protected  Pattern wordPattern
           
 
Constructor Summary
StandardSentenceExtractor()
           
 
Method Summary
 String clean(String sentence)
           
 boolean validate(String sentence)
           
 
Methods inherited from class edu.washington.cs.knowitall.sentenceextractor.AbstractSentenceExtractor
extract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

junk

protected String junk

startPattern

protected Pattern startPattern

endPattern

protected Pattern endPattern

startBrackets

protected String[] startBrackets

endBrackets

protected String[] endBrackets

wordPattern

protected Pattern wordPattern
Constructor Detail

StandardSentenceExtractor

public StandardSentenceExtractor()
                          throws opennlp.tools.util.InvalidFormatException,
                                 FileNotFoundException,
                                 IOException
Throws:
opennlp.tools.util.InvalidFormatException
FileNotFoundException
IOException
Method Detail

clean

public String clean(String sentence)
Specified by:
clean in class AbstractSentenceExtractor

validate

public boolean validate(String sentence)
Specified by:
validate in class AbstractSentenceExtractor


Copyright © 2011 University of Washington CSE. All Rights Reserved.