szte.csd
Class SyntaxParser
java.lang.Object
szte.csd.SyntaxParser
public class SyntaxParser
- extends java.lang.Object
SyntaxParser is an utility class for parsing sentences, it wraps the Stanford parser (http://nlp.stanford.edu/software/lex-parser.shtml).
If uses a cache for parsed sentences which is serializable, thus each dataset can be parsed only once.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyntaxParser
public SyntaxParser(java.lang.String task)
getDocProcessor
public edu.stanford.nlp.process.DocumentPreprocessor getDocProcessor()
parseSentence
public edu.stanford.nlp.trees.GrammaticalStructure parseSentence(java.lang.String sent)
serailizeParsedSentences
public void serailizeParsedSentences()
main
public static void main(java.lang.String[] a)