Author: joern
Date: Tue Oct 20 11:39:47 2015
New Revision: 1709574
URL: http://svn.apache.org/viewvc?rev=1709574&view=rev
Log:
OPENNLP-822 Deprecated createFeatureGenerator and added a comment.
Modified:
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
Modified:
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
URL:
http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java?rev=1709574&r1=1709573&r2=1709574&view=diff
==============================================================================
---
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
(original)
+++
opennlp/trunk/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
Tue Oct 20 11:39:47 2015
@@ -165,6 +165,11 @@ public class NameFinderME implements Tok
this(model, null, beamSize);
}
+ @Deprecated
+ /**
+ * @deprecated the default feature generation is now always included in the
models and loaded
+ * if not by the factory. Subclasses using this methods should do the same.
+ */
static AdaptiveFeatureGenerator createFeatureGenerator() {
return new CachedFeatureGenerator(
new AdaptiveFeatureGenerator[]{