Class: CorrectHorseBatteryStaple::Writer::Isamkd
- Inherits:
-
File
- Object
- CorrectHorseBatteryStaple::Writer
- Base
- File
- CorrectHorseBatteryStaple::Writer::Isamkd
- Includes:
- Backend::IsamKD
- Defined in:
- lib/correct_horse_battery_staple/writer/isam_kd.rb
Constant Summary
Constants included from Backend::IsamKD
Backend::IsamKD::F_PRELUDE_AT_END, Backend::IsamKD::INITIAL_PRELUDE_LENGTH
Instance Attribute Summary
Attributes inherited from File
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(dest, options = {}) ⇒ Isamkd
constructor
A new instance of Isamkd.
- #write_corpus(corpus) ⇒ Object
Methods included from Backend::IsamKD
Methods inherited from File
Methods inherited from Base
Methods included from Common
#array_sample, #logger, #random_in_range, #random_number, #set_sample
Methods inherited from CorrectHorseBatteryStaple::Writer
Constructor Details
#initialize(dest, options = {}) ⇒ Isamkd
Returns a new instance of Isamkd.
4 5 6 |
# File 'lib/correct_horse_battery_staple/writer/isam_kd.rb', line 4 def initialize(dest, ={}) super end |
Instance Method Details
#write_corpus(corpus) ⇒ Object
8 9 10 |
# File 'lib/correct_horse_battery_staple/writer/isam_kd.rb', line 8 def write_corpus(corpus) write_corpus_to_io(corpus, io) end |