Merge pull request #2812 from lissyx/real-alphabet-path
Show actual alphabet path in error message
This commit is contained in:
commit
b52a4a96c6
|
@ -33,9 +33,9 @@ class Alphabet(object):
|
||||||
return self._str_to_label[string]
|
return self._str_to_label[string]
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
raise KeyError(
|
raise KeyError(
|
||||||
'ERROR: Your transcripts contain characters (e.g. \'{}\') which do not occur in data/alphabet.txt! Use ' \
|
'ERROR: Your transcripts contain characters (e.g. \'{}\') which do not occur in \'{}\'! Use ' \
|
||||||
'util/check_characters.py to see what characters are in your [train,dev,test].csv transcripts, and ' \
|
'util/check_characters.py to see what characters are in your [train,dev,test].csv transcripts, and ' \
|
||||||
'then add all these to data/alphabet.txt.'.format(string)
|
'then add all these to \'{}\'.'.format(string, self._config_file, self._config_file)
|
||||||
).with_traceback(e.__traceback__)
|
).with_traceback(e.__traceback__)
|
||||||
|
|
||||||
def has_char(self, char):
|
def has_char(self, char):
|
||||||
|
|
Loading…
Reference in New Issue