Skip to content

Possible wrong #92

Description

@wellington36

When running the following command

cat *.conllu | udapy -q util.Eval node='if (node.upos == "ADJ" and node.deprel == "amod" and node.parent.upos == "NOUN" and (node.feats["Gender"] != node.parent.feats["Gender"] or node.feats["Number"] != node.parent.feats["Number"])): node.parent.parent.draw(attributes="form,upos,feats,deprel")'

From the output we get

# sent_id = CP458-6#7
# text = de normas sociais einversa e complementarmente, práticas sociais que avaliam do grau de integração de cada um
 ╭─╼ de ADP _ case
─┾ normas NOUN Gender=Fem|Number=Plur obl
 ┡─╼ sociais ADJ Gender=Fem|Number=Plur amod
 │ ╭─╼ e CCONJ _ cc
 │ ┢─┮ inversa ADJ Gender=Fem|Number=Sing amod
 │ │ │ ╭─╼ e CCONJ _ cc
 │ │ ╰─┶ complementarmente ADV _ conj
 │ ┢─╼ , PUNCT _ punct
 ╰─┾ práticas NOUN Gender=Fem|Number=Plur conj
   ┡─╼ sociais ADJ Gender=Fem|Number=Plur amod
   │ ╭─╼ que PRON Gender=Fem|Number=Plur|PronType=Rel nsubj
   ╰─┾ avaliam VERB Mood=Ind|Number=Plur|Person=3|Tense=Pres|VerbForm=Fin acl:relcl
     │ ╭─╼ de ADP _ case
     │ ┢─╼ o DET Definite=Def|Gender=Masc|Number=Sing|PronType=Art det
     ╰─┾ grau NOUN Gender=Masc|Number=Sing obj
       │ ╭─╼ de ADP _ case
       ╰─┾ integração NOUN Gender=Fem|Number=Sing nmod
         │ ╭─╼ de ADP _ case
         ╰─┾ cada DET Gender=Masc|Number=Sing nmod
           ╰─╼ um NUM NumType=Card fixed

However, the "text" value is not part of the respective conllu

text = Uma verdade subjectiva incorporada através de normas sociais e, inversa e complementarmente, práticas sociais que avaliam do grau de integração de cada um.

Udapy replaced "e, inversa" for "eiversa".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions