Class: RMMSeg::LSDMFOCWRule
- Inherits:
-
Object
- Object
- RMMSeg::LSDMFOCWRule
- Defined in:
- lib/rmmseg/lsdmfocw_rule.rb
Overview
Largest sum of degree of morphemic freedom of one-character words rule.
Class Method Summary collapse
Class Method Details
.filter(chunks) ⇒ Object
7 8 9 10 11 |
# File 'lib/rmmseg/lsdmfocw_rule.rb', line 7 def self.filter(chunks) chunks.take_highest { |a, b| Chunk::degree_of_morphemic_freedom(a) <=> Chunk::degree_of_morphemic_freedom(b) } end |