Module: RubyFastText::Commands
- Included in:
- Cbow, Classifier, Skipgram
- Defined in:
- lib/ruby_fast_text/commands.rb
Instance Method Summary collapse
Instance Method Details
#params_to_s(params) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/ruby_fast_text/commands.rb', line 3 def params_to_s(params) commands = i[input output verbose minCount minCountLabel wordNgrams bucket minn mann maxn t label lr lrUpdateRate dim ws epoch neg loss thread pretrainedVectors saveOutput cutoff retrain qnorm qout dsub] params.select { |k, _v| commands.include? k} .map { |k,v| "-#{k.to_s} #{v}"} .join(" ") end |