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