A chain CRF for OCR.
For the answers to Question 1 (exhaustive inference), run:
$ python q1.py
For the answers to Question 2 (sum-product message passing), run:
$ python q2.py
For the answers to Question 3 (log likelihood), run:
$ python q3.py
For the answers to Question 4 (optimization warm-up), run:
$ python q4.py
To run Question 5 (HW2B Q1, Training), run:
$ python q5.py
All the good stuff is located in chain_crf.py
.