class Naive::TrainedData
- Naive::TrainedData
- Reference
- Object
Defined in:
naive.crConstructors
Instance Method Summary
- #docCountOfClasses : Hash(String, Int32)
- #frequencies : Hash(String, Hash(String, Int32))
-
#getClassDocCount(className : String)
returns document count of the class.
-
#getClasses
returns the names of the available classes as list
-
#getDocCount
returns all documents count
- #getFrequency(token : String, className : String) : Int32 | Nil
- #increaseClass(className : String, byAmount : Int = 1)
- #increaseToken(token : String, className : String, byAmount : Int = 1)
Constructor Detail
Instance Method Detail
def getClassDocCount(className : String)
#
returns document count of the class. If class is not available, it returns Nil