gate.creole.orthomatcher
Class MatchRule4
java.lang.Object
gate.creole.orthomatcher.MatchRule4
- All Implemented Interfaces:
- OrthoMatcherRule
public class MatchRule4
- extends Object
- implements OrthoMatcherRule
RULE #4: Does the first non-punctuation token from the long string match
the first token from the short string?
e.g. "fred jones" == "fred"
Condition(s): case-insensitive match
Applied to: person annotations
Modified by Andrew Borthwick, Spock Networks: Disallow stop words
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchRule4
public MatchRule4(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