Remove check_values and default alphabet

This commit is contained in:
Josh Meyer 2021-07-20 09:34:44 -04:00
parent 848a612efe
commit 920e92d68a

View File

@ -472,7 +472,7 @@ class _SttConfig(Coqpit):
),
)
alphabet_config_path: str = field(
default="data/alphabet.txt",
default="",
metadata=dict(
help="path to the configuration file specifying the alphabet used by the network. See the comment in data/alphabet.txt for a description of the format."
),
@ -540,11 +540,6 @@ class _SttConfig(Coqpit):
),
)
def check_values(self):
c = asdict(self)
check_argument("alphabet_config_path", c, is_path=True)
check_argument("one_shot_infer", c, is_path=True)
def initialize_config_globals(c):
"""