{
  "id": 684249,
  "title": "AKT PDFs Processing using PaddleOCR-VL",
  "url": "/competitions/deep-past-initiative-machine-translation/discussion/684249",
  "author_name": "",
  "post_date": "2026-03-24T07:22:52.748691100Z",
  "votes": 3,
  "comment_count": 1,
  "views": 0,
  "content": "<p>I started working on this competition in the last 15 days. I found AKT PDFs data could be useful, so I used some code of <a href=\"https://www.kaggle.com/code/angantyr/text-extraction-from-pdf-docs-using-glm-oc\" target=\"_blank\">this notebook's</a> to extract tables from each page.</p>\n<p>Extracting Table\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2Fa55560042d5bd16af85ce327fd482d5a%2FScreenshot%202026-03-24%20125428.png?generation=1774337100974375&amp;alt=media\" alt=\"Extracting Table\"></p>\n<p>I then created PDFs with just tables using <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-pdf-layout-analysis-extract-tables\" target=\"_blank\">this code</a>. </p>\n<p>Processed PDF View\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2F32ad3aec20991b64a2d0858dc94b5244%2FScreenshot%202026-03-24%20125219.png?generation=1774336958461535&amp;alt=media\" alt=\"Processed PDF View\"></p>\n<p>I then OCRed these processed tabular PDFs using PaddleOCR, it was the best OCR method as per <a href=\"https://arxiv.org/pdf/2601.21957\" target=\"_blank\">this paper</a></p>\n<p>Uploaded it as Raw Dataset <a href=\"https://www.kaggle.com/datasets/paritoshtripathi5/raw-akt-akkadian-dataset/data\" target=\"_blank\">here</a></p>\n<p>I tried directly OCRing the pdfs but PaddleOCR had quite difficulty in recognising the tables directly.</p>\n<p>I did a lot of pre-processing to make it good enough for training but did some mistakes as well due to lack of time.</p>\n<p>Sequence: <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-preprocessing\" target=\"_blank\">Quick Clean</a> -&gt; <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-nan-fixes\" target=\"_blank\">Fix NaNs</a> -&gt; <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-symbols-fix/\" target=\"_blank\">Fix Symbols</a> -&gt; <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-more-symbols-fix/\" target=\"_blank\">Final Fixes</a></p>\n<p>Complete solution write-up under way!</p>",
  "messages": [
    {
      "id": "3427518",
      "postDate": "03/24/2026 07:22:52",
      "content": "<p>I started working on this competition in the last 15 days. I found AKT PDFs data could be useful, so I used some code of <a href=\"https://www.kaggle.com/code/angantyr/text-extraction-from-pdf-docs-using-glm-oc\" target=\"_blank\">this notebook's</a> to extract tables from each page.</p>\n<p>Extracting Table\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2Fa55560042d5bd16af85ce327fd482d5a%2FScreenshot%202026-03-24%20125428.png?generation=1774337100974375&amp;alt=media\" alt=\"Extracting Table\"></p>\n<p>I then created PDFs with just tables using <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-pdf-layout-analysis-extract-tables\" target=\"_blank\">this code</a>. </p>\n<p>Processed PDF View\n<img src=\"https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2F32ad3aec20991b64a2d0858dc94b5244%2FScreenshot%202026-03-24%20125219.png?generation=1774336958461535&amp;alt=media\" alt=\"Processed PDF View\"></p>\n<p>I then OCRed these processed tabular PDFs using PaddleOCR, it was the best OCR method as per <a href=\"https://arxiv.org/pdf/2601.21957\" target=\"_blank\">this paper</a></p>\n<p>Uploaded it as Raw Dataset <a href=\"https://www.kaggle.com/datasets/paritoshtripathi5/raw-akt-akkadian-dataset/data\" target=\"_blank\">here</a></p>\n<p>I tried directly OCRing the pdfs but PaddleOCR had quite difficulty in recognising the tables directly.</p>\n<p>I did a lot of pre-processing to make it good enough for training but did some mistakes as well due to lack of time.</p>\n<p>Sequence: <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-preprocessing\" target=\"_blank\">Quick Clean</a> -&gt; <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-nan-fixes\" target=\"_blank\">Fix NaNs</a> -&gt; <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-symbols-fix/\" target=\"_blank\">Fix Symbols</a> -&gt; <a href=\"https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-more-symbols-fix/\" target=\"_blank\">Final Fixes</a></p>\n<p>Complete solution write-up under way!</p>",
      "rawMarkdown": "I started working on this competition in the last 15 days. I found AKT PDFs data could be useful, so I used some code of [this notebook's](https://www.kaggle.com/code/angantyr/text-extraction-from-pdf-docs-using-glm-oc) to extract tables from each page.\n\nExtracting Table\n![Extracting Table](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2Fa55560042d5bd16af85ce327fd482d5a%2FScreenshot%202026-03-24%20125428.png?generation=1774337100974375&alt=media)\n\nI then created PDFs with just tables using [this code](https://www.kaggle.com/code/paritoshtripathi5/akkadian-pdf-layout-analysis-extract-tables). \n\nProcessed PDF View\n![Processed PDF View](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2F32ad3aec20991b64a2d0858dc94b5244%2FScreenshot%202026-03-24%20125219.png?generation=1774336958461535&alt=media)\n\nI then OCRed these processed tabular PDFs using PaddleOCR, it was the best OCR method as per [this paper](https://arxiv.org/pdf/2601.21957)\n\nUploaded it as Raw Dataset [here](https://www.kaggle.com/datasets/paritoshtripathi5/raw-akt-akkadian-dataset/data)\n\nI tried directly OCRing the pdfs but PaddleOCR had quite difficulty in recognising the tables directly.\n\nI did a lot of pre-processing to make it good enough for training but did some mistakes as well due to lack of time.\n\nSequence: [Quick Clean](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-preprocessing) -> [Fix NaNs](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-nan-fixes) -> [Fix Symbols](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-symbols-fix/) -> [Final Fixes](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-more-symbols-fix/)\n\nComplete solution write-up under way!",
      "votes": null
    },
    {
      "id": "3427524",
      "postDate": "03/24/2026 07:37:00",
      "content": "<p>I'm glad you found the tool useful!</p>\n<p>The layout reconstruction was one of my biggest issues. Now I wonder how far it could go given the modified OCR LLM model.</p>\n<p>Thank you for sharing your insights and notebook solutions.</p>",
      "rawMarkdown": "I'm glad you found the tool useful!\n\nThe layout reconstruction was one of my biggest issues. Now I wonder how far it could go given the modified OCR LLM model.\n\nThank you for sharing your insights and notebook solutions.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 3427524,
      "author_name": "angantyr",
      "author_url": "",
      "post_date": "03/24/2026 07:37:00",
      "content": "<p>I'm glad you found the tool useful!</p>\n<p>The layout reconstruction was one of my biggest issues. Now I wonder how far it could go given the modified OCR LLM model.</p>\n<p>Thank you for sharing your insights and notebook solutions.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "3427518": "I started working on this competition in the last 15 days. I found AKT PDFs data could be useful, so I used some code of [this notebook's](https://www.kaggle.com/code/angantyr/text-extraction-from-pdf-docs-using-glm-oc) to extract tables from each page.\n\nExtracting Table\n![Extracting Table](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2Fa55560042d5bd16af85ce327fd482d5a%2FScreenshot%202026-03-24%20125428.png?generation=1774337100974375&alt=media)\n\nI then created PDFs with just tables using [this code](https://www.kaggle.com/code/paritoshtripathi5/akkadian-pdf-layout-analysis-extract-tables). \n\nProcessed PDF View\n![Processed PDF View](https://www.googleapis.com/download/storage/v1/b/kaggle-forum-message-attachments/o/inbox%2F12759647%2F32ad3aec20991b64a2d0858dc94b5244%2FScreenshot%202026-03-24%20125219.png?generation=1774336958461535&alt=media)\n\nI then OCRed these processed tabular PDFs using PaddleOCR, it was the best OCR method as per [this paper](https://arxiv.org/pdf/2601.21957)\n\nUploaded it as Raw Dataset [here](https://www.kaggle.com/datasets/paritoshtripathi5/raw-akt-akkadian-dataset/data)\n\nI tried directly OCRing the pdfs but PaddleOCR had quite difficulty in recognising the tables directly.\n\nI did a lot of pre-processing to make it good enough for training but did some mistakes as well due to lack of time.\n\nSequence: [Quick Clean](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-preprocessing) -> [Fix NaNs](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-nan-fixes) -> [Fix Symbols](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-symbols-fix/) -> [Final Fixes](https://www.kaggle.com/code/paritoshtripathi5/akkadian-akt-dataset-more-symbols-fix/)\n\nComplete solution write-up under way!",
    "3427524": "I'm glad you found the tool useful!\n\nThe layout reconstruction was one of my biggest issues. Now I wonder how far it could go given the modified OCR LLM model.\n\nThank you for sharing your insights and notebook solutions."
  },
  "source": "meta"
}