{ "cells": [ { "cell_type": "markdown", "id": "c2c2eb33", "metadata": {}, "source": [ "# PyStruct - Structured Learning in Python #\n", "\n", "PyStruct is structured learning and prediction library. It currently implements max-margin methods and supports different types of structures like chains or 2D grids.\n", "\n", "## Installation ##\n", "\n", "To install pystruct, you need cvxopt, cython and scikit-learn (which requires numpy and scipy).\n", "The easiest way to install pystruct is using pip:\n", "\n", "`pip install pystruct`" ] }, { "cell_type": "markdown", "id": "17e88a49", "metadata": {}, "source": [ "# Example: OCR Letter sequence recognition #\n", "\n", "This example illustrates the use of a chain CRF for optical character recognition. The example is taken from Taskar et al. *Max-margin markov random fields*.\n", "\n", "