You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2012/05/07 11:39:16 UTC

svn commit: r1334940 - /opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamTest.java

Author: joern
Date: Mon May  7 09:39:16 2012
New Revision: 1334940

URL: http://svn.apache.org/viewvc?rev=1334940&view=rev
Log:
OPENNLP-507 Replaced Parse.toString with Parse.getCoveredText method.

Modified:
    opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamTest.java

Modified: opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamTest.java
URL: http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamTest.java?rev=1334940&r1=1334939&r2=1334940&view=diff
==============================================================================
--- opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamTest.java (original)
+++ opennlp/trunk/opennlp-tools/src/test/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamTest.java Mon May  7 09:39:16 2012
@@ -125,7 +125,7 @@ public class ConstitParseSampleStreamTes
     Parse[] tagNodes = p.getTagNodes();
     String[] tokens = new String[tagNodes.length];
     for (int ti=0;ti<tagNodes.length;ti++){
-      tokens[ti] = tagNodes[ti].toString();
+      tokens[ti] = tagNodes[ti].getCoveredText();
     }
     
     Assert.assertArrayEquals(sample1Tokens, tokens);