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
the script fails to create output files but instead creates folders with the target names of the output files. E.g. input file is DEU_001.txt, then the console output is:
perl Scripts/udpipe2teitok.pl --orgfolder=/veld/input/ --lang=de --model=german-hdt-ud-2.6-200830 --mixed
Using model: german-hdt-ud-2.6-200830
Treating /veld/input/DEU_001.txt
- Running UDPIPE from http://lindat.mff.cuni.cz/services/udpipe/api/process/german-hdt-ud-2.6-200830
- Writing tmp to udpipeDEU_001.conllu
- Writing to udpipeDEU_001.xml
but no files udpipeDEU_001.conllu or udpipeDEU_001.xml are created. Instead there are folders with such names:
drwxr-xr-x. 1 steff steff 0 Dec 16 15:50 udpipeDEU_001.conllu
drwxr-xr-x. 1 steff steff 0 Dec 16 15:50 udpipeDEU_001.xml
I guess a / is missing? I.e. it should be udpipe/DEU_001.conllu?
how to reproduce
I've created a branch in my veld repos udpipe2teitok_bug_reproduction
git clone --recurse-submodules --branch udpipe2teitok_bug_reproduction https://github.com/veldhub/veld_chain__demo_teitok-tools
cd veld_chain__demo_teitok-tools
docker compose -f veld_udpipe2teitok.yaml up
After this, the output folders instead of files are created in the code submodule
drwxr-xr-x. 1 steff steff 0 Dec 16 15:56 udpipeDEU_001.conllu
drwxr-xr-x. 1 steff steff 0 Dec 16 15:56 udpipeDEU_001.xml
drwxr-xr-x. 1 steff steff 0 Dec 16 15:56 udpipeDEU_002.conllu
drwxr-xr-x. 1 steff steff 0 Dec 16 15:56 udpipeDEU_002.xml
The text was updated successfully, but these errors were encountered:
SteffRhes
changed the title
udpipe2teitok.pl tries to write to folder as if it were a file, instead of "into"
udpipe2teitok.pl tries to write to folder as if it were a file
Dec 16, 2024
description
the script fails to create output files but instead creates folders with the target names of the output files. E.g. input file is
DEU_001.txt
, then the console output is:but no files
udpipeDEU_001.conllu
orudpipeDEU_001.xml
are created. Instead there are folders with such names:I guess a
/
is missing? I.e. it should beudpipe/DEU_001.conllu
?how to reproduce
I've created a branch in my veld repos
udpipe2teitok_bug_reproduction
After this, the output folders instead of files are created in the code submodule
which would show these four folders (of two input files https://github.com/veldhub/veld_chain__demo_teitok-tools/tree/udpipe2teitok_bug_reproduction/data/udpipe2teitok/in ):
The text was updated successfully, but these errors were encountered: