gate.creole.orthomatcher.SampleOrthoMatcher
Class SampleAnnotationOrthography
java.lang.Object
gate.creole.orthomatcher.SampleOrthoMatcher.SampleAnnotationOrthography
- All Implemented Interfaces:
- AnnotationOrthography
public class SampleAnnotationOrthography
- extends Object
- implements AnnotationOrthography
|
Method Summary |
boolean |
allNonStopTokensInOtherAnnot(ArrayList<Annotation> arg0,
ArrayList<Annotation> arg1,
String arg2,
boolean arg3)
|
HashSet |
buildTables(AnnotationSet nameAllAnnots)
|
boolean |
fuzzyMatch(String arg1,
String arg2)
|
String |
getStringForAnnotation(Annotation a,
Document d)
Returns normalized content of an annotation - removes extra white spaces. |
boolean |
isUnknownGender(String arg0)
|
boolean |
matchedAlready(Annotation annot1,
Annotation annot2,
List matchesDocFeature,
AnnotationSet nameAllAnnots)
|
String |
stripPersonTitle(String annotString,
Annotation annot,
Document doc,
Map<Integer,List<Annotation>> tokensMap,
HashMap normalizedTokensMap,
AnnotationSet nameAllAnnots)
|
void |
updateMatches(Annotation newAnnot,
Annotation prevAnnot,
List matchesDocFeature,
AnnotationSet nameAllAnnots)
|
Annotation |
updateMatches(Annotation newAnnot,
String annotString,
HashMap processedAnnots,
AnnotationSet nameAllAnnots,
List matchesDocFeature)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
personType
private final String personType
defaultOrthography
private final AnnotationOrthography defaultOrthography
extLists
private final boolean extLists
SampleAnnotationOrthography
public SampleAnnotationOrthography(String personType,
boolean extLists,
AnnotationOrthography defaultOrthography)
getStringForAnnotation
public String getStringForAnnotation(Annotation a,
Document d)
throws ExecutionException
- Description copied from interface:
AnnotationOrthography
- Returns normalized content of an annotation - removes extra white spaces.
- Specified by:
getStringForAnnotation in interface AnnotationOrthography
- Returns:
-
- Throws:
ExecutionException
stripPersonTitle
public String stripPersonTitle(String annotString,
Annotation annot,
Document doc,
Map<Integer,List<Annotation>> tokensMap,
HashMap normalizedTokensMap,
AnnotationSet nameAllAnnots)
throws ExecutionException
- Specified by:
stripPersonTitle in interface AnnotationOrthography
- Throws:
ExecutionException
matchedAlready
public boolean matchedAlready(Annotation annot1,
Annotation annot2,
List matchesDocFeature,
AnnotationSet nameAllAnnots)
- Specified by:
matchedAlready in interface AnnotationOrthography
updateMatches
public void updateMatches(Annotation newAnnot,
Annotation prevAnnot,
List matchesDocFeature,
AnnotationSet nameAllAnnots)
- Specified by:
updateMatches in interface AnnotationOrthography
buildTables
public HashSet buildTables(AnnotationSet nameAllAnnots)
- Specified by:
buildTables in interface AnnotationOrthography
allNonStopTokensInOtherAnnot
public boolean allNonStopTokensInOtherAnnot(ArrayList<Annotation> arg0,
ArrayList<Annotation> arg1,
String arg2,
boolean arg3)
- Specified by:
allNonStopTokensInOtherAnnot in interface AnnotationOrthography
fuzzyMatch
public boolean fuzzyMatch(String arg1,
String arg2)
- Specified by:
fuzzyMatch in interface AnnotationOrthography
updateMatches
public Annotation updateMatches(Annotation newAnnot,
String annotString,
HashMap processedAnnots,
AnnotationSet nameAllAnnots,
List matchesDocFeature)
- Specified by:
updateMatches in interface AnnotationOrthography
isUnknownGender
public boolean isUnknownGender(String arg0)
- Specified by:
isUnknownGender in interface AnnotationOrthography