MCPcopy Create free account
hub / github.com/OFA-Sys/OFA / train_path

Function train_path

fairseq/fairseq_cli/preprocess.py:48–49  ·  view source on GitHub ↗
(lang)

Source from the content-addressed store, hash-verified

46 task = tasks.get_task(args.task)
47
48 def train_path(lang):
49 return "{}{}".format(args.trainpref, ("." + lang) if lang else "")
50
51 def file_name(prefix, lang):
52 fname = prefix

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected