org.apache.nutch.parsefilter.naivebayes

## Class Train

- java.lang.Object
- - org.apache.nutch.parsefilter.naivebayes.Train

-     public class Train
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Train()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static java.lang.String` | `flattenHashMap(java.util.HashMap<java.lang.String,java.lang.Integer> dict)`
    `static java.lang.String` | `replacefirstoccuranceof(java.lang.String tomatch, java.lang.String line)`
    `static void` | `start(java.lang.String filepath)`
    `static void` | `updateHashMap(java.util.HashMap<java.lang.String,java.lang.Integer> dict, java.lang.String key)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Train

          public Train()

  - ### Method Detail

    - #### replacefirstoccuranceof

          public static java.lang.String replacefirstoccuranceof(java.lang.String tomatch,
                                                                 java.lang.String line)

    - #### updateHashMap

          public static void updateHashMap(java.util.HashMap<java.lang.String,java.lang.Integer> dict,
                                           java.lang.String key)

    - #### flattenHashMap

          public static java.lang.String flattenHashMap(java.util.HashMap<java.lang.String,java.lang.Integer> dict)

    - #### start

          public static void start(java.lang.String filepath)
                            throws java.io.IOException

      Throws:
        `java.io.IOException`

Copyright © 2019 The Apache Software Foundation