def setup_args(parser=None, hidden=True):
    if (parser is None):
        parser = ParlaiParser(True, True, 'Build a dictionary.')
    dict_loop = parser.add_argument_group('Dictionary Loop Arguments')
    dict_loop.add_argument('--dict-maxexs', default=(- 1), type=int, help='max number of examples to build dict on', hidden=hidden)
    dict_loop.add_argument('--dict-include-valid', default=False, type='bool', help='Include validation set in dictionary building for task.', hidden=hidden)
    dict_loop.add_argument('--dict-include-test', default=False, type='bool', help='Include test set in dictionary building for task.', hidden=hidden)
    dict_loop.add_argument('-ltim', '--log-every-n-secs', type=float, default=10, hidden=hidden)
    DictionaryAgent.add_cmdline_args(parser)
    return parser
def setup_args(parser=None, hidden=True):
    if (parser is None):
        parser = ParlaiParser(True, True, 'Build a dictionary.')
    dict_loop = parser.add_argument_group('Dictionary Loop Arguments')
    dict_loop.add_argument('--dict-maxexs', default=(- 1), type=int, help='max number of examples to build dict on', hidden=hidden)
    dict_loop.add_argument('--dict-include-valid', default=False, type='bool', help='Include validation set in dictionary building for task.', hidden=hidden)
    dict_loop.add_argument('--dict-include-test', default=False, type='bool', help='Include test set in dictionary building for task.', hidden=hidden)
    dict_loop.add_argument('-ltim', '--log-every-n-secs', type=float, default=10, hidden=hidden)
    DictionaryAgent.add_cmdline_args(parser)
    return parser