summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea25438)
raw | patch | inline | side by side (parent: ea25438)
author | pegahgh <pegahgh@gmail.com> | |
Sat, 14 Jan 2017 05:56:06 +0000 (00:56 -0500) | ||
committer | Daniel Povey <dpovey@gmail.com> | |
Sat, 14 Jan 2017 05:56:06 +0000 (21:56 -0800) |
egs/wsj/s5/steps/libs/nnet3/xconfig/utils.py | patch | blob | history |
diff --git a/egs/wsj/s5/steps/libs/nnet3/xconfig/utils.py b/egs/wsj/s5/steps/libs/nnet3/xconfig/utils.py
index d88e0176ab5b3dcd2ba1b9208fcdd7773ae9bff6..3d9585687173a7e16b604550744ad6885815158d 100644 (file)
# treats splitting on space as a special case that may give zero fields.
config_line = orig_config_line.split('#')[0]
# Note: this set of allowed characters may have to be expanded in future.
- x = re.search('[^a-zA-Z0-9\.\-\(\)_=,/\s"]', config_line)
+ x = re.search('[^a-zA-Z0-9\.\-\(\)@_=,/\s"]', config_line)
if x is not None:
bad_char = x.group(0)
if bad_char == "'":