My main program looks something like:
public static void main(String args[]) throws UIMAException, IOException{
//TypeSystemDescription tsd = TypeSystemDescriptionFactory.createTypeSystemDescription(Question.class);
AggregateBuilder builder = new AggregateBuilder();
//builder.add(SentenceAnnotator.getDescription());
builder.add(AnalysisEngineFactory.createPrimitiveDescription(POSAnnotator1.class,
ExampleComponents.TYPE_SYSTEM_DESCRIPTION,
GenericJarClassifierFactory.PARAM_CLASSIFIER_JAR_PATH, outputDirectory + File.separator + "model.jar",
CleartkAnnotator.PARAM_IS_TRAINING, true,
DefaultDataWriterFactory.PARAM_DATA_WRITER_CLASS_NAME, InstanceDataWriter.class.getName(),
DirectoryDataWriterFactory.PARAM_OUTPUT_DIRECTORY, new File(outputDirectory)));
JCas jcas = JCasFactory.createJCas();
jcas.setDocumentText(testData);
SimplePipeline.runPipeline(jcas, builder.createAggregateDescription());
}
Can anyone explain this error?
Caused by: java.lang.IllegalArgumentException: Errors initializing [class org.cleartk.classifier.jar.DefaultSequenceDataWriterFactory] Field 'dataWriterClassName' is required
I have tried to replace InstanceDataWriter with other data writers, but they do not work.