8000 GitHub - yuekai/autograder
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

yuekai/autograder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yuekai's autograder


Getting started

🛠️ Environment setup

  • 💡 To use the o4-mini version, make sure you have the latest openai package installed.
  • 📦 Install only what you need:
    • For OpenAI API: openai
    • For open-source models: vllm
pip install openai 

📄 Convert PDF to JSON

  1. Clone the s2orc-doc2json repository to convert your PDF file into a structured JSON format.
    (For detailed configuration, please refer to the official repository.)
git clone https://github.com/yuekai/s2orc-doc2json.git
  1. Start the PDF processing service.
cd ./s2orc-doc2json/grobid-0.7.3
./gradlew run
  1. Convert your PDF into JSON format. To convert a single PDF file to JSON, pass the path of the file as the -i argument to process_pdf.py
python ./s2orc-doc2json/doc2json/grobid2json/process_pdf.py

To convert all the PDF files in a directory to JSON, pass the directory as as the -i argument to process_pdf.py

python ./s2orc-doc2json/doc2json/grobid2json/process_pdf.py -i ${PDF_DIR}

🚀 Running the autograder

Modify SUBMISSIONS_DIR variables in autograder.sh to point to the directory containing the PDF files to grade. Run the autograder.sh script to grade the submissions.

export OPENAI_API_KEY="<OPENAI_API_KEY>"
./autograder.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0