Italian Projective Dependency Parser
- Related: Parsing English in 500 Lines of Python, NLP, TLN
- Repo: https://github.com/dnbias/dependency-parser-it
- ISDT: https://github.com/UniversalDependencies/UD_Italian-ISDT
- used commit
5bb0bf3
- used commit
Run with:
python parser.py model_dir wsj_train.dep wsj_train.pos wsj_test.dep
Obtain wsj_train.dep
1:
for f in $1/*.mrg; do
echo $f
grep -v CODE $f > "$f.2"
out="$f.dep"
java -mx800m -cp "$scriptdir/*:" edu.stanford.nlp.trees.EnglishGrammaticalStructure \
-treeFile "$f.2" -basic -makeCopulaHead -conllx > $out
done
Convert to conll-x
format2:
perl conllu_to_conllx.pl < file.conllu > file.conll