modeler.predict(testDataset);
}</BUG>
public Dataframe predict(URI datasetURI) {
Map<Object, URI> dataset = new HashMap<>();
dataset.put(null, datasetURI);
<BUG>TextClassifier.TrainingParameters trainingParameters = knowledgeBase.getTrainingParameters();
</BUG>
Dataframe testDataset = Dataframe.Builder.parseTextFiles(dataset,
<BUG>AbstractTextExtractor.newInstance(trainingParameters.getTextExtractorClass(), trainingParameters.getTextExtractorParameters()),
knowledgeBase.getConf()</BUG>
);

knowledgeBase.getConf()
);
fit(trainingData);
trainingData.delete();
}
public Dataframe predict(URI datasetURI) {
Map<Object, URI> dataset = new HashMap<>();
dataset.put(null, datasetURI);
TrainingParameters trainingParameters = (TrainingParameters) knowledgeBase.getTrainingParameters();
Dataframe testDataset = Dataframe.Builder.parseTextFiles(dataset,
AbstractTextExtractor.newInstance(trainingParameters.getTextExtractorParameters()),
knowledgeBase.getConf()
);
