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