Dependencies given and the dependencies given by the given source code are not the same.
Abbreviations, titles and tags are not produced in the version of available source code in the Stanford website.
Which version of the Stanford Parser is meant to create these tags?
They are similar, the answer was that you had to include the parser in such a manner, to determine the input Possible. Some examples are:
Lexicized parser LP = lexicalized parser. Load model ("edu / stanford / nlp / model / lexparser / englishPCFG.ser.gz"); Sent string = "This is a final exam!"; Lp.apply (sent) .pennPrint ();
Or in a more complicated scenario:
TribBeck speaker tlp = lp.getOp (). Langpack (); Do the Tokenizer & lt;? HasWord Extended & gt; Toke = tlp.getTokenizerFactory () GetTokenizer (new string reader (sent)); List & lt;? HasWord Extended & gt; Sentence = toke.tokenize (); Lp.apply (sentence);
Comments
Post a Comment