views:

47

answers:

1

The typed dependencies given by stanford parser online

http://nlp.stanford.edu:8080/parser/ and the dependencies generated by the sourcecode given aren't same

The versions of source codes available in stanford website does not generate abbrev,possesive and poss tags.

Which version of stanford parser to use for generating these tags?

A: 

They are the same. The answer was that you had to invoke the parser in a way that would cause tokenization of the input. Some examples are:

LexicalizedParser lp = new LexicalizedParser("englishPCFG.ser.gz");
String sent = "This is one last test!";
lp.apply(sent).pennPrint();

or in a more complex scenario:

Tokenizer<? extends HasWord> toke = tlp.getTokenizerFactory().getTokenizer(new StringReader(sent));
List<? extends HasWord> sentence = toke.tokenize();
lp.apply(sentence);
Christopher Manning