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:38:41 UTC
svn commit: r1334939 -
/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamFactory.java
Author: joern
Date: Mon May 7 09:38:41 2012
New Revision: 1334939
URL: http://svn.apache.org/viewvc?rev=1334939&view=rev
Log:
OPENNLP-342 Fixed mistake in stream registration.
Modified:
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamFactory.java
Modified: opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamFactory.java
URL: http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamFactory.java?rev=1334939&r1=1334938&r2=1334939&view=diff
==============================================================================
--- opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamFactory.java (original)
+++ opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/frenchtreebank/ConstitParseSampleStreamFactory.java Mon May 7 09:38:41 2012
@@ -23,7 +23,6 @@ import opennlp.tools.cmdline.params.Lang
import opennlp.tools.formats.DirectorySampleStream;
import opennlp.tools.formats.LanguageSampleStreamFactory;
import opennlp.tools.formats.convert.FileToByteArraySampleStream;
-import opennlp.tools.namefind.NameSample;
import opennlp.tools.parser.Parse;
import opennlp.tools.util.ObjectStream;
@@ -47,7 +46,7 @@ public class ConstitParseSampleStreamFac
}
public static void registerFactory() {
- StreamFactoryRegistry.registerFactory(NameSample.class, "frenchtreebank",
+ StreamFactoryRegistry.registerFactory(Parse.class, "frenchtreebank",
new ConstitParseSampleStreamFactory());
}
}