edu.stanford.nlp.ie.machinereading.domains.ace.reader
Class AceSentenceSegmenter
java.lang.Object
edu.stanford.nlp.ie.machinereading.common.DomReader
edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceSentenceSegmenter
public class AceSentenceSegmenter
- extends DomReader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AceSentenceSegmenter
public AceSentenceSegmenter()
tokenizeAndSegmentSentences
public static java.util.List<java.util.List<AceToken>> tokenizeAndSegmentSentences(java.lang.String filenamePrefix)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Parameters:
filenamePrefix - path to an ACE .sgm file (but not including the .sgm extension)
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
wordTokenToAceToken
public static AceToken wordTokenToAceToken(RobustTokenizer.WordToken wordToken,
int sentence)
main
public static void main(java.lang.String[] args)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
Stanford NLP Group