uk.ac.man.entitytagger.matching.matchers
Class MatchPostProcessor

java.lang.Object
  extended by uk.ac.man.entitytagger.matching.Matcher
      extended by uk.ac.man.entitytagger.matching.matchers.MatchPostProcessor

public class MatchPostProcessor
extends Matcher


Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.man.entitytagger.matching.Matcher
Matcher.Disambiguation
 
Field Summary
private  boolean abbrevResolution
           
private  java.util.Map<java.lang.String,java.lang.String> mapConvertIDs
           
private  Matcher matcher
           
private  Matcher.Disambiguation mode
           
private  Postprocessor postProcessor
           
 
Constructor Summary
MatchPostProcessor(Matcher matcher, Matcher.Disambiguation mode, boolean abbrevResolution, java.io.File ppConvertIDs, Postprocessor postProcessor)
           
 
Method Summary
private  void convertIDs(java.util.List<Mention> mentions, java.util.Map<java.lang.String,java.lang.String> mapConvertIDs2)
           
 java.util.List<Mention> match(java.lang.String text, Document doc)
          Search a given text for mentions
 
Methods inherited from class uk.ac.man.entitytagger.matching.Matcher
combineMatches, detectEnumerations, disambiguate, isValidMatch, match, match, match, performAcronymResolution, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

matcher

private Matcher matcher

mode

private Matcher.Disambiguation mode

abbrevResolution

private boolean abbrevResolution

postProcessor

private Postprocessor postProcessor

mapConvertIDs

private java.util.Map<java.lang.String,java.lang.String> mapConvertIDs
Constructor Detail

MatchPostProcessor

public MatchPostProcessor(Matcher matcher,
                          Matcher.Disambiguation mode,
                          boolean abbrevResolution,
                          java.io.File ppConvertIDs,
                          Postprocessor postProcessor)
Method Detail

match

public java.util.List<Mention> match(java.lang.String text,
                                     Document doc)
Description copied from class: Matcher
Search a given text for mentions

Specified by:
match in class Matcher
doc - the document associated to the text, may be null
Returns:
the mentions found by the matcher in the text

convertIDs

private void convertIDs(java.util.List<Mention> mentions,
                        java.util.Map<java.lang.String,java.lang.String> mapConvertIDs2)