hectormartinez / ud_unsup_parser Goto Github PK
View Code? Open in Web Editor NEWLicense: Creative Commons Zero v1.0 Universal
License: Creative Commons Zero v1.0 Universal
I was trying to use that as baseline for parsing unseen UD languages. I got the following trace, and either the error message is misleading or there is a naming issue.
I ran $PYTHON $UDP/udup.py --steps headrule --input $TEST --posrules $UDP/../data/posrules.tsv --output $OUTPUT
With $UDP
pointing to the src
directory and $PYTHON=python3
. Input is an Old Saxon file in CoNLL-U format (the usual 10 cols, sentence breaks, no comments, no metadata, ID, FORM, LEMMA, UPOS, XPOS, HEAD and DEP specified, everything else _
).
Traceback (most recent call last):
File "./ud_unsup_parser/src/udup.py", line 631, in <module>
main()
File "./ud_unsup_parser/src/udup.py", line 573, in main
orig_treebank = cio.read_conll_u(args.input)
File "/cygdrive/c/Users/chiarcos/Desktop/corpus/heliand/parsing/baseline/ud_unsup_parser/src/lib/conll.py", line 448, in read_conll_u
sent.node[token_dict['id']].update({k: v for (k, v) in token_dict.items()
AttributeError: 'DependencyTree' object has no attribute 'node'
Data snippet (original separators are \t
):
1 Manega manag ADJ Q^N^PL _ 0 root _ _
2 uuaron wesan AUX BEDI^3^PL _ 1 aux _ _
3 the the SCONJ C _ 7 mark _ _
4 sia he PRON PRO^PL^A^3 _ 7 nsubj _ _
5 iro his DET PRO$^SG^3^N _ 6 det _ _
6 mod mod NOUN N^N^SG _ 7 obj _ _
7 gespon spanan VERB GE+VBDI^SG^3 _ 1 acl _ _
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.