Skip to content

Commit

Permalink
Merge pull request #4396 from inception-project/bugfix/4395-BioC-expo…
Browse files Browse the repository at this point in the history
…rt-cannot-be-enabled

#4395 - BioC export cannot be enabled
  • Loading branch information
reckart authored Dec 27, 2023
2 parents 0687283 + cf38851 commit 3446478
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -57,11 +60,25 @@ public boolean isReadable()
return true;
}

@Override
public boolean isWritable()
{
return true;
}

@Override
public CollectionReaderDescription getReaderDescription(Project aProject,
TypeSystemDescription aTSD)
throws ResourceInitializationException
{
return createReaderDescription(BioCReader.class, aTSD);
}

@Override
public AnalysisEngineDescription getWriterDescription(Project aProject,
TypeSystemDescription aTSD, CAS aCAS)
throws ResourceInitializationException
{
return createEngineDescription(BioCWriter.class, aTSD);
}
}

0 comments on commit 3446478

Please sign in to comment.