gate.creole.orthomatcher
Class MatchRule14
java.lang.Object
gate.creole.orthomatcher.MatchRule14
- All Implemented Interfaces:
- OrthoMatcherRule
public class MatchRule14
- extends Object
- implements OrthoMatcherRule
RULE #13: do multi-word names match except for
one token e.g.
"Second Force Recon Company" == "Force Recon Company"
Note that this rule has NOT been used in LaSIE's 1.5
namematcher
Restrictions: - remove cdg first
- shortest name should be 2 words or more
- if N is the number of tokens of the longest
name, then N-1 tokens should be matched
Condition(s): case-sensitive match
Applied to: organisation or person annotations only
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchRule14
public MatchRule14(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