diff --git a/inception/inception-io-bioc/src/main/java/de/tudarmstadt/ukp/inception/io/bioc/BioCFormatSupport.java b/inception/inception-io-bioc/src/main/java/de/tudarmstadt/ukp/inception/io/bioc/BioCFormatSupport.java index a17b1ca2036..7eb66cfd709 100644 --- a/inception/inception-io-bioc/src/main/java/de/tudarmstadt/ukp/inception/io/bioc/BioCFormatSupport.java +++ b/inception/inception-io-bioc/src/main/java/de/tudarmstadt/ukp/inception/io/bioc/BioCFormatSupport.java @@ -17,8 +17,11 @@ */ package de.tudarmstadt.ukp.inception.io.bioc; +import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngineDescription; import static org.apache.uima.fit.factory.CollectionReaderFactory.createReaderDescription; +import org.apache.uima.analysis_engine.AnalysisEngineDescription; +import org.apache.uima.cas.CAS; import org.apache.uima.collection.CollectionReaderDescription; import org.apache.uima.resource.ResourceInitializationException; import org.apache.uima.resource.metadata.TypeSystemDescription; @@ -57,6 +60,12 @@ public boolean isReadable() return true; } + @Override + public boolean isWritable() + { + return true; + } + @Override public CollectionReaderDescription getReaderDescription(Project aProject, TypeSystemDescription aTSD) @@ -64,4 +73,12 @@ public CollectionReaderDescription getReaderDescription(Project aProject, { return createReaderDescription(BioCReader.class, aTSD); } + + @Override + public AnalysisEngineDescription getWriterDescription(Project aProject, + TypeSystemDescription aTSD, CAS aCAS) + throws ResourceInitializationException + { + return createEngineDescription(BioCWriter.class, aTSD); + } }