Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

udpipe2teitok.pl tries to write to folder as if it were a file #6

Open
SteffRhes opened this issue Dec 16, 2024 · 0 comments
Open

udpipe2teitok.pl tries to write to folder as if it were a file #6

SteffRhes opened this issue Dec 16, 2024 · 0 comments

Comments

@SteffRhes
Copy link

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:

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

cd code/veld_code__teitok-tools/
ls -l

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 ):

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
@SteffRhes 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant