public class SampleAnnotationOrthography extends Object implements AnnotationOrthography
Constructor and Description |
---|
SampleAnnotationOrthography(String personType,
boolean extLists,
AnnotationOrthography defaultOrthography) |
Modifier and Type | Method and Description |
---|---|
boolean |
allNonStopTokensInOtherAnnot(List<Annotation> arg0,
List<Annotation> arg1,
String arg2,
boolean arg3) |
Set<String> |
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<List<Integer>> matchesDocFeature,
AnnotationSet nameAllAnnots) |
String |
stripPersonTitle(String annotString,
Annotation annot,
Document doc,
Map<Integer,List<Annotation>> tokensMap,
Map<Integer,List<Annotation>> normalizedTokensMap,
AnnotationSet nameAllAnnots) |
void |
updateMatches(Annotation newAnnot,
Annotation prevAnnot,
List<List<Integer>> matchesDocFeature,
AnnotationSet nameAllAnnots) |
Annotation |
updateMatches(Annotation newAnnot,
String annotString,
Map<Integer,String> processedAnnots,
AnnotationSet nameAllAnnots,
List<List<Integer>> matchesDocFeature) |
public SampleAnnotationOrthography(String personType, boolean extLists, AnnotationOrthography defaultOrthography)
public String getStringForAnnotation(Annotation a, Document d) throws ExecutionException
AnnotationOrthography
getStringForAnnotation
in interface AnnotationOrthography
ExecutionException
public String stripPersonTitle(String annotString, Annotation annot, Document doc, Map<Integer,List<Annotation>> tokensMap, Map<Integer,List<Annotation>> normalizedTokensMap, AnnotationSet nameAllAnnots) throws ExecutionException
stripPersonTitle
in interface AnnotationOrthography
ExecutionException
public boolean matchedAlready(Annotation annot1, Annotation annot2, List<List<Integer>> matchesDocFeature, AnnotationSet nameAllAnnots)
matchedAlready
in interface AnnotationOrthography
public void updateMatches(Annotation newAnnot, Annotation prevAnnot, List<List<Integer>> matchesDocFeature, AnnotationSet nameAllAnnots)
updateMatches
in interface AnnotationOrthography
public Set<String> buildTables(AnnotationSet nameAllAnnots)
buildTables
in interface AnnotationOrthography
public boolean allNonStopTokensInOtherAnnot(List<Annotation> arg0, List<Annotation> arg1, String arg2, boolean arg3)
allNonStopTokensInOtherAnnot
in interface AnnotationOrthography
public boolean fuzzyMatch(String arg1, String arg2)
fuzzyMatch
in interface AnnotationOrthography
public Annotation updateMatches(Annotation newAnnot, String annotString, Map<Integer,String> processedAnnots, AnnotationSet nameAllAnnots, List<List<Integer>> matchesDocFeature)
updateMatches
in interface AnnotationOrthography
public boolean isUnknownGender(String arg0)
isUnknownGender
in interface AnnotationOrthography