Method: Word2Vec.run_cmd
- Defined in:
- lib/word2vec/scripts_interface.rb
.run_cmd(command, verbose: false) ⇒ Object
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/word2vec/scripts_interface.rb', line 82 def self.run_cmd(command, verbose: false) p command.join(' ') system(command.join(' ')) # TODO: implement it later # if verbose # while line = stdout.readline # $stdout.write(line) # if line.include?('ERROR:') # raise Exception(line) # end # $stdout.flush # end # end end |