You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jk...@apache.org on 2011/10/29 14:45:46 UTC
svn commit: r1194883 -
/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/Conll02NameSampleStreamFactory.java
Author: jkosin
Date: Sat Oct 29 12:45:45 2011
New Revision: 1194883
URL: http://svn.apache.org/viewvc?rev=1194883&view=rev
Log:
OPENNLP-335: this correclty allows all types if specified on the command line
Modified:
incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/Conll02NameSampleStreamFactory.java
Modified: incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/Conll02NameSampleStreamFactory.java
URL: http://svn.apache.org/viewvc/incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/Conll02NameSampleStreamFactory.java?rev=1194883&r1=1194882&r2=1194883&view=diff
==============================================================================
--- incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/Conll02NameSampleStreamFactory.java (original)
+++ incubator/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/formats/Conll02NameSampleStreamFactory.java Sat Oct 29 12:45:45 2011
@@ -74,15 +74,15 @@ public class Conll02NameSampleStreamFact
typesToGenerate = typesToGenerate |
Conll02NameSampleStream.GENERATE_PERSON_ENTITIES;
}
- else if (params.getTypes().contains("org")) {
+ if (params.getTypes().contains("org")) {
typesToGenerate = typesToGenerate |
Conll02NameSampleStream.GENERATE_ORGANIZATION_ENTITIES;
}
- else if (params.getTypes().contains("loc")) {
+ if (params.getTypes().contains("loc")) {
typesToGenerate = typesToGenerate |
Conll02NameSampleStream.GENERATE_LOCATION_ENTITIES;
}
- else if (params.getTypes().contains("misc")) {
+ if (params.getTypes().contains("misc")) {
typesToGenerate = typesToGenerate |
Conll02NameSampleStream.GENERATE_MISC_ENTITIES;
}