gate.creole.orthomatcher
Interface AnnotationOrthography

All Known Implementing Classes:
BasicAnnotationOrthography, SampleAnnotationOrthography

public interface AnnotationOrthography


Method Summary
 boolean allNonStopTokensInOtherAnnot(ArrayList<Annotation> firstName, ArrayList<Annotation> secondName, String TOKEN_STRING_FEATURE_NAME, boolean caseSensitive)
           
 HashSet buildTables(AnnotationSet nameAllAnnots)
           
 boolean fuzzyMatch(String s1, String s2)
           
 String getStringForAnnotation(Annotation a, Document d)
          Returns normalized content of an annotation - removes extra white spaces.
 boolean isUnknownGender(String gender)
           
 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)
           
 

Method Detail

getStringForAnnotation

String getStringForAnnotation(Annotation a,
                              Document d)
                              throws ExecutionException
Returns normalized content of an annotation - removes extra white spaces.

Parameters:
a -
d -
Returns:
Throws:
ExecutionException

fuzzyMatch

boolean fuzzyMatch(String s1,
                   String s2)

allNonStopTokensInOtherAnnot

boolean allNonStopTokensInOtherAnnot(ArrayList<Annotation> firstName,
                                     ArrayList<Annotation> secondName,
                                     String TOKEN_STRING_FEATURE_NAME,
                                     boolean caseSensitive)

stripPersonTitle

String stripPersonTitle(String annotString,
                        Annotation annot,
                        Document doc,
                        Map<Integer,List<Annotation>> tokensMap,
                        HashMap normalizedTokensMap,
                        AnnotationSet nameAllAnnots)
                        throws ExecutionException
Throws:
ExecutionException

matchedAlready

boolean matchedAlready(Annotation annot1,
                       Annotation annot2,
                       List matchesDocFeature,
                       AnnotationSet nameAllAnnots)

updateMatches

Annotation updateMatches(Annotation newAnnot,
                         String annotString,
                         HashMap processedAnnots,
                         AnnotationSet nameAllAnnots,
                         List matchesDocFeature)

updateMatches

void updateMatches(Annotation newAnnot,
                   Annotation prevAnnot,
                   List matchesDocFeature,
                   AnnotationSet nameAllAnnots)

buildTables

HashSet buildTables(AnnotationSet nameAllAnnots)

isUnknownGender

boolean isUnknownGender(String gender)