OPENNLP-847 Change visibility of deprecated train methods.

The train methods should not be possible to use anymore by client code.
Some of the methods allow training models which can't be instantiated afterwards.



git-svn-id: https://svn.apache.org/repos/asf/opennlp/trunk@1741167 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java b/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
index da6eb60..df06f2a 100644
--- a/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
+++ b/opennlp-tools/src/main/java/opennlp/tools/namefind/NameFinderME.java
@@ -314,7 +314,7 @@
    * instead.
    */
   @Deprecated
-  public static TokenNameFinderModel train(String languageCode, String type, ObjectStream<NameSample> samples,
+  static TokenNameFinderModel train(String languageCode, String type, ObjectStream<NameSample> samples,
           TrainingParameters trainParams, AdaptiveFeatureGenerator generator, final Map<String, Object> resources)
           throws IOException {
 
@@ -399,7 +399,7 @@
    * instead.
    */
   @Deprecated
-  public static TokenNameFinderModel train(String languageCode, String type,
+  static TokenNameFinderModel train(String languageCode, String type,
           ObjectStream<NameSample> samples, TrainingParameters trainParams,
           byte[] featureGeneratorBytes, final Map<String, Object> resources)
           throws IOException {
@@ -415,18 +415,6 @@
   }
 
   /**
-   * @deprecated use
-   * {@link NameFinderME#train(String, String, ObjectStream, TrainingParameters, TokenNameFinderFactory)}
-   * instead.
-   */
-  @Deprecated
-  public static TokenNameFinderModel train(String languageCode, String type, ObjectStream<NameSample> samples,
-          final Map<String, Object> resources) throws IOException {
-    return NameFinderME.train(languageCode, type, samples,
-            ModelUtil.createDefaultTrainingParameters(), (byte[]) null, resources);
-  }
-
-  /**
    * Gets the name type from the outcome
    *
    * @param outcome the outcome