public void loadDefaultModels(Path modelFile) {
        try (InputStream in = Files.newInputStream(modelFile)) {
            loadDefaultModels(in);
        } catch (IOException e) {
            throw new RuntimeException("Unable to read the default media type registry", e);
        }
    }
for testing purposes; this method write the histogram vector to a file.

@param histogram
@throws IOException
tika-core/src/main/java/org/apache/tika/detect/TrainedModelDetector.java