szte.csd
Class SyntaxParser

java.lang.Object
  extended by 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.


Constructor Summary
SyntaxParser(java.lang.String task)
           
 
Method Summary
 edu.stanford.nlp.process.DocumentPreprocessor getDocProcessor()
           
static void main(java.lang.String[] a)
           
 edu.stanford.nlp.trees.GrammaticalStructure parseSentence(java.lang.String sent)
           
 void serailizeParsedSentences()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxParser

public SyntaxParser(java.lang.String task)
Method Detail

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)