Class: RMMSeg::MMRule
- Inherits:
-
Object
- Object
- RMMSeg::MMRule
- Defined in:
- lib/rmmseg/mm_rule.rb
Overview
Maximum matching rule, select the chunks with the maximum length.
Class Method Summary collapse
Class Method Details
.filter(chunks) ⇒ Object
7 8 9 10 11 |
# File 'lib/rmmseg/mm_rule.rb', line 7 def self.filter(chunks) chunks.take_highest { |a, b| Chunk::total_length(a) <=> Chunk::total_length(b) } end |