gate.creole.orthomatcher
Class MatchRule6
java.lang.Object
gate.creole.orthomatcher.MatchRule6
- All Implemented Interfaces:
- OrthoMatcherRule
public class MatchRule6
- extends Object
- implements OrthoMatcherRule
RULE #5: if the 1st token of one name
matches the second name
e.g. "Pepsi Cola" == "Pepsi"
Condition(s): case-insensitive match
Applied to: all name annotations
Note that we don't want to use nicknames here because you don't use nicknames for last names
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchRule6
public MatchRule6(OrthoMatcher orthmatcher)
value
public boolean value(String s1,
String s2)
- Specified by:
value
in interface OrthoMatcherRule
getId
public String getId()
- Specified by:
getId
in interface OrthoMatcherRule