edu.stanford.nlp.ie.machinereading.domains.ace.reader
Class AceSentenceSegmenter

java.lang.Object
  extended by edu.stanford.nlp.ie.machinereading.common.DomReader
      extended by edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceSentenceSegmenter

public class AceSentenceSegmenter
extends DomReader


Constructor Summary
AceSentenceSegmenter()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static java.util.List<java.util.List<AceToken>> tokenizeAndSegmentSentences(java.lang.String filenamePrefix)
           
static AceToken wordTokenToAceToken(RobustTokenizer.WordToken wordToken, int sentence)
           
 
Methods inherited from class edu.stanford.nlp.ie.machinereading.common.DomReader
getAttributeValue, getChildByAttribute, getChildByName, getChildByNameAndAttribute, getChildrenByName, readDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AceSentenceSegmenter

public AceSentenceSegmenter()
Method Detail

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