cameron-martin / crossword-solver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crossword-solver

Solves cryptic crosswords using ML.

Usage

Install poetry.

Install dependencies:

poetry install

Crosswords can be scraped from the guardian website with the following command:

poetry run scrape

This creates a file crosswords/guardian.ldjson. This can then be converted into examples, crosswords/examples.txt and crosswords/labels.txt:

poetry run prepare_all

Training can then be run as the following:

poetry run train

For training using a GPU in docker, the following script can be run:

./bin/train-in-docker.sh

To run a prediction repl:

poetry run predict

About


Languages

Language:Python 96.6%Language:Shell 2.5%Language:Dockerfile 1.0%