lib/twss/engine.rb in twss-0.0.3 vs lib/twss/engine.rb in twss-0.0.4

- old
+ new

@@ -15,16 +15,17 @@ attr_accessor :threshold def initialize(options = {}) @data_file = options[:data_file] || DATA_FILE - @threshold ||= options[:threshold] || 5.0 + @threshold ||= options[:threshold] || 7.5 @classifier = load_classifier_from_file!(@data_file) || new_classifier end def classify(str) if basic_conditions_met?(str) c = @classifier.classifications(str) + require 'pp' c[TRUE] - c[FALSE] > threshold else false end end \ No newline at end of file