code/train-classifier.py [43:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
parser.add_argument("--attributes", type=attr_flag, default="gender,lifestage,age_bracket",
                    help="Attributes")
parser.add_argument("--mono_dataset", type=str, default="",
                    help="Monolingual dataset ('train_path,valid_path,test_path')")
parser.add_argument("--n_mono", type=int, default=0,
                    help="Number of monolingual sentences (-1 for everything)")
parser.add_argument("--max_len", type=int, default=175,
                    help="Maximum length of sentences (after BPE)")
parser.add_argument("--max_vocab", type=int, default=-1,
                    help="Maximum vocabulary size (-1 to disable)")
# training parameters
parser.add_argument("--balanced_train", type=bool_flag, default=False,
                    help="Sample sentences in a balanced way during training.")
parser.add_argument("--batch_size", type=int, default=32,
                    help="Batch size")
parser.add_argument("--group_by_size", type=bool_flag, default=True,
                    help="Sort sentences by size during the training")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



code/train-lm.py [45:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
parser.add_argument("--attributes", type=attr_flag, default="gender,lifestage,age_bracket",
                    help="Attributes")
parser.add_argument("--mono_dataset", type=str, default="",
                    help="Monolingual dataset ('train_path,valid_path,test_path')")
parser.add_argument("--n_mono", type=int, default=0,
                    help="Number of monolingual sentences (-1 for everything)")
parser.add_argument("--max_len", type=int, default=175,
                    help="Maximum length of sentences (after BPE)")
parser.add_argument("--max_vocab", type=int, default=-1,
                    help="Maximum vocabulary size (-1 to disable)")
# training parameters
parser.add_argument("--balanced_train", type=bool_flag, default=False,
                    help="Sample sentences in a balanced way during training.")
parser.add_argument("--batch_size", type=int, default=32,
                    help="Batch size")
parser.add_argument("--group_by_size", type=bool_flag, default=True,
                    help="Sort sentences by size during the training")
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



