Module: SFST

Defined in:
lib/sfst.rb,
lib/sfst/version.rb,
ext/sfst_machine/sfst_machine.cc

Defined Under Namespace

Classes: CompactTransducer, CompactTransducerMachine, RegularTransducer, RegularTransducerMachine

Constant Summary collapse

VERSION =
"0.4.2"

Class Method Summary collapse

Class Method Details

.compile(source, machine, options = {}) ⇒ Object

Compiles an SFST transducer source and saves it as machine.

Options

compact

Compile a compact transducer.



14
15
16
17
18
19
20
# File 'lib/sfst.rb', line 14

def self.compile(source, machine, options = {})
  unless options[:compact]
    _compile_regular(source, machine)
  else
    _compile_compact(source, machine)
  end
end