use of org.apache.uima.resource.ExternalResourceDescription in project dkpro-tc by dkpro.
the class CosineSimilarityTest method getFeatureExtractorCollector.
@Override
protected void getFeatureExtractorCollector(List<Object> parameterList) throws ResourceInitializationException {
ExternalResourceDescription featureExtractor = ExternalResourceFactory.createExternalResourceDescription(CosineFeatureExtractor.class, parameters);
List<ExternalResourceDescription> fes = new ArrayList<>();
fes.add(featureExtractor);
featExtractorConnector = TaskUtils.getFeatureExtractorConnector(outputPath.getAbsolutePath(), JsonDataWriter.class.getName(), Constants.LM_REGRESSION, Constants.FM_PAIR, false, false, false, false, Collections.emptyList(), fes, new String[0]);
}
use of org.apache.uima.resource.ExternalResourceDescription in project dkpro-tc by dkpro.
the class SharedNounChunksTest method getFeatureExtractorCollector.
@Override
protected void getFeatureExtractorCollector(List<Object> parameterList) throws ResourceInitializationException {
ExternalResourceDescription featureExtractor = ExternalResourceFactory.createExternalResourceDescription(SharedNounChunks.class, toString(parameterList.toArray()));
List<ExternalResourceDescription> fes = new ArrayList<>();
fes.add(featureExtractor);
featExtractorConnector = TaskUtils.getFeatureExtractorConnector(outputPath.getAbsolutePath(), JsonDataWriter.class.getName(), Constants.LM_SINGLE_LABEL, Constants.FM_PAIR, false, false, false, false, Collections.emptyList(), fes, new String[] {});
}
Aggregations