Skip to content

default workflow(s): utilise --lang and --script info #67

Description

@bertsky

For example, with ocrd-tesserocr-recognize we could do something like:

shopt -s nocasematch
MODEL=eng
case "$LANGUAGE" in
  de|deu|ger) MODEL=deu
    case "$SCRIPT" in
      Fraktur) MODEL=frak2021;;
      ...
    esac;;
  fr|fre|fra) MODEL=fra;;
  hsb) MODEL=hsb
    case "$SCRIPT" in
      Fraktur) MODEL=hsbfraktur;;
      ...
    esac;;
  ...
esac

The question is: do we only apply this when no --workflow is supplied, or should we assume that all workflow files themselves may contain placeholders, e.g. $TESSMODEL, which we must replace on the fly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions