Dataset Viewer

The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider removing the loading script and relying on automated data support (you can use convert_to_parquet from the datasets library). If this is not possible, please open a discussion for direct help.

YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co./docs/hub/datasets-cards)

PIE Dataset Card for "ChemProt"

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

Data Schema

There are three versions of the dataset supported, chemprot_full_source, chemprot_shared_task_eval_source and chemprot_bigbio_kb.

ChemprotDocument for chemprot_source and chemprot_shared_task_eval_source

defines following fields:

  • text (str)
  • id (str, optional)
  • metadata (dictionary, optional)

and the following annotation layers:

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

ChemprotBigbioDocument for chemprot_bigbio_kb

defines following fields:

  • text (str)
  • id (str, optional)
  • metadata (dictionary, optional)

and the following annotation layers:

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

See here for the annotation type definitions.

Document Converters

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

  • pie_modules.documents.TextDocumentWithLabeledSpansAndBinaryRelations for ChemprotDocument
  • pie_modules.documents.TextDocumentWithLabeledSpansBinaryRelationsAndLabeledPartitions for ChemprotBigbioDocument

See here for the document type definitions.

Downloads last month
67