This repository is some scripts to process physics papers into text files and parse them with LLMs.
The different folders are:
pdf_processor/ This uses some off the shelf models and heuristics to parse pdfs in a directory.
The workflow is as follows:
extraction/ This loads a LLama3 LLM into memory and reads the text files in the directory printed. Then it outputs the results of the question, which can be checked against a reference.
new_extraction/ This does the same thing as the pdf_processor but relies entirely on the Nougat OCR transformer.
finetune/ Contains training scripts, testing scripts, and dataset schema for finetuning LLMs on our domain.
latex_detection/ Some preliminary work on improving OCR for latex.
acquire_pdfs/ Some example scripts for working with publisher APIs to collect papers. They are not particularly useful.
This repository is some scripts to process physics papers into text files and parse them with LLMs.
The different folders are:
pdf_processor/ This uses some off the shelf models and heuristics to parse pdfs in a directory.
The workflow is as follows:
extraction/ This loads a LLama3 LLM into memory and reads the text files in the directory printed. Then it outputs the results of the question, which can be checked against a reference.
new_extraction/ This does the same thing as the pdf_processor but relies entirely on the Nougat OCR transformer.
finetune/ Contains training scripts, testing scripts, and dataset schema for finetuning LLMs on our domain.
latex_detection/ Some preliminary work on improving OCR for latex.
acquire_pdfs/ Some example scripts for working with publisher APIs to collect papers. They are not particularly useful.