Constarium
← Search

Data · dataset · 2022

HuggingFaceM4/pmd

Listed in Hugging Face Datasets

""" # TODO: @thomasw21 _HOMEPAGE = "" # TODO: @thomasw21 _LICENSE = "" _FEATURES = datasets.Features( { # Some images provide an url others provide an Image.

Description

Both are exclusive. "image_url": datasets.Value("string"), "image": datasets.Image(), # An image can have multiple text associated with the same value. For example COCO. "texts": [datasets.Value("string")], # Define where the sample comes from, this is necessary when we start to use aggregated versions like PMD. "source": datasets.Value("string"), # We commit any kind of additional information in json format in `meta` "meta": datasets.Value("string"), } ) def json_serializer(o): if isinstance(o, datetime): return str(o) raise TypeError(f"Object of type {o.__class__.__name__} is not JSON serializable") class BaseLoader: def __init__(self, source: str, split: str, writer_batch_size: int): self.source = source self.split = split self.writer_batch_size = writer_batch_size @abstractmethod def _generate_batches(self): raise NotImplementedError() class DatasetsLoader(BaseLoader):

Links

Where it is published

Catalogue records · 1

Topics

Inferred from text
Image 75% · Text 75%
Provenance · 1 source records, 9 field assertions
SourceKeyLast seenRaw
Hugging Face DatasetsHuggingFaceM4/pmd13 d agoJSON v1
FieldAssertionExtractorEvidence
access_levelsource · Hugging Faceconnector:huggingface@1.0.0/gated
concepts[field].local:field:computer-science-aimapping · Hugging Faceconnector:huggingface@1.0.0
concepts[modality].local:modality:imageenrichment · Hugging Facekeyword-concept-rules@1.0.0title+description (75%)
concepts[modality].local:modality:textenrichment · Hugging Facekeyword-concept-rules@1.0.0title+description (75%)
created_datesource · Hugging Faceconnector:huggingface@1.0.0
descriptionsource · Hugging Faceconnector:huggingface@1.0.0/description
publication_datesource · Hugging Faceconnector:huggingface@1.0.0
titlesource · Hugging Faceconnector:huggingface@1.0.0/id
updated_datesource · Hugging Faceconnector:huggingface@1.0.0