Package opennlp.dl
Klasse AbstractDL
java.lang.Object
opennlp.dl.AbstractDL
- Alle implementierten Schnittstellen:
AutoCloseable
- Bekannte direkte Unterklassen:
DocumentCategorizerDL
,NameFinderDL
,SentenceVectorsDL
Base class for OpenNLP deep-learning classes using ONNX Runtime.
-
Felddetails
-
INPUT_IDS
- Siehe auch:
-
ATTENTION_MASK
- Siehe auch:
-
TOKEN_TYPE_IDS
- Siehe auch:
-
-
Konstruktordetails
-
AbstractDL
public AbstractDL()
-
-
Methodendetails
-
loadVocab
Loads a vocabularyFile
from disk.- Parameter:
vocabFile
- The vocabulary file.- Gibt zurück:
- A map of vocabulary words to integer IDs.
- Löst aus:
IOException
- Thrown if the vocabulary file cannot be opened or read.
-
close
Closes this resource, relinquishing any underlying resources.- Angegeben von:
close
in SchnittstelleAutoCloseable
- Löst aus:
ai.onnxruntime.OrtException
- Thrown if it failed to close Ort resources.IllegalStateException
- Thrown if the underlying resources were already closed.
-