Returns a new instance of Engine.
18 19 20 21 22
# File 'lib/twss/engine.rb', line 18 def initialize(options = {}) @data_file = options[:data_file] || DATA_FILE @threshold ||= options[:threshold] || 7.0 @classifier = load_classifier_from_file!(@data_file) || new_classifier end