datasets
Training and evaluation data, with the modality, task and licence stated up front. Listed live from the Hugging Face Hub.
real-resumes-section-detection-annotationsresumes-raw-pdf-for-ocrExtracted lists of pages from PDF resumes and the PDF texts.
Created using this code:
import io
import PIL.Image
from datasets import load_dataset
def render(pdf):
images = []
for page in pdf.pages:
buffer = io.BytesIO()
page.to_image(height=840).save(buffer)
images.append(PIL.Image.open(buffer))
return images
def extract_text(pdf):
return "\n".join(page.extract_text() for page in pdf.pages)
ds = load_dataset("d4rk3r/resumes-raw-pdf", split="train")… See the full description on the dataset page: https://huggingface.co/datasets/lhoestq/resumes-raw-pdf-for-ocr.anonymization-resumes-datasetgenerated-resumes-section-detection-annotations
