uk.ac.man.entitytagger.networking
Class SimpleClientMatcher

java.lang.Object
  extended by uk.ac.man.entitytagger.matching.Matcher
      extended by uk.ac.man.entitytagger.networking.SimpleClientMatcher

public class SimpleClientMatcher
extends Matcher


Nested Class Summary
 
Nested classes/interfaces inherited from class uk.ac.man.entitytagger.matching.Matcher
Matcher.Disambiguation
 
Field Summary
private  java.lang.String[] hosts
           
private  int[] ports
           
private  java.util.Random rand
           
 
Constructor Summary
SimpleClientMatcher(java.lang.String str)
           
SimpleClientMatcher(java.lang.String[] hosts, int[] ports)
           
 
Method Summary
 java.util.List<Mention> match(java.lang.String text, Document doc)
          Search a given text for mentions
 int size()
           
 
Methods inherited from class uk.ac.man.entitytagger.matching.Matcher
combineMatches, detectEnumerations, disambiguate, isValidMatch, match, match, match, performAcronymResolution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hosts

private java.lang.String[] hosts

ports

private int[] ports

rand

private java.util.Random rand
Constructor Detail

SimpleClientMatcher

public SimpleClientMatcher(java.lang.String[] hosts,
                           int[] ports)

SimpleClientMatcher

public SimpleClientMatcher(java.lang.String str)
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

size

public int size()
Overrides:
size in class Matcher