edu.uchsc.ccp.iaa.matcher
Class SpanMatcher
java.lang.Object
edu.uchsc.ccp.iaa.matcher.SpanMatcher
- All Implemented Interfaces:
- Matcher
public class SpanMatcher
- extends Object
- implements Matcher
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpanMatcher
public SpanMatcher()
match
public Annotation match(Annotation annotation,
String compareSetName,
Set<Annotation> excludeAnnotations,
IAA iaa,
MatchResult matchResult)
- This method will return an annotation with the same class and spans. If
one does not exist, then it will return an annotation with the same spans
(but different class). Otherwise, null is returned.
- Specified by:
match
in interface Matcher
- Parameters:
annotation
- compareSetName
- excludeAnnotations
- iaa
- matchResult
- will be set to NONTRIVIAL_MATCH or NONTRIVIAL_NONMATCH.
Trivial matches and non-matches are not defined for this
matcher.
- Returns:
- the annotation that was matched. If none exists then return null.
- See Also:
Matcher.match(Annotation, String, Set,
IAA, MatchResult)
,
MatchResult.NONTRIVIAL_MATCH
,
MatchResult.NONTRIVIAL_NONMATCH
,
Annotation.getShortestAnnotation(Collection)
getName
public String getName()
- Specified by:
getName
in interface Matcher
getDescription
public String getDescription()
- Specified by:
getDescription
in interface Matcher
returnsTrivials
public boolean returnsTrivials()
- Specified by:
returnsTrivials
in interface Matcher