Skip to content

ocr.nf cannot find FoLiA-hocr output files #30

Closed

Description

@peterdekker

When running ocr.nf, the expected file format outputted by FoLiA-hocr is the basename of the original file + *.folia.xml: https://github.com/LanguageMachines/PICCL/blob/master/ocr.nf#L229

However, since the fix for issue LanguageMachines/foliautils#21, "id-" is prepended to filenames starting with a number by FoLiA-hocr: LanguageMachines/foliautils@6af7fa4
Now ocr.nf cannot find the files outputted by FoLiA-hocr anymore.

Not all files get the "id-" prefix from FoLiA-hocr, only the ones starting with a number. So a solution could be to make ocr.nf look for a broader output pattern. Or maybe FoLiA-hocr should add the "id-" prefix to all files, and ocr.nf could always look for this prefix.

@kosloot @proycon

Activity

  1. self-assigned this
    on May 28, 2018
  2. proycon commented on May 28, 2018

    @proycon
    Member

    Ouch, this is indeed a regression introduced by that fix.

    @kosloot We indeed need a very consistent predictable naming from FoLiA-hocr otherwise PICCL doesn't know what to look for.

  3. kosloot commented on May 28, 2018

    @kosloot

    I am not sure that it is up to FoLiA-hocr to fix all the PICCl/nextflow issues :p, but OK
    more on this here: LanguageMachines/foliautils#21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions