-
- All Known Implementing Classes:
DefaultMergenceManager
public interface MergenceManager
The manager forMergeRule
s to combine/merge multi part characters.- Since:
- April 25, 2019
-
-
Method Summary
Modifier and Type Method Description MergenceManager
addRule(java.util.function.BiFunction<DatabaseManager,SimilarityManager,MergeRule> rule)
Adds a mergence rule to be ran using the givenDatabaseManager
andSimilarityManager
from the constructor.void
beginMergence(it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap<java.util.List<ImageLetter>> sortedLines, SimilarityManager similarityManager)
Orders and invokes all merge rules'MergeRule.mergeCharacters(ImageLetter, List)
method with appropriate data.
-
-
-
Method Detail
-
addRule
MergenceManager addRule(java.util.function.BiFunction<DatabaseManager,SimilarityManager,MergeRule> rule)
Adds a mergence rule to be ran using the givenDatabaseManager
andSimilarityManager
from the constructor.- Parameters:
rule
- The rule to add- Returns:
- The current
MergenceManager
-
beginMergence
void beginMergence(it.unimi.dsi.fastutil.ints.Int2ObjectLinkedOpenHashMap<java.util.List<ImageLetter>> sortedLines, SimilarityManager similarityManager)
Orders and invokes all merge rules'MergeRule.mergeCharacters(ImageLetter, List)
method with appropriate data.- Parameters:
sortedLines
- The read image datasimilarityManager
- TheSimilarityManager
used
-
-