Skip to content

armenbod/cryptic_crosswords

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🇨ryptic_ 🇨rosswords with LL🅼s

Using LLMs to generatively produce answers to cryptic crossword clues.

For further information on the use case motivation and methodology, please visit the following:

Requirements:

If you are not using Colab, or prefer to create your own environment:

  1. You need to install the bleeding edge version of the transformers module to run the QA wrapper files (more information on installation options here):
! pip install git+https://github.com/huggingface/transformers
  1. Install the requirements.txt file

Otherwise, you can run the cells at the top of the notebook to install the dependencies on Colab.

This has been tested using Python >=3.10.

Scripts

The trainer and wrapper python files are originally derived from the HuggingFace transformers examples page. An addition was made to the runfile to save predictions in a .json format - please compare files with the original commit if interested.

Data

The clues dataset has been downloaded from this website: link. Please download and save into the ./data folder. I saved the filename as 'clues.csv'.

Parameters

Editable parameters are kept in the parameters.py file.

Keep Colab Running

Colab may timeout prior to model training completing. Using this 'hack' you can keep the notebook alive. Note that also that using the free version of Colab puts a daily time limit per user to access to GPUs, so running for too many epochs may risk you running out of free resources.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published