Sha256: 4e0f37bd4f23a456c2175e792c0bca08fae645d84a3b3799f6ddf21ca76f814b
Contents?: true
Size: 394 Bytes
Versions: 6
Compression:
Stored size: 394 Bytes
Contents
module Bae class Classifier attr_reader :internal_classifier def initialize @internal_classifier = ::Java::Bae::NaiveBayesClassifier.new end def train(label, feature) internal_classifier.train(label, ::Java::Bae::Document.new(feature)) end def classify(feature) internal_classifier.classify(::Java::Bae::Document.new(feature)) end end end
Version data entries
6 entries across 6 versions & 1 rubygems