Skip to content

be tolerant with segnum language #2

@Glottotopia

Description

@Glottotopia

In line 420 of flex2csv.py you have

...
   (f"segnum_{conf['gloss_lg']}_phrase", "Sentence_Number"),
...

I do not know how often there is a different "segnum" per language in flex files. In my case, the segnum language was set to French, and the value was "3.1", so not particularly localized. The program failed hard and produced no output.

I can of course prepare some yaml file to take care of this, but maybe one could in the case of only one segnum being present for a given sentence simply default to that segnum instead of requiring the language to be specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions