diff options
Diffstat (limited to 'examples/letter_analogies/README.md')
-rw-r--r-- | examples/letter_analogies/README.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/letter_analogies/README.md b/examples/letter_analogies/README.md new file mode 100644 index 0000000..71f275b --- /dev/null +++ b/examples/letter_analogies/README.md @@ -0,0 +1,17 @@ +# Letter Analogy Example +This directory contains code for solving simple letter analogies with Sifter. +You can run the example from the root of the Sifter repository like so: +```bash +bazel run examples/letter_analogies:letter_analogy +``` +It will print progress in solving the analogy, then print the solution `efg`. + +#### Files +* `letter_analogy.py` contains code defining the letter-analogy problem as well + as update rules which identify, e.g., nodes that are the head of a letter + group. +* `letter_tactics.py` contains semi-general-purpose tactics for solving such + letter analogies. It currently relies on a number of hand-picked heuristics + to find the analogy quickly. +* `test_letter_analogy.py` is a Pytest test which ensures that + `letter_analogy.py` returns the correct result. |