id stringlengths 51 69 | rvlcdip_path stringlengths 33 52 | label stringclasses 16
values | label_fixed stringclasses 16
values | image imagewidth (px) 606 1.47k | width int32 606 1.47k | height int32 1k 1k |
|---|---|---|---|---|---|---|
train_memo_34b49525-e5fa-40dc-854f-93e7478c66a3.jpg | imagesq/q/o/c/qoc54c00/80035521.tif | memo | memo | 754 | 1,000 | |
train_form_b547440d-b34a-4958-bce8-33af6b89b024.jpg | imagese/e/w/c/ewc23d00/513280028.tif | form | form | 771 | 1,000 | |
train_specification_cbb641fb-9f67-4df5-ab4c-81ec62b92c5a.jpg | imagesw/w/b/t/wbt26e00/2053453161.tif | specification | specification | 795 | 1,000 | |
train_budget_c1f54dea-0d88-4ab4-98a7-536545812af8.jpg | imagesm/m/k/m/mkm05e00/2040792992_2040792994.tif | budget | budget | 806 | 1,000 | |
train_handwritten_f8daae7e-c769-400d-ae87-0ead4c35725b.jpg | imageso/o/e/x/oex80d00/522787731+-7732.tif | handwritten | null | 754 | 1,000 | |
train_resume_67a3179e-ee80-4461-9753-296a0cdb6a32.jpg | imagesq/q/v/t/qvt06d00/50525666-5667.tif | resume | resume | 754 | 1,000 | |
train_invoice_03ca4599-6977-4a2f-b7e4-9fdb792c87e5.jpg | imagesr/r/l/z/rlz20d00/521107137+-7140.tif | invoice | invoice | 754 | 1,000 | |
train_questionnaire_5ee0affd-828f-4cbe-876d-8272d66fb3e7.jpg | imagesk/k/n/i/kni98c00/87538356_8359.tif | questionnaire | questionnaire | 754 | 1,000 | |
train_letter_a056126a-344d-41d2-a3d0-4fb138d22b67.jpg | imagesm/m/q/v/mqv03f00/0011846871.tif | letter | letter | 752 | 1,000 | |
train_email_4589456a-abe6-440e-b8aa-739d6bdc14bd.jpg | imagesf/f/o/x/fox75a00/2505168109_8112.tif | email | email | 802 | 1,000 | |
train_news_article_a9a0f836-cbaa-4851-8425-9f4d6cdbf3b6.jpg | imagesl/l/m/r/lmr62f00/tob11616.13.tif | news_article | news_article | 799 | 1,000 | |
train_advertisement_48e517de-c3dc-40ae-b8ac-99f57842f990.jpg | imagesj/j/c/b/jcb02d00/71388738.tif | advertisement | advertisement | 762 | 1,000 | |
train_advertisement_6900245b-5dab-48f0-87a7-70632029260d.jpg | imagesm/m/r/d/mrd16e00/2044400348.tif | advertisement | advertisement | 748 | 1,000 | |
train_specification_afa833de-5b9f-47e5-88d6-b2d85bcfbe50.jpg | imagesi/i/x/l/ixl83d00/509002680.tif | specification | specification | 771 | 1,000 | |
train_presentation_034ece88-d288-4e9b-96b7-4115b45b6c6c.jpg | imagesp/p/i/u/piu62d00/80303362_3392.tif | presentation | presentation | 754 | 1,000 | |
train_form_d77864a1-155f-4925-b5d8-0769a91b5ee0.jpg | imagesd/d/b/t/dbt17d00/2074444405.tif | form | form | 754 | 1,000 | |
train_email_3db208f2-6ab2-48a1-93ba-e5618c27ce86.jpg | imagesy/y/s/o/yso47c00/2063068018.tif | email | email | 754 | 1,000 | |
train_handwritten_c83f1af9-1cc9-4762-b289-ca8fe60a455a.jpg | imagesn/n/t/y/nty14d00/507705676.tif | handwritten | handwritten | 778 | 1,000 | |
train_scientific_report_e46c3fa3-9204-480c-9d50-7931fd54fee0.jpg | imagesx/x/y/o/xyo21e00/87777221_87777238.tif | scientific_report | scientific_publication | 774 | 1,000 | |
train_letter_e850069c-d0d1-4cc1-a6de-08f71e818990.jpg | imagesr/r/m/e/rme14a00/71453906.tif | letter | memo | 762 | 1,000 | |
train_form_94e99543-7f01-475e-946b-ec03f8b87e1f.jpg | imagesq/q/x/t/qxt63e00/2030020115_2030020126.tif | form | form | 765 | 1,000 | |
train_scientific_report_2b5b1a6b-5880-4db7-ac9f-f647edb45d44.jpg | imagesx/x/u/n/xun81c00/2505914954_4958.tif | scientific_report | scientific_report | 754 | 1,000 | |
train_form_0eb16b6a-f2c1-4f3f-8481-9d4017c625e7.jpg | imagesu/u/d/w/udw43a00/2065401061.tif | form | form | 754 | 1,000 | |
train_letter_43afce0f-7238-41b9-b5c6-1e978ad87058.jpg | imagesp/p/b/a/pba20e00/84440527_84440528.tif | letter | letter | 780 | 1,000 | |
train_memo_7e23827b-a031-42a5-b06d-8a8e97959583.jpg | imagesc/c/u/l/cul51a00/0071082784.tif | memo | memo | 771 | 1,000 | |
train_memo_c10ac7de-5484-4c39-8482-67a457fcc27d.jpg | imagesl/l/w/p/lwp84c00/95968195_8197.tif | memo | memo | 754 | 1,000 | |
train_news_article_6783b296-60b3-4656-983b-cc6c2aaebbea.jpg | imageso/o/p/s/ops62f00/tob11501.47_tob11501.48.tif | news_article | news_article | 780 | 1,000 | |
train_letter_510fd859-52e4-4929-a1cd-050a0773605c.jpg | imagesl/l/f/t/lft82f00/tob06912.07_tob06912.11.tif | letter | letter | 777 | 1,000 | |
train_resume_95da7fd3-f160-49b7-a7be-4a5513367c5d.jpg | imagese/e/n/g/eng09d00/50434449-4450.tif | resume | resume | 754 | 1,000 | |
train_questionnaire_26ff34ed-c685-42bd-8c39-bfcd9659c01b.jpg | imagesw/w/b/f/wbf13a00/511162152+-2232.tif | questionnaire | questionnaire | 754 | 1,000 | |
train_handwritten_99aba703-7ade-4efa-a6db-4cc05cc8327d.jpg | imageso/o/v/q/ovq40d00/517303299+-3300.tif | handwritten | handwritten | 754 | 1,000 | |
train_advertisement_dbaa61e3-d3f5-4f26-9a43-06e0bcbdff25.jpg | imagesf/f/g/l/fgl71c00/2084427329_7330.tif | advertisement | news_article | 754 | 1,000 | |
train_news_article_5c7656ac-f742-4320-bc0b-19617cd8d65a.jpg | imagesm/m/x/p/mxp43a00/2077357149.tif | news_article | news_article | 754 | 1,000 | |
train_news_article_4b49fc12-02be-4354-ad8c-717babd2bb95.jpg | imageso/o/r/p/orp31e00/85644454.tif | news_article | news_article | 776 | 1,000 | |
train_scientific_report_bf48a303-598f-4595-9bef-6a6b1fe0296b.jpg | imagesx/x/j/y/xjy15c00/2505645957_6016.tif | scientific_report | scientific_report | 754 | 1,000 | |
train_handwritten_478302e1-8ece-4569-8961-615dfda8cc5f.jpg | imagese/e/j/k/ejk41d00/515625855+-5858.tif | handwritten | null | 754 | 1,000 | |
train_scientific_publication_89e3bf2b-f29e-4bc8-897e-ad50b34d9f7a.jpg | imagesf/f/c/s/fcs45d00/2062517421_7428.tif | scientific_publication | scientific_publication | 754 | 1,000 | |
train_scientific_report_2cc06904-5f76-481d-9fbb-32eb48e193d4.jpg | imagesf/f/v/r/fvr46e00/2012600678.tif | scientific_report | scientific_report | 777 | 1,000 | |
train_budget_00ec79a8-6dd3-4655-bc81-e1a2fd52a8be.jpg | imagesu/u/j/u/uju26e00/2043629319.tif | budget | null | 783 | 1,000 | |
train_email_4f49bb71-6144-4300-a134-e9291ba2cd22.jpg | imagesu/u/p/e/upe08c00/527817946+-7946.tif | email | email | 754 | 1,000 | |
train_presentation_e0cd77d7-0382-4739-8dd1-5b531c943043.jpg | imagese/e/w/t/ewt38d00/2000633620_3621.tif | presentation | presentation | 754 | 1,000 | |
train_letter_24ce440d-35ca-4219-a993-989035a4ebb0.jpg | imagesf/f/u/a/fua93f00/0000981319.tif | letter | letter | 762 | 1,000 | |
train_specification_c8cfa996-e63f-4d5a-879c-68e6ef844730.jpg | imagesf/f/b/r/fbr17e00/2031296898.tif | specification | specification | 778 | 1,000 | |
train_presentation_494a8005-de4b-4482-a19e-7fb9af7371ac.jpg | imagese/e/c/q/ecq76c00/2075905271_5292.tif | presentation | presentation | 754 | 1,000 | |
train_form_d64c54da-c193-42f8-9803-cf383fb86e3d.jpg | imagesr/r/q/b/rqb74e00/1003196545_1003196546.tif | form | form | 777 | 1,000 | |
train_handwritten_08a5f460-bb2e-4d09-bddd-1f3cb754d10c.jpg | imagesj/j/q/a/jqa60d00/517515626+-5627.tif | handwritten | handwritten | 754 | 1,000 | |
train_handwritten_bd89d55a-c460-4ebb-95ed-41d7205ee6da.jpg | imagese/e/s/h/esh21d00/514328274+-8283.tif | handwritten | null | 754 | 1,000 | |
train_specification_bc2f88e7-7825-45e5-b34a-c8586c11245a.jpg | imagest/t/d/l/tdl24c00/2069711428.tif | specification | specification | 754 | 1,000 | |
train_file_folder_3dc431c3-f1c6-495b-9474-0a8fa281d11c.jpg | imagesh/h/b/d/hbd53e00/2061992268_2061992269.tif | file_folder | file_folder | 778 | 1,000 | |
train_form_5def9061-3a7e-4009-968a-b9793adba791.jpg | imagesv/v/g/p/vgp80c00/2074917034.tif | form | null | 754 | 1,000 | |
train_specification_eb464397-6b74-4e81-aa1f-0e477e0e3a29.jpg | imagesc/c/c/y/ccy22c00/2069739330.tif | specification | specification | 754 | 1,000 | |
train_memo_ec4d8eba-097b-499f-abab-f6f0914fb710.jpg | imagesy/y/r/g/yrg92e00/2045722830.tif | memo | memo | 849 | 1,000 | |
train_letter_1520de7c-e74e-4b08-a455-2f687933f946.jpg | imagesr/r/q/y/rqy84f00/0060276970.tif | letter | letter | 762 | 1,000 | |
train_advertisement_39715fe7-6089-4073-8e05-be3a656830ef.jpg | imagesg/g/p/u/gpu54c00/01792718.tif | advertisement | advertisement | 754 | 1,000 | |
train_news_article_f7405440-0985-48c1-96a7-1e5092eb4d75.jpg | imagesc/c/e/y/cey85c00/2073735558.tif | news_article | news_article | 754 | 1,000 | |
train_advertisement_700e812b-5f09-4f88-acca-dc4e6ebb2184.jpg | imagesc/c/d/a/cda43a00/71895622.tif | advertisement | advertisement | 762 | 1,000 | |
train_email_a67c14a2-9689-4090-8d19-af35b218e92d.jpg | imagesz/z/s/i/zsi85a00/531443964+-3987.tif | email | null | 754 | 1,000 | |
train_scientific_publication_583d3510-653a-41d1-b3d2-7131b5dd899a.jpg | imagesv/v/b/d/vbd42d00/2060489521_9527.tif | scientific_publication | scientific_publication | 754 | 1,000 | |
train_specification_90f73485-3621-4756-b1e8-ab40bbfabad7.jpg | imagesb/b/o/h/boh17e00/2031316161.tif | specification | specification | 770 | 1,000 | |
train_news_article_d8bacb22-6655-49a1-a60c-d17c0968ff08.jpg | imagesp/p/q/c/pqc70e00/85876050.tif | news_article | news_article | 758 | 1,000 | |
train_handwritten_8bebf200-0100-4fe9-a4dd-04044aff8e10.jpg | imagesd/d/f/d/dfd19d00/502393514_502393515.tif | handwritten | handwritten | 779 | 1,000 | |
train_memo_aae5d792-f455-46f0-9480-0e84e0259eaa.jpg | imagest/t/t/i/tti18e00/1001856707.tif | memo | memo | 777 | 1,000 | |
train_email_29f77ab2-28c5-435b-b32e-b2d523009d87.jpg | imagesd/d/o/o/doo55a00/531713606+-3606.tif | email | email | 754 | 1,000 | |
train_scientific_report_25e8be39-ef7b-4a83-a626-882b5b310ff8.jpg | imagesd/d/l/y/dly18d00/2072855494_5499.tif | scientific_report | scientific_report | 754 | 1,000 | |
train_presentation_b92f6e8e-a218-402f-b42d-20e2c10065bd.jpg | imagesw/w/k/q/wkq35f00/0060031148.tif | presentation | presentation | 762 | 1,000 | |
train_scientific_publication_f6ae96f9-7f10-4072-bd40-42b563d6a6f0.jpg | imagesj/j/t/c/jtc33e00/2021548774_2021548781.tif | scientific_publication | scientific_publication | 777 | 1,000 | |
train_resume_9d864213-bd5b-4425-8a1c-ba3571b7eba5.jpg | imagesv/v/o/s/vos88e00/2021575871.tif | resume | resume | 753 | 1,000 | |
train_news_article_c575369e-0aa9-4bfe-be3c-e8ed6d3aac0b.jpg | imagesz/z/x/n/zxn82f00/tob07323.07_tob07323.08.tif | news_article | news_article | 781 | 1,000 | |
train_specification_68729219-f8f8-4e36-a35d-f790c80a417c.jpg | imagesa/a/p/x/apx86e00/2057673032.tif | specification | specification | 784 | 1,000 | |
train_email_bb8ec510-0e61-4136-8162-9e01fd24b712.jpg | imagesz/z/y/p/zyp35c00/2083724987c.tif | email | email | 754 | 1,000 | |
train_questionnaire_1c5e416d-4abb-400b-b348-3c4e6d775e8c.jpg | imagesz/z/j/g/zjg84d00/506185970_506185971.tif | questionnaire | questionnaire | 780 | 1,000 | |
train_specification_563748e2-5e9c-4e59-bfa6-8c678794b4eb.jpg | imagesm/m/o/i/moi76e00/2057640402.tif | specification | specification | 793 | 1,000 | |
train_budget_f07bf755-f51f-402e-bdba-9e281c9c20ae.jpg | imagesb/b/v/v/bvv07d00/tnwl0017786.tif | budget | budget | 754 | 1,000 | |
train_letter_c67bf7a7-7842-46ad-92f0-ef3b26be0cc4.jpg | imagesn/n/t/p/ntp25d00/505248099.tif | letter | memo | 791 | 1,000 | |
train_budget_b154f0f1-4c21-4ca3-bc5d-58a0bc03be18.jpg | imagesi/i/f/n/ifn53c00/95544921_4925.tif | budget | file_folder | 754 | 1,000 | |
train_scientific_report_f5364937-9ce7-45f7-92fc-dd32f59f3f6d.jpg | imagesm/m/h/l/mhl88c00/00966197.tif | scientific_report | null | 754 | 1,000 | |
train_budget_049f553a-f111-40d4-8fe0-2a665ad0e590.jpg | imagesp/p/z/y/pzy81e00/01396724.tif | budget | budget | 768 | 1,000 | |
train_advertisement_84560d5c-3551-4204-b217-335a63a496c2.jpg | imagesi/i/y/y/iyy74c00/91654603_4604.tif | advertisement | null | 754 | 1,000 | |
train_news_article_83ecdf47-166c-407a-ac77-dc1ba3c1129e.jpg | imagesq/q/m/c/qmc02c00/2080734349.tif | news_article | news_article | 754 | 1,000 | |
train_news_article_612c35ff-85ba-488f-9fea-ad689e2fabbb.jpg | imagesd/d/h/v/dhv02a00/1003543395.tif | news_article | news_article | 777 | 1,000 | |
train_scientific_publication_6549f499-2d09-4ede-b0c6-d157f20eb1eb.jpg | imagesh/h/f/q/hfq26d00/50647708-7708.tif | scientific_publication | scientific_publication | 754 | 1,000 | |
train_budget_a06da71c-013d-4e49-ada7-d155cb8ef304.jpg | imagesp/p/k/e/pke42f00/94009282_94009283.tif | budget | budget | 784 | 1,000 | |
train_memo_8c625ecf-e0eb-43c2-a33e-295892cb9967.jpg | imagesf/f/h/m/fhm46d00/50109735-9735.tif | memo | memo | 754 | 1,000 | |
train_letter_16011f98-6056-4ca7-bdf7-504a92dffa41.jpg | imagesu/u/a/d/uad82d00/518039438.tif | letter | memo | 807 | 1,000 | |
train_file_folder_4579983a-8b92-443f-9099-0c90082bbffe.jpg | imagesu/u/s/e/use80e00/92034200.tif | file_folder | file_folder | 812 | 1,000 | |
train_form_78a8d41e-102c-4f7c-bd44-67cb753a5bce.jpg | imagesb/b/v/s/bvs19c00/2074859702.tif | form | form | 754 | 1,000 | |
train_advertisement_526b2af8-0db8-4ff8-9596-3a122d3bbc14.jpg | imagesf/f/y/p/fyp36c00/2072280165.tif | advertisement | advertisement | 754 | 1,000 | |
train_news_article_45fd3a02-8f39-4cf4-90e5-bd592eb79170.jpg | imagest/t/c/m/tcm38d00/2044337422_7423.tif | news_article | news_article | 754 | 1,000 | |
train_questionnaire_4784caee-6ade-49cf-a61a-e81ad81b4163.jpg | imagesl/l/n/d/lnd34d00/507335582.tif | questionnaire | questionnaire | 778 | 1,000 | |
train_scientific_publication_9508b657-6f94-47be-8e55-8b63a034999c.jpg | imagese/e/m/n/emn59c00/PUBLICATIONS039309-9.tif | scientific_publication | scientific_publication | 754 | 1,000 | |
train_invoice_d2b9f45b-fea6-40cb-b4eb-8cdad5ff3932.jpg | imagesk/k/w/s/kws90e00/91514628.tif | invoice | invoice | 786 | 1,000 | |
train_questionnaire_9b3766f3-58c1-4ca3-97ee-5a765521b5c4.jpg | imagesq/q/q/o/qqo16e00/2048208007_2048208015.tif | questionnaire | questionnaire | 637 | 1,000 | |
train_invoice_6452ea1d-102c-41a8-a907-383116b418b5.jpg | imagesk/k/f/z/kfz64c00/91507726_7727.tif | invoice | invoice | 754 | 1,000 | |
train_questionnaire_80499af3-e09a-410c-82df-bc0274c63ec9.jpg | imagesp/p/o/q/poq50f00/0000230391.tif | questionnaire | null | 762 | 1,000 | |
train_news_article_b3a3ba3d-2d29-463c-baf9-a74b4fe4076a.jpg | imagesn/n/i/r/nir62f00/tob11707.71.tif | news_article | news_article | 780 | 1,000 | |
train_specification_71da2d2f-809b-444f-bbbc-0915fd05b4b0.jpg | imagesp/p/q/u/pqu77c00/504572029+-2029.tif | specification | specification | 754 | 1,000 | |
train_form_f98605fc-3ade-46dd-b371-145252c37840.jpg | imagesu/u/c/y/ucy46c00/2505164363.tif | form | form | 754 | 1,000 | |
train_specification_d0c25698-153e-4757-ae09-66a1238fa033.jpg | imagesv/v/d/r/vdr71a00/2057454202_2057454206.tif | specification | specification | 872 | 1,000 | |
train_memo_08a62dab-1b12-4e19-8516-8647d51d0293.jpg | imagesd/d/x/f/dxf26e00/2056141337_2056141339.tif | memo | memo | 792 | 1,000 | |
train_email_2d35ebdd-31a5-47d2-9bfd-7fbcdc25cac6.jpg | imagesn/n/y/h/nyh36c00/2078349575.tif | email | email | 754 | 1,000 |
RVL-CDIP, De-identified, With and Without Identification Codes
This dataset contains two versions of the RVL-CDIP document classification corpus, each as page images and as OCR output from two engines:
redact: personal data on the pages (such as social security numbers) has been replaced with synthetic values of the same kind, drawn onto the page in place of the original. About 15,171 of the 400,000 pages were changed; the other pages are those of RVL-CDIP.redact_noid: theredactpages with the identification codes (Bates numbers and similar stamps) removed as well. Most RVL-CDIP pages contain such a code, and its position and format are associated with the category label, so a classifier can use it as a shortcut. The codes were located withstefan-hf/yolov8n-rvlcdip-idcodes; their boxes and transcriptions are instefan-hf/rvlcdip-id-codes.
Training on redact and on redact_noid and comparing the two measures how much a model relies
on the codes. The classifiers in
stefan-hf/rvlcdip-classifiers were
trained on these files.
Configurations
| config | contents | size |
|---|---|---|
images_redact |
page images, redact |
38.1 GB |
images_redact_noid |
page images, redact_noid |
37.5 GB |
textract_redact |
Amazon Textract OCR of the redact images |
1.85 GB, 84.3 million words |
textract_redact_noid |
Amazon Textract OCR of the redact_noid images |
1.84 GB, 84.0 million words |
tesseract_redact |
Tesseract 4.1.1 OCR of the redact images |
1.34 GB, 69.2 million words |
tesseract_redact_noid |
Tesseract 4.1.1 OCR of the redact_noid images |
1.33 GB, 68.6 million words |
Every config has the RVL-CDIP splits (320,000 train / 40,000 validation / 39,999 test documents)
and one row per document. The rows are in the same order in all six configs, and the id field
is shared, so an image config and a text config can be joined by position or by id.
from datasets import load_dataset
images = load_dataset("stefan-hf/rvlcdip-redact", "images_redact_noid", split="test")
words = load_dataset("stefan-hf/rvlcdip-redact", "textract_redact_noid", split="test")
assert images[0]["id"] == words[0]["id"]
Downloading a single configuration
Each config is stored in its own folder of Parquet files, so one config can be downloaded
without the others. Naming the config in load_dataset fetches only the files of that config,
and adding split restricts the download to the files of that split:
from datasets import load_dataset
# Tesseract OCR of the redact_noid pages, all three splits (1.33 GB)
ocr = load_dataset("stefan-hf/rvlcdip-redact", "tesseract_redact_noid")
# test split of the redact images only (3.8 GB instead of 38.1 GB)
test_images = load_dataset("stefan-hf/rvlcdip-redact", "images_redact", split="test")
# rows read over the network without storing the files
stream = load_dataset("stefan-hf/rvlcdip-redact", "images_redact", split="train", streaming=True)
images_redact is the default config, so load_dataset("stefan-hf/rvlcdip-redact") without a config name
downloads the 38.1 GB of redact images.
To get the Parquet files themselves, restrict the download to one folder:
hf download stefan-hf/rvlcdip-redact --repo-type dataset --include "textract_redact/*" --local-dir rvlcdip_redact
from huggingface_hub import snapshot_download
snapshot_download("stefan-hf/rvlcdip-redact", repo_type="dataset", allow_patterns="textract_redact/*")
Fields
All configs:
| field | description |
|---|---|
id |
file name in our copy of the corpus, {split}_{category}_{uuid}.jpg; the same as in stefan-hf/rvlcdip-id-codes |
rvlcdip_path |
path of the page in the original RVL-CDIP release, e.g. imagesb/b/w/o/bwo50e00/92704843.tif |
label |
category in the original RVL-CDIP labels, as a string (16 categories) |
label_fixed |
category in our corrected label set, or null if the document was removed from it (296,605 / 36,380 / 36,446 documents remain) |
The corrected labels come from a manual review of all RVL-CDIP labels, which is available with the
reviewers' judgments and notes in
stefan-hf/rvlcdip-label-fixes; the two
datasets share the id and rvlcdip_path fields.
The test and validation documents that have a duplicate or near-duplicate in the training split are
marked in stefan-hf/rvlcdip-duplicates,
which also shares these two fields.
Image configs:
| field | description |
|---|---|
image |
the page as a grayscale JPEG, 1,000 pixels tall, with the bytes of the file the classifiers were trained on (34 pages were re-encoded, see Known limitations) |
width, height |
size of the image in pixels |
OCR configs:
| field | description |
|---|---|
text |
the text of the page, one line of text per detected line |
tokens |
the words of the page in the order the engine returned them |
bboxes |
one box per word, [x0, y0, x1, y1], scaled to 0–1000 in both directions (the LayoutLM convention); multiply by width / 1000 and height / 1000 of the image for pixels |
confidence |
the engine's confidence for each word (0–100) |
line |
for each word, the index of the line it belongs to, counted from 0 in text |
n_words |
number of words |
handwritten |
for each word, whether Textract classified it as handwriting (Textract configs only) |
n_handwritten |
number of words classified as handwriting (Textract configs only) |
The raw responses of the OCR engines are not included. They are about 290 KB per page for Textract, and the fields above keep the words, boxes, confidences, line membership, and the handwriting flag from them.
Known limitations
- Residual personal data. The de-identification was automatic and is not complete. After the automatic pass we searched the OCR text of the
redactpages for social security numbers that it had left in place, reviewed the candidates by hand, and covered those that remained on 34 pages with white boxes. The same boxes are applied inredactandredact_noid, and the words under them are left out of the four OCR configs. These 34 images are therefore re-encoded and differ from the files our classifiers were trained on. The search cannot find numbers that the OCR engines did not read, and other kinds of personal data were not reviewed. Please report any page that needs further masking. - Names and business contact details printed on the pages, such as authors, addressees, and company telephone numbers, were not targeted and are present as in RVL-CDIP.
- Identification codes missed by the detector (about 3% of codes) are still present in
redact_noid, and a small share of the removed regions did not contain a code. - OCR of handwriting is poor for both engines, and Tesseract gives no handwriting flag. The engines returned no words for 3.5% to 5.7% of pages, depending on the config; these rows have empty lists.
- One test page of RVL-CDIP is missing.
imagese/e/j/e/eje42e00/2500126531_2500126536.tifis not in this dataset, so the test split has 39,999 documents and every config has 399,999 rows. This is a known problem of RVL-CDIP, in which the file of this page is corrupt and cannot be read (see the discussion on the RVL-CDIP dataset page). labelcontains the known label errors of RVL-CDIP;label_fixedis our corrected set.
License
The pages are derived from RVL-CDIP, which is a subset of IIT-CDIP, which came from the Legacy Tobacco Document Library, for which license information can be found here. The same terms apply to the images and the OCR output in this dataset.
Citation
If you use this dataset, please cite:
@inproceedings{larson-etal-2025-spurious,
author = {Larson, Stefan and Duwal, Sharad and Vilnrotter, Brian and Chakkithara, Gayatri and Padwal, Vedant and Leach, Kevin},
title = {Spurious Cues in {RVL-CDIP} and {Tobacco3482} Document Classification: The Case of {ID} Codes},
booktitle = {Proceedings of the 2025 ACM Symposium on Document Engineering},
series = {DocEng '25},
year = {2025},
month = aug,
pages = {1--4},
publisher = {ACM},
address = {New York, NY, USA},
doi = {10.1145/3704268.3748683},
url = {https://doi.org/10.1145/3704268.3748683}
}
@inproceedings{larson-etal-2026-revising,
author = {Larson, Stefan and Nagy, Attila and Desai, Sam and Desai, Cyrus and Lima, Nicole and Yuan, Yixin and Betala, Siddharth and Prajapati, Kaushal Kumar and Suleiman, Jamiu T. and Duwal, Sharad and Leach, Kevin},
title = {Revising {RVL-CDIP}: Quantifying Errors and Test-Train Overlap},
booktitle = {Proceedings of the 2026 ACM Symposium on Document Engineering},
series = {DocEng '26},
year = {2026},
articleno = {23},
numpages = {10},
isbn = {9798400727863},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3820755.3821486},
url = {https://doi.org/10.1145/3820755.3821486}
}
- Downloads last month
- 119