Package opennlp.tools.models.classgraph
Klasse ClassgraphModelFinder
java.lang.Object
opennlp.tools.models.AbstractClassPathModelFinder
opennlp.tools.models.classgraph.ClassgraphModelFinder
- Alle implementierten Schnittstellen:
ClassPathModelFinder
public class ClassgraphModelFinder
extends AbstractClassPathModelFinder
implements ClassPathModelFinder
Enables the detection of OpenNLP models in the classpath via classgraph.
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 for "opennlp-models-*.jar".ClassgraphModelFinder
(String modelJarPrefix) -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.models.AbstractClassPathModelFinder
findModels
Von Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden opennlp.tools.models.ClassPathModelFinder
findModels
-
Konstruktordetails
-
ClassgraphModelFinder
public ClassgraphModelFinder()By default, it scans for "opennlp-models-*.jar". -
ClassgraphModelFinder
- Parameter:
modelJarPrefix
- The leafnames of the jars that should be canned (e.g. "opennlp.jar"). May contain a wildcard glob ("opennlp-*.jar"). It must not benull
.
-