Package opennlp.dl.namefinder
Class NameFinderDL
- java.lang.Object
-
- opennlp.dl.namefinder.NameFinderDL
-
- All Implemented Interfaces:
TokenNameFinder
public class NameFinderDL extends Object implements TokenNameFinder
An implementation ofTokenNameFinderthat uses ONNX models.
-
-
Constructor Summary
Constructors Constructor Description NameFinderDL(File model, File vocabulary, Map<Integer,String> ids2Labels, InferenceOptions inferenceOptions, SentenceDetector sentenceDetector)NameFinderDL(File model, File vocabulary, Map<Integer,String> ids2Labels, SentenceDetector sentenceDetector)
-
-
-
Field Detail
-
INPUT_IDS
public static final String INPUT_IDS
- See Also:
- Constant Field Values
-
ATTENTION_MASK
public static final String ATTENTION_MASK
- See Also:
- Constant Field Values
-
TOKEN_TYPE_IDS
public static final String TOKEN_TYPE_IDS
- See Also:
- Constant Field Values
-
I_PER
public static final String I_PER
- See Also:
- Constant Field Values
-
B_PER
public static final String B_PER
- See Also:
- Constant Field Values
-
SEPARATOR
public static final String SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
NameFinderDL
public NameFinderDL(File model, File vocabulary, Map<Integer,String> ids2Labels, SentenceDetector sentenceDetector) throws Exception
- Throws:
Exception
-
NameFinderDL
public NameFinderDL(File model, File vocabulary, Map<Integer,String> ids2Labels, InferenceOptions inferenceOptions, SentenceDetector sentenceDetector) throws Exception
- Throws:
Exception
-
-
Method Detail
-
find
public Span[] find(String[] input)
- Specified by:
findin interfaceTokenNameFinder
-
clearAdaptiveData
public void clearAdaptiveData()
- Specified by:
clearAdaptiveDatain interfaceTokenNameFinder
-
-