You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing the conversion from conllu to folia and next to annotatedtext as follows on the following conllu file called traindata.conllu
# newdoc id = doc1
# newpar
# sent_id = 1
# text = Ik ben de weg kwijt, kunt u me zeggen waar de Lange Wapper ligt?
1 Ik ik PRON Pron|per|1|ev|nom Case=Nom|Number=Sing|Person=1|PronType=Prs 5 nsubj _ _
2 ben ben AUX V|hulpofkopp|ott|1|ev Aspect=Imp|Mood=Ind|Number=Sing|Person=1|Tense=Pres|VerbForm=Fin 5 cop _ _
3 de de DET Art|bep|zijdofmv|neut Definite=Def|PronType=Art 4 det _ _
4 weg weg NOUN N|soort|ev|neut Number=Sing 5 obj _ _
5 kwijt kwijt ADJ Adj|attr|stell|onverv Degree=Pos 0 root _ SpaceAfter=No
6 , , PUNCT Punc|komma PunctType=Comm 5 punct _ _
7 kunt kan VERB V|hulp|ott|2|ev Aspect=Imp|Mood=Ind|Number=Sing|Person=2|Tense=Pres|VerbForm=Fin|VerbType=Mod 5 parataxis _ _
8 u u PRON Pron|per|2|ev|nom Case=Nom|Number=Sing|Person=2|PronType=Prs 7 nsubj _ _
9 me me PRON Pron|per|1|ev|datofacc Case=Acc,Dat|Number=Sing|Person=1|PronType=Prs 10 obj _ _
10 zeggen zeg VERB V|trans|inf Subcat=Tran|VerbForm=Inf 7 xcomp _ _
11 waar waar ADV Adv|gew|vrag PronType=Int 15 mark _ _
12 de de DET Art|bep|zijdofmv|neut Definite=Def|PronType=Art 13 det _ _
13 Lange Lange PROPN N_N|eigen|ev|neut_eigen|ev|neut _ 15 nsubj _ _
14 Wapper Wapper PROPN PROPN _ 13 flat _ _
15 ligt lig VERB V|intrans|ott|3|ev Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Subcat=Intr|Tense=Pres|VerbForm=Fin 10 acl _ SpaceAfter=No
16 ? ? PUNCT Punc|vraag PunctType=Qest 5 punct _ _
# sent_id = 2
# text = Jazeker meneer
1 Jazeker zeker ADJ Adj|attr|stell|onverv Degree=Pos 2 amod _ _
2 meneer meneer NOUN N|soort|ev|neut Number=Sing 0 root _ SpacesAfter=\n
# newdoc id = doc2
# newpar
# sent_id = 1
# text = Het gaat vooruit, het gaat verbazend goed vooruit
1 Het het PRON Pron|onbep|neut|zelfst PronType=Ind 2 nsubj _ _
2 gaat ga VERB V|intrans|ott|3|ev Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Subcat=Intr|Tense=Pres|VerbForm=Fin 0 root _ _
3 vooruit vooruit ADV Adv|gew|geenfunc|stell|onverv Degree=Pos 2 advmod _ SpaceAfter=No
4 , , PUNCT Punc|komma PunctType=Comm 2 punct _ _
5 het het PRON Pron|onbep|neut|zelfst PronType=Ind 6 nsubj _ _
6 gaat ga VERB V|intrans|ott|3|ev Aspect=Imp|Mood=Ind|Number=Sing|Person=3|Subcat=Intr|Tense=Pres|VerbForm=Fin 2 parataxis _ _
7 verbazend verbazend VERB V|intrans|tegdw|onverv Subcat=Intr|Tense=Pres|VerbForm=Part 6 advcl _ _
8 goed goed ADJ Adj|adv|stell|onverv Degree=Pos|Variant=Short 6 obl _ _
9 vooruit vooruit ADV Adv|gew|geenfunc|stell|onverv Degree=Pos 6 compound:prt _ SpacesAfter=\n
Jan@bnosac MINGW64 ~/Dropbox/Work/RForgeBNOSAC/BNOSAC/udpipe/inst/dummydata (master)
$ conllu2folia traindata.conllu
Wrote doc1.folia.xml
Wrote doc2.folia.xml
Jan@bnosac MINGW64 ~/Dropbox/Work/RForgeBNOSAC/BNOSAC/udpipe/inst/dummydata (master)
$ folia2annotatedtxt -c text,pos,lemma doc1.folia.xml > test.tmp
Processing doc1.folia.xml
Traceback (most recent call last):
File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python39\Scripts\folia2annotatedtxt.exe\__main__.py", line 7, in <module>
File "c:\python39\lib\site-packages\foliatools\folia2annotatedtxt.py", line 117, in main
process(x, outputfile)
File "c:\python39\lib\site-packages\foliatools\folia2annotatedtxt.py", line 174, in process
if w.paragraph() != prevpar and i > 0:
File "c:\python39\lib\site-packages\folia\main.py", line 3844, in paragraph
return self.ancestor(Paragraph)
File "c:\python39\lib\site-packages\folia\main.py", line 2528, in ancestor
raise NoSuchAnnotation
folia.main.NoSuchAnnotation
File causing the failure here (doc1.folia.xml) looks like this
I'm testing the conversion from conllu to folia and next to annotatedtext as follows on the following conllu file called traindata.conllu
File causing the failure here (doc1.folia.xml) looks like this
The text was updated successfully, but these errors were encountered: