Package opennlp.dl
Class AbstractDL
java.lang.Object
opennlp.dl.AbstractDL
- Direct Known Subclasses:
DocumentCategorizerDL,NameFinderDL,SentenceVectorsDL
Base class for OpenNLP deep-learning classes using ONNX Runtime.
-
Field Details
-
INPUT_IDS
- See Also:
-
ATTENTION_MASK
- See Also:
-
TOKEN_TYPE_IDS
- See Also:
-
-
Constructor Details
-
AbstractDL
public AbstractDL()
-
-
Method Details
-
loadVocab
Loads a vocabularyFilefrom disk.- Parameters:
vocabFile- The vocabulary file.- Returns:
- A map of vocabulary words to integer IDs.
- Throws:
IOException- Thrown if the vocabulary file cannot be opened or read.
-