Class: TinyClassifierBase
- Inherits:
-
Object
- Object
- TinyClassifierBase
- Defined in:
- lib/tiny-classifier/base.rb
Direct Known Subclasses
Constant Summary collapse
- TOKENIZERS =
[:none, :mecab]
Instance Method Summary collapse
-
#initialize ⇒ TinyClassifierBase
constructor
A new instance of TinyClassifierBase.
- #parse_command_line_options(command_line_options) ⇒ Object
Constructor Details
#initialize ⇒ TinyClassifierBase
Returns a new instance of TinyClassifierBase.
23 24 25 26 |
# File 'lib/tiny-classifier/base.rb', line 23 def initialize @tokenizer = :none @data_dir = Dir.pwd end |
Instance Method Details
#parse_command_line_options(command_line_options) ⇒ Object
28 29 30 31 |
# File 'lib/tiny-classifier/base.rb', line 28 def () option_parser = create_option_parser option_parser.parse!() end |