Module: SFST

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

Defined Under Namespace

Classes: CompactTransducer, CompactTransducerMachine, RegularTransducer, RegularTransducerMachine

Constant Summary collapse

VERSION =
"0.4.4"

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.


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

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