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
- Hugging Face dataset page huggingface.co/datasets/HuggingFaceM4/pmd ↗
landing page · from Hugging Face
Catalogue records · 1
- Hub API huggingface.co/api/datasets/HuggingFaceM4/pmd ↗
metadata API · from Hugging Face
Topics
- From keywords
- Computer Science & AI
Provenance · 1 source records, 9 field assertions
| Source | Key | Last seen | Raw |
|---|---|---|---|
| Hugging Face Datasets | HuggingFaceM4/pmd | 13 d ago | JSON v1 |
| Field | Assertion | Extractor | Evidence |
|---|---|---|---|
| access_level | source · Hugging Face | connector:huggingface@1.0.0 | /gated |
| concepts[field].local:field:computer-science-ai | mapping · Hugging Face | connector:huggingface@1.0.0 | |
| concepts[modality].local:modality:image | enrichment · Hugging Face | keyword-concept-rules@1.0.0 | title+description (75%) |
| concepts[modality].local:modality:text | enrichment · Hugging Face | keyword-concept-rules@1.0.0 | title+description (75%) |
| created_date | source · Hugging Face | connector:huggingface@1.0.0 | |
| description | source · Hugging Face | connector:huggingface@1.0.0 | /description |
| publication_date | source · Hugging Face | connector:huggingface@1.0.0 | |
| title | source · Hugging Face | connector:huggingface@1.0.0 | /id |
| updated_date | source · Hugging Face | connector:huggingface@1.0.0 |