Revision: 18984
http://sourceforge.net/p/gate/code/18984
Author: ian_roberts
Date: 2015-11-03 16:06:22 +0000 (Tue, 03 Nov 2015)
Log Message:
-----------
Use parse instead of parseTree to guard against NPEs - in cases of parse
failure, parseTree returns null whereas parse returns a valid but degenerate
parse tree (with all words attached directly to the root).
Modified Paths:
--------------
gate/trunk/plugins/Stanford_CoreNLP/src/gate/stanford/Parser.java
Modified: gate/trunk/plugins/Stanford_CoreNLP/src/gate/stanford/Parser.java
===================================================================
--- gate/trunk/plugins/Stanford_CoreNLP/src/gate/stanford/Parser.java
2015-11-03 02:21:37 UTC (rev 18983)
+++ gate/trunk/plugins/Stanford_CoreNLP/src/gate/stanford/Parser.java
2015-11-03 16:06:22 UTC (rev 18984)
@@ -285,7 +285,7 @@
}
}
- tree = stanfordParser.parseTree(wordList);
+ tree = stanfordParser.parse(wordList);
checkInterruption();
if (addConstituentAnnotations || addPosTags) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs