ispras / lingvodoc-react

Apache License 2.0
7 stars 11 forks source link

Paradigm sentence column source tiers #1071

Closed vmonakhov closed 7 months ago

vmonakhov commented 7 months ago

There are 5-tiers and 6-tiers eaf files. The task is to match sentence columns to required tiers for convertation to Lingvodoc dictionary.

Columns and corresponding tiers are on the picture below. This example is for 6-tiers elan annotations file (eaf). Corresponding example of tier's text is placed under each radio checkbox.

2023-11-20_23-46-08

For 5-tiers eaf the tier 'other text' is absent. Tiers 'synthetic word' and 'synthetic transcription' are obtained using simple concatenation of corresponding 'word' and 'transcription' tiers' values in scope of one 'text' value.

Default values for 5-tiers and 6-tiers eaf:


    if (Object.keys(props.preview).length < 6) {
      custom_eaf_tiers = {
        'Word of Paradigmatic forms': 'synthetic word',
        'Transcription of Paradigmatic forms': 'text'
      };
    }
    else {
      custom_eaf_tiers = {
        'Word of Paradigmatic forms': 'text',
        'Transcription of Paradigmatic forms': 'other text'
      };
    }
vmonakhov commented 7 months ago

'text' tier is in the both sets. When it is chosen in one of them, its double becomes disabled.

2023-11-21_13-16-14