Package opennlp.tools.entitylinker
Class EntityLinkerProperties
java.lang.Object
opennlp.tools.entitylinker.EntityLinkerProperties
Properties wrapper for 
EntityLinker implementations.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionEntityLinkerProperties(File propertiesFile) InitializesEntityLinkerPropertiesvia aFilereference.EntityLinkerProperties(InputStream propertiesIn) InitializesEntityLinkerPropertiesvia aInputStreamreference.
- 
Method SummaryModifier and TypeMethodDescriptiongetProperty(String key, String defaultValue) Retrieves a property value for a givenkey.
- 
Constructor Details- 
EntityLinkerPropertiesInitializesEntityLinkerPropertiesvia aFilereference.- Parameters:
- propertiesFile- The- Filethat references the- *.propertiesconfiguration.
- Throws:
- IOException- Thrown if IO errors occurred.
 
- 
EntityLinkerPropertiesInitializesEntityLinkerPropertiesvia aInputStreamreference.- Parameters:
- propertiesIn- The- InputStreamthat references the- *.propertiesconfiguration.
- Throws:
- IOException- Thrown if IO errors occurred.
 
 
- 
- 
Method Details- 
getPropertyRetrieves a property value for a givenkey.- Parameters:
- key- The key to the desired item in the properties configuration- key=value
- defaultValue- A default value in case the- key, or the value are missing
- Returns:
- A property value as a String.
- Throws:
- IOException- Thrown if the properties object was not initialized properly.
 
 
-