Package opennlp.dl.namefinder
Klasse NameFinderDL
java.lang.Object
opennlp.dl.AbstractDL
opennlp.dl.namefinder.NameFinderDL
- Alle implementierten Schnittstellen:
AutoCloseable
,TokenNameFinder
An implementation of
TokenNameFinder
that uses ONNX models.- Siehe auch:
-
Feldübersicht
FelderVon Klasse geerbte Felder opennlp.dl.AbstractDL
ATTENTION_MASK, INPUT_IDS, TOKEN_TYPE_IDS
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungNameFinderDL
(File model, File vocabulary, Map<Integer, String> ids2Labels, InferenceOptions inferenceOptions, SentenceDetector sentenceDetector) Instantiates aname finder
using ONNX models.NameFinderDL
(File model, File vocabulary, Map<Integer, String> ids2Labels, SentenceDetector sentenceDetector) Instantiates aname finder
using ONNX models. -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.dl.AbstractDL
close, loadVocab
-
Felddetails
-
I_PER
- Siehe auch:
-
B_PER
- Siehe auch:
-
SEPARATOR
- Siehe auch:
-
-
Konstruktordetails
-
NameFinderDL
public NameFinderDL(File model, File vocabulary, Map<Integer, String> ids2Labels, SentenceDetector sentenceDetector) throws IOException, ai.onnxruntime.OrtExceptionInstantiates aname finder
using ONNX models.- Parameter:
model
- The ONNX model file.vocabulary
- The model file's vocabulary file.ids2Labels
- The mapping of ids to labels.sentenceDetector
- TheSentenceDetector
to be used.- Löst aus:
ai.onnxruntime.OrtException
- Thrown if themodel
cannot be loaded.IOException
- Thrown if errors occurred loading themodel
orvocabulary
.
-
NameFinderDL
public NameFinderDL(File model, File vocabulary, Map<Integer, String> ids2Labels, InferenceOptions inferenceOptions, SentenceDetector sentenceDetector) throws IOException, ai.onnxruntime.OrtExceptionInstantiates aname finder
using ONNX models.- Parameter:
model
- The ONNX model file.vocabulary
- The model file's vocabulary file.ids2Labels
- The mapping of ids to labels.inferenceOptions
-InferenceOptions
to control the inference.sentenceDetector
- TheSentenceDetector
to be used.- Löst aus:
ai.onnxruntime.OrtException
- Thrown if themodel
cannot be loaded.IOException
- Thrown if errors occurred loading themodel
orvocabulary
.
-
-
Methodendetails
-
find
- Angegeben von:
find
in SchnittstelleTokenNameFinder
-
clearAdaptiveData
public void clearAdaptiveData()- Angegeben von:
clearAdaptiveData
in SchnittstelleTokenNameFinder
-