Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
page: int64
text: string
char_count: int64
source_page: int64
paragraph_id: int64
to
{'text': Value('string'), 'source_page': Value('int64'), 'paragraph_id': Value('int64'), 'char_count': Value('int64')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 147, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 127, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 478, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2818, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2355, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2380, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 536, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 419, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 343, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2369, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2297, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              page: int64
              text: string
              char_count: int64
              source_page: int64
              paragraph_id: int64
              to
              {'text': Value('string'), 'source_page': Value('int64'), 'paragraph_id': Value('int64'), 'char_count': Value('int64')}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Pharma Domain Corpus

This dataset contains text extracted from pharmaceutical PDF sources, used for domain-adaptive continued pretraining of a causal language model (TinyLlama).

Files

  • pdf_pages_raw.jsonl — raw text extracted page-by-page from source PDF(s), before any cleaning.
  • pharma_paragraph_process.jsonl — cleaned and paragraph-split version of the raw text, used directly for tokenization and training.

Processing pipeline

  1. Extract raw text from PDF pages.
  2. Clean text (remove boilerplate, fix whitespace/encoding issues).
  3. Split into paragraphs for packing into fixed-length training sequences.

Intended use

Domain-adaptive continued pretraining (non-instruction causal LM fine-tuning) for pharmaceutical-domain language modeling. Not intended as a QA/instruction dataset (see companion instruction-tuning notebook for that use case).

Source

Extracted from pharmaceutical reference PDF(s), e.g. Metformin-Lipid-Therapy-Knowledge.pdf.

Downloads last month
25

Models trained or fine-tuned on ThakrePranjal/pharma-domain-corpus