Class: RubyFastText::Cbow

Inherits:
Object
  • Object
show all
Extended by:
Commands
Defined in:
lib/ruby_fast_text/cbow.rb

Class Method Summary collapse

Methods included from Commands

params_to_s

Class Method Details

.train(params) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/ruby_fast_text/cbow.rb', line 5

def self.train(params)
  path = params[:path]

  Dir.chdir(path) do
    system("fasttext cbow #{params_to_s(params)}")
  end
end