Module: RMMSeg

Defined in:
lib/rmmseg.rb,
lib/rmmseg/word.rb,
lib/rmmseg/chunk.rb,
lib/rmmseg/token.rb,
lib/rmmseg/config.rb,
lib/rmmseg/ferret.rb,
lib/rmmseg/mm_rule.rb,
lib/rmmseg/version.rb,
lib/rmmseg/algorithm.rb,
lib/rmmseg/amibguity.rb,
lib/rmmseg/lawl_rule.rb,
lib/rmmseg/svwl_rule.rb,
lib/rmmseg/dictionary.rb,
lib/rmmseg/lsdmfocw_rule.rb,
lib/rmmseg/simple_algorithm.rb,
lib/rmmseg/complex_algorithm.rb

Defined Under Namespace

Modules: Algorithm, Chunk, Ferret Classes: Ambiguity, ComplexAlgorithm, Config, Dictionary, LAWLRule, LSDMFOCWRule, MMRule, SVWLRule, SimpleAlgorithm, Token, Word

Constant Summary collapse

VERSION =
'0.1.6'

Instance Method Summary collapse

Instance Method Details

#segment(text) ⇒ Object

Segment text using the algorithm configured.



10
11
12
# File 'lib/rmmseg.rb', line 10

def segment(text)
  Config.algorithm_instance(text).segment
end