Package opennlp.tools.entitylinker
Class EntityLinkerProperties
java.lang.Object
opennlp.tools.entitylinker.EntityLinkerProperties
Properties wrapper for
EntityLinker
implementations.- See Also:
-
Constructor Summary
ConstructorDescriptionEntityLinkerProperties
(File propertiesFile) InitializesEntityLinkerProperties
via aFile
reference.EntityLinkerProperties
(InputStream propertiesIn) InitializesEntityLinkerProperties
via aInputStream
reference. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String key, String defaultValue) Retrieves a property value for a givenkey
.
-
Constructor Details
-
EntityLinkerProperties
InitializesEntityLinkerProperties
via aFile
reference.- Parameters:
propertiesFile
- TheFile
that references the*.properties
configuration.- Throws:
IOException
- Thrown if IO errors occurred.
-
EntityLinkerProperties
InitializesEntityLinkerProperties
via aInputStream
reference.- Parameters:
propertiesIn
- TheInputStream
that references the*.properties
configuration.- Throws:
IOException
- Thrown if IO errors occurred.
-
-
Method Details
-
getProperty
Retrieves a property value for a givenkey
.- Parameters:
key
- The key to the desired item in the properties configurationkey=value
defaultValue
- A default value in case thekey
, or the value are missing- Returns:
- A property value as a
String
. - Throws:
IOException
- Thrown if the properties object was not initialized properly.
-