Class: CorrectHorseBatteryStaple::Writer::Isamkd

Inherits:
File show all
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

#io

Attributes inherited from Base

#dest, #options

Instance Method Summary collapse

Methods included from Backend::IsamKD

included

Methods inherited from File

#close

Methods inherited from Base

#close

Methods included from Common

#array_sample, #logger, #random_in_range, #random_number, #set_sample

Methods inherited from CorrectHorseBatteryStaple::Writer

make_writer, write

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, options={})
  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