Skip to content

Commit

Permalink
#36 - Create metadata descriptions based on OMTD-SHARE schema
Browse files Browse the repository at this point in the history
- updated CerminePdfReader metadata
  • Loading branch information
maxxkia committed Nov 15, 2017
1 parent 79e0659 commit 000f6a7
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import eu.openminted.share.annotations.api.DataFormat;
import eu.openminted.share.annotations.api.ResourceInput;
import eu.openminted.share.annotations.api.ResourceOutput;
import eu.openminted.share.annotations.api.constants.ComponentConstants;

import org.apache.uima.UimaContext;
import org.apache.uima.cas.CAS;
Expand Down Expand Up @@ -59,9 +60,10 @@
"de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Heading",
"de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Paragraph" })
//OMTD-SHARE annotations
@Component(value="reader")
@ResourceInput(type="corpus", dataFormat= @DataFormat(fileExtension="pdf"), encoding="utf-8")
@ResourceOutput(type="corpus", dataFormat= @DataFormat(fileExtension="xmi"), encoding="utf-8")
@Component(value = ComponentConstants.ComponentTypeConstants.reader)
@ResourceInput(type = "corpus", dataFormat = @DataFormat(dataFormat = "pdf", fileExtension = ".pdf"
, mimeType = "application/pdf"), encoding = "UTF-8", keyword = "pdf")
@ResourceOutput(type = "corpus", dataFormat = @DataFormat(fileExtension = ".xmi"), encoding = "UTF-8", keyword = "xmi")
public class CerminePdfReader
extends ResourceCollectionReaderBase
{
Expand Down

0 comments on commit 000f6a7

Please sign in to comment.