File size: 1,344 Bytes
92da9af
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# -*- coding: utf-8 -*-

MAPPING_TITLES = {"default": "Default",
                  "non_digits": "Ignoring digits",
                  "lowercase": "Ignoring case",
                  "remove_punctuation": "Ignoring punctuation",
                  "remove_diacritics": "Ignoring diacritics",
                  "all_transforms": "Combining all options"}

MAPPING_SCORES_INDEX = {"cer": "Char. Error Rate (CER in %)",
                        "wer": "Word Error Rate (WER in %)",
                        "levensthein_distance_char": "Levensthein Distance (Char.)",
                        "levensthein_distance_words": "Levensthein Distance (Words)",
                        "hamming_distance": "Hamming Distance",
                        "wacc": "Word Accuracy (Wacc in %)",
                        "mer": "Match Error Rate (MER in %)",
                        "cil": "Char. Information Lost (CIL in %)",
                        "cip": "Char. Information Preserved (CIP in %)",
                        "hits": "Hits",
                        "substitutions": "Substitutions",
                        "deletions": "Deletions",
                        "insertions": "Insertions",
                        "Length_reference": "Total char. in reference",
                        "Length_prediction": "Total char. in prediction"}