Package org.apache.tika.detect
Class NNExampleModelDetector
- java.lang.Object
-
- org.apache.tika.detect.TrainedModelDetector
-
- org.apache.tika.detect.NNExampleModelDetector
-
- All Implemented Interfaces:
java.io.Serializable
,Detector
public class NNExampleModelDetector extends TrainedModelDetector
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NNExampleModelDetector()
NNExampleModelDetector(java.io.File modelFile)
NNExampleModelDetector(java.nio.file.Path modelFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
loadDefaultModels(java.io.InputStream modelStream)
void
loadDefaultModels(java.lang.ClassLoader classLoader)
this method gets overwritten to register load neural network models-
Methods inherited from class org.apache.tika.detect.TrainedModelDetector
detect, getMinLength, loadDefaultModels, loadDefaultModels
-
-
-
-
Method Detail
-
loadDefaultModels
public void loadDefaultModels(java.io.InputStream modelStream)
- Specified by:
loadDefaultModels
in classTrainedModelDetector
-
loadDefaultModels
public void loadDefaultModels(java.lang.ClassLoader classLoader)
this method gets overwritten to register load neural network models- Specified by:
loadDefaultModels
in classTrainedModelDetector
-
-