Commit bf846e98 by xuchen

modify the specific path during mt processing

parent 13b6f080
......@@ -34,7 +34,7 @@ class MTData(Dataset):
"""
def __init__(self, root: str, src_lang, tgt_lang: str, split: str) -> None:
_root = Path(root) / f"{src_lang}-{tgt_lang}" / "data" / split
_root = Path(root) / f"{src_lang}-{tgt_lang}" / "data"
txt_root = _root
assert _root.is_dir() and txt_root.is_dir(), (_root, txt_root)
# Load source and target text
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论