Package opennlp.tools.entitylinker
Klasse EntityLinkerProperties
java.lang.Object
opennlp.tools.entitylinker.EntityLinkerProperties
Properties wrapper for
EntityLinker
implementations.- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungEntityLinkerProperties
(File propertiesFile) InitializesEntityLinkerProperties
via aFile
reference.EntityLinkerProperties
(InputStream propertiesIn) InitializesEntityLinkerProperties
via aInputStream
reference. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetProperty
(String key, String defaultValue) Retrieves a property value for a givenkey
.
-
Konstruktordetails
-
EntityLinkerProperties
InitializesEntityLinkerProperties
via aFile
reference.- Parameter:
propertiesFile
- TheFile
that references the*.properties
configuration.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
EntityLinkerProperties
InitializesEntityLinkerProperties
via aInputStream
reference.- Parameter:
propertiesIn
- TheInputStream
that references the*.properties
configuration.- Löst aus:
IOException
- Thrown if IO errors occurred.
-
-
Methodendetails
-
getProperty
Retrieves a property value for a givenkey
.- Parameter:
key
- The key to the desired item in the properties configurationkey=value
defaultValue
- A default value in case thekey
, or the value are missing- Gibt zurück:
- A property value as a
String
. - Löst aus:
IOException
- Thrown if the properties object was not initialized properly.
-