usnistgov / SCTK

Other
208 stars 52 forks source link

SCLITE Double reference #47

Closed Roon311 closed 1 year ago

Roon311 commented 1 year ago

Iam getting this error whenever I do use a multiline input

Begin alignment of Ref File: 'ref/1.txt' and Hyp File: 'hyp/1.txt' Error: double reference text for id '' Error: double reference text for id '' Error: Not enough Reference files loaded Missing:

1.txt

jfiscus commented 1 year ago

In the future, please include the command that you tried. The file needs to include utterance IDs for each line and then you need to include a commend line option to specify the id type. Here's an example:

% cat 1.txt I want to go home. (spkr1-001) Can you help me find my keys? (spkr2-001) What's the weather like today? (spkr1-002)

% ~/Projects2/SCTK/SCTK-BR-master/bin/sclite -h 1.txt -r 1.txt -i spu_id -o sum pra stdout

                     SYSTEM SUMMARY PERCENTAGES by SPEAKER

       ,----------------------------------------------------------------.
       |                             1.txt                              |
       |----------------------------------------------------------------|
       | SPKR   | # Snt # Wrd | Corr    Sub    Del    Ins    Err  S.Err |
       |--------+-------------+-----------------------------------------|
       | spkr1  |    2     10 |100.0    0.0    0.0    0.0    0.0    0.0 |
       |--------+-------------+-----------------------------------------|
       | spkr2  |    1      7 |100.0    0.0    0.0    0.0    0.0    0.0 |
       |================================================================|
       | Sum/Avg|    3     17 |100.0    0.0    0.0    0.0    0.0    0.0 |
       |================================================================|
       |  Mean  |  1.5    8.5 |100.0    0.0    0.0    0.0    0.0    0.0 |
       |  S.D.  |  0.7    2.1 |  0.0    0.0    0.0    0.0    0.0    0.0 |
       | Median |  1.5    8.5 |100.0    0.0    0.0    0.0    0.0    0.0 |
       `----------------------------------------------------------------'

        DUMP OF SYSTEM ALIGNMENT STRUCTURE

System name:   1.txt

Speakers:
    0:  spkr1
    1:  spkr2

Speaker sentences   0:  spkr1   #utts: 2
id: (spkr1-001)
Scores: (#C #S #D #I) 5 0 0 0
REF:  i want to go home.
HYP:  i want to go home.
Eval:

id: (spkr1-002)
Scores: (#C #S #D #I) 5 0 0 0
REF:  what's the weather like today?
HYP:  what's the weather like today?
Eval:

Speaker sentences   1:  spkr2   #utts: 1
id: (spkr2-001)
Scores: (#C #S #D #I) 7 0 0 0
REF:  can you help me find my keys?
HYP:  can you help me find my keys?
Eval:
Roon311 commented 1 year ago

Thanks alot. This helped me resolve the issue.