Skip to content

Instantly share code, notes, and snippets.

@bodhibudd
bodhibudd / gist:292fb106a684c0a13087d0f6447662f0
Last active October 28, 2022 09:25 — forked from syllog1sm/gist:10343947
A simple Python dependency parser
"""A simple implementation of a greedy transition-based parser. Released under BSD license."""
from os import path
import os
import sys
from collections import defaultdict
import random
import time
import pickle
SHIFT = 0; RIGHT = 1; LEFT = 2;