Package opennlp.tools.models
Klasse AbstractClassPathModelFinder
java.lang.Object
opennlp.tools.models.AbstractClassPathModelFinder
- Alle implementierten Schnittstellen:
ClassPathModelFinder
- Bekannte direkte Unterklassen:
ClassgraphModelFinder
,SimpleClassPathModelFinder
Enables the detection of OpenNLP models in the classpath. By default, this class will search
for JAR files starting with "opennlp-models-*". This wildcard pattern can be adjusted by
using the alternative constructor of this class.
-
Feldübersicht
Von Schnittstelle geerbte Felder opennlp.tools.models.ClassPathModelFinder
OPENNLP_MODEL_JAR_PREFIX
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungBy default, it scans forClassPathModelFinder.OPENNLP_MODEL_JAR_PREFIX
.AbstractClassPathModelFinder
(String jarModelPrefix) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindModels
(boolean reloadCache) Finds OpenNLP models within the classpath.
-
Konstruktordetails
-
AbstractClassPathModelFinder
public AbstractClassPathModelFinder()By default, it scans forClassPathModelFinder.OPENNLP_MODEL_JAR_PREFIX
. -
AbstractClassPathModelFinder
- Parameter:
jarModelPrefix
- The leafnames of the jars that should be canned (e.g. "opennlp.jar"). May contain a wildcard glob ("opennlp-*.jar"). It must not benull
.
-
-
Methodendetails
-
findModels
Beschreibung aus Schnittstelle kopiert:ClassPathModelFinder
Finds OpenNLP models within the classpath.- Angegeben von:
findModels
in SchnittstelleClassPathModelFinder
- Parameter:
reloadCache
-true
, if the internal cache should explicitly be reloaded,false
otherwise.- Gibt zurück:
- A Set of
model entries
. It might be empty if none were found.
-