Class: SynonymFinder::GroupOrganizer
- Inherits:
-
Object
- Object
- SynonymFinder::GroupOrganizer
- Defined in:
- lib/synonym-finder/group_organizer.rb
Instance Method Summary collapse
-
#initialize(synonym_finder) ⇒ GroupOrganizer
constructor
A new instance of GroupOrganizer.
-
#organize ⇒ Object
Finds duplication groups for a name.
Constructor Details
#initialize(synonym_finder) ⇒ GroupOrganizer
Returns a new instance of GroupOrganizer.
4 5 6 7 8 |
# File 'lib/synonym-finder/group_organizer.rb', line 4 def initialize(synonym_finder) @synonym_finder = synonym_finder @db = @synonym_finder.db @groups = {} end |
Instance Method Details
#organize ⇒ Object
Finds duplication groups for a name. A name can be one or more duplication groups: chresonym, lexical variant, homotypic, alt placement
11 12 13 14 15 16 |
# File 'lib/synonym-finder/group_organizer.rb', line 11 def organize SynonymFinder.logger_write(@synonym_finder.object_id, "Grouping results") organize_matches #organize_partial_matches get_output end |