uk.ac.man.entitytagger
Class EntityTagger
java.lang.Object
uk.ac.man.entitytagger.EntityTagger
public class EntityTagger
- extends java.lang.Object
Main species recognition class
- Author:
- Martin *
Method Summary |
static void |
doServer(Matcher matcher,
int port,
int numConns,
java.util.logging.Logger logger,
boolean enableCache,
int report)
|
static java.lang.String |
getDefaultHelpMessage()
|
static Matcher |
getMatcher(ArgParser ap,
java.util.logging.Logger logger)
returns a entity recognition Matcher based on the input parameters in ap (provided by the user on the command-line or in a configuration file) |
static Matcher |
getMatcher(ArgParser ap,
java.util.logging.Logger logger,
java.lang.String tag)
returns a entity recognition Matcher based on the input parameters in ap (provided by the user on the command-line or in a configuration file) |
static Postprocessor |
getPostprocessor(ArgParser ap,
java.util.logging.Logger logger,
java.util.Map<java.lang.String,java.lang.String> comments)
|
static Postprocessor |
getPostprocessor(ArgParser ap,
java.util.logging.Logger logger,
java.util.Map<java.lang.String,java.lang.String> comments,
java.lang.String tag)
|
static java.util.Map<java.lang.String,java.lang.String> |
loadComments(java.io.File[] files,
java.util.logging.Logger logger)
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINNAEUS_VERSION
public static final java.lang.String LINNAEUS_VERSION
- See Also:
- Constant Field Values
EntityTagger
public EntityTagger()
getPostprocessor
public static Postprocessor getPostprocessor(ArgParser ap,
java.util.logging.Logger logger,
java.util.Map<java.lang.String,java.lang.String> comments)
getPostprocessor
public static Postprocessor getPostprocessor(ArgParser ap,
java.util.logging.Logger logger,
java.util.Map<java.lang.String,java.lang.String> comments,
java.lang.String tag)
getMatcher
public static Matcher getMatcher(ArgParser ap,
java.util.logging.Logger logger)
- returns a entity recognition Matcher based on the input parameters in ap (provided by the user on the command-line or in a configuration file)
- Parameters:
ap
- an ArgParser object containing arguments used to construct the matcherlogger
- A logger to which information messages will be logged. Nothing will be logged if this is null.
- Returns:
- a matcher that can be used to find and normalize species names in text
getMatcher
public static Matcher getMatcher(ArgParser ap,
java.util.logging.Logger logger,
java.lang.String tag)
- returns a entity recognition Matcher based on the input parameters in ap (provided by the user on the command-line or in a configuration file)
- Parameters:
ap
- an ArgParser object containing arguments used to construct the matcherlogger
- A logger to which information messages will be logged. Nothing will be logged if this is null.tag
- Allows the use of multiple different matchers. For example, if tag == "Genes", properties will need to have the postfix "Genes" to be read. This allows the method to be called multiple times with different tags for different matching options.
- Returns:
- a matcher that can be used to find and normalize species names in text
getDefaultHelpMessage
public static java.lang.String getDefaultHelpMessage()
main
public static void main(java.lang.String[] args)
- Parameters:
args
-
doServer
public static void doServer(Matcher matcher,
int port,
int numConns,
java.util.logging.Logger logger,
boolean enableCache,
int report)
loadComments
public static java.util.Map<java.lang.String,java.lang.String> loadComments(java.io.File[] files,
java.util.logging.Logger logger)