Skip to content

Instantly share code, notes, and snippets.

@fauxneticien
Created March 29, 2023 20:37
Show Gist options
  • Save fauxneticien/31607e46ebba3e68d57c83a18478351f to your computer and use it in GitHub Desktop.
Save fauxneticien/31607e46ebba3e68d57c83a18478351f to your computer and use it in GitHub Desktop.
Create mock arguments for future Python script
# Mock Args class, to be replaced with argparse or equivalent later
class Args:
def __init__(self, **attrs):
self.__dict__.update(attrs)
args = Args(**{
"input_basepath" : "/home/nay/git-repos/w2v2-10min-exps/data/MASS-1h",
"train_tsv" : "train1h.tsv",
"valid_tsv" : "dev.tsv",
"output_basepath" : "/home/nay/librispeech-1h-fairseq/manifest-MASS-1h"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment