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) InitializesEntityLinkerPropertiesvia aFilereference.EntityLinkerProperties(InputStream propertiesIn) InitializesEntityLinkerPropertiesvia aInputStreamreference. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetProperty(String key, String defaultValue) Retrieves a property value for a givenkey.
-
Konstruktordetails
-
EntityLinkerProperties
InitializesEntityLinkerPropertiesvia aFilereference.- Parameter:
propertiesFile- TheFilethat references the*.propertiesconfiguration.- Löst aus:
IOException- Thrown if IO errors occurred.
-
EntityLinkerProperties
InitializesEntityLinkerPropertiesvia aInputStreamreference.- Parameter:
propertiesIn- TheInputStreamthat references the*.propertiesconfiguration.- 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=valuedefaultValue- 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.
-