diff --git a/util/text.py b/util/text.py index d3be7eb8..910796f7 100644 --- a/util/text.py +++ b/util/text.py @@ -33,9 +33,9 @@ class Alphabet(object): return self._str_to_label[string] except KeyError as e: 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 ' \ - '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__) def has_char(self, char):