- All Implemented Interfaces:
- Comparator<String>
public class TermVariantComparator
extends Object
implements Comparator<String>
This comparator aims to judge whether two term writing variants are the same
or not. For this purpose, some minor normalizations are applied to the
compared terms such as lowercasing, space normalization and possibly more.
However, not too much normalization should be done since this is meant for
the term property 'writing variants' that is mainly used for the query term
dictionary. Thus, all different variants that the user could input and the
gazetteer cannot correctly recognize on its own should appear.
- Author:
- faessler