#!/usr/bin/env python3

import sys
from nltk.tree import Tree

def sort_nps():
    with open(sys.argv[1]) as np_doc:
        for line in np_doc:
            t = Tree.fromstring(line)
            width = len(t)
            if width <= 3:
                print(line, end = "")

sort_nps()
Add script for getting rid of too wide NPs
Add script for getting rid of too wide NPs
