Skip to content

Instantly share code, notes, and snippets.

View yjfiejd's full-sized avatar
💭
I may be slow to respond.

哈哈嘿嘿 yjfiejd

💭
I may be slow to respond.
View GitHub Profile
@yjfiejd
yjfiejd / gist:e7c4c93d354fea659de68fd78b21b0ca
Created December 23, 2019 00:01 — 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;