Giter Club home page Giter Club logo

ud_unsup_parser's People

Contributors

bplank avatar hectormartinez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ud_unsup_parser's Issues

check attribute names in lib/conllu.py

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     _       _

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.