biorel / README.md
ArneBinder's picture
from https://github.com/ArneBinder/pie-datasets/pull/134
f9c96da verified

PIE Dataset Card for "BioRel"

This is a PyTorch-IE wrapper for the BioRel Huggingface dataset loading script.

Data Schema

The document type for this dataset is BioRelDocument which defines the following data fields:

  • text (str)

and the following annotation layers:

  • entities (annotation type: SpanWithIdAndName, target: text)
  • relations (annotation type: BinaryRelation, target: entities)

SpanWithIdAndName is a custom annotation type that extends typical Span with the following data fields:

  • id (str, for entity identification)
  • name (str, entity string between span start and end)

See here and here for the annotation type definitions.

Document Converters

The dataset provides predefined document converters for the following target document types:

  • pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations

See here and here for the document type definitions.