Package opennlp.tools.entitylinker
Class EntityLinkerFactory
java.lang.Object
opennlp.tools.entitylinker.EntityLinkerFactory
Generates a 
EntityLinker instances via a properties file configuration.
 
 In the properties file, the linker implementation must be
 provided using "linker" as the properties key, and the
 full class name as value.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic EntityLinker<?>getLinker(String entityType, EntityLinkerProperties properties) Retrieves aEntityLinkerinstance matching thepropertiesconfiguration.static EntityLinker<?>getLinker(EntityLinkerProperties properties) Retrieves aEntityLinkerinstance matching thepropertiesconfiguration.
- 
Constructor Details- 
EntityLinkerFactorypublic EntityLinkerFactory()
 
- 
- 
Method Details- 
getLinkerpublic static EntityLinker<?> getLinker(String entityType, EntityLinkerProperties properties) throws IOException Retrieves aEntityLinkerinstance matching thepropertiesconfiguration.- Parameters:
- entityType- The type of entity being linked to. This value is used to retrieve the implementation of the- EntityLinkerfrom the- EntityLinkerproperties file. Must not be- null.
- properties- An object that extends- EntityLinkerProperties. This object will be passed into the- EntityLinker.init(EntityLinkerProperties)method, so it is an appropriate place to put additional resources. Must not be- null.
- Returns:
- The EntityLinkerinstance for thepropertiesconfiguration.
- Throws:
- IOException- Thrown if IO errors occurred.
- IllegalArgumentException- Thrown if parameters were invalid.
 
- 
getLinkerRetrieves aEntityLinkerinstance matching thepropertiesconfiguration.- Parameters:
- properties- An object that extends- EntityLinkerProperties. This object will be passed into the- EntityLinker.init(EntityLinkerProperties)method, so it is an appropriate place to put additional resources. Must not be- null.
- Returns:
- The EntityLinkerinstance for thepropertiesconfiguration.
- Throws:
- IOException- Thrown if IO errors occurred.
- IllegalArgumentException- Thrown if parameters were invalid.
 
 
-