This project implements a transition-based dependency parser that parses English sentences into CoNLL-style dependency graphs using a trained TransitionParser. It supports both file input and stdin input, and leverages spaCy to initialize sentences for parsing.
-
Python 3.12 (or compatible)
-
pip packages:
numpyscipyscikit-learn >= 1.2joblibspacynltk
-
SpaCy model:
en_core_web_sm(automatically downloaded if missing)
python parse_sentences.py <model_file> <input_file> > output.conll
python parse_sentences.py mymodel.joblib my_text.txt > parsed.conll