def register(parser): add_dataset_spec(parser) add_catalog_spec(parser, 'clts') parser.add_argument('--context', action='store_true', help='Create orthography profile with context', default=False) parser.add_argument('-f', '--force', action='store_true', help='Overwrite existing profile', default=False) parser.add_argument( '--semi-diacritics', default='hsʃ̢ɕʂʐʑʒw', help= 'Indicate characters which can occur both as "diacritics" (second part in a sound) ' 'or alone.') parser.add_argument( '--merge-vowels', action='store_true', help='Indicate whether consecutive vowels should be merged.', default=False) parser.add_argument('--dont-merge-geminates', action='store_true', default=False)
def register(parser): """ Register command options and arguments. :param parser: and `argparse.ArgumentParser`instance. """ # Standard catalogs can be "requested" as follows: add_catalog_spec(parser, 'clts') # Require a dataset as argument for the command: add_dataset_spec(parser) # Add a flag (i.e. a boolean option): parser.add_argument( '--strict', action='store_true', default=False, help='do stuff in a strict way', ) # Add another argument: parser.add_argument( 'input_file', type=PathType(type='file'), help='some input from a file', )
def register(parser): add_dataset_spec(parser) add_catalog_spec(parser, 'clts') parser.add_argument( "--ipa", help="Name of the profile column with the IPA representation.", default=IPA_COLUMN, ) parser.add_argument( '--augment', help="augment the profile with sca, and frequency counts and examples from the FormTable", default=False, action='store_true', ) parser.add_argument( '--trim', help="remove redundant orthography rules", default=False, action='store_true', ) parser.add_argument( '--sort', help="sort the profile", default=False, action='store_true', )
def register(parser): add_dataset_spec(parser) add_catalog_spec(parser, 'clts') parser.add_argument('--context', action='store_true', help='Create orthography profile with context', default=False) parser.add_argument('-f', '--force', action='store_true', help='Overwrite existing profile', default=False)
def register(parser): """ Register command options and arguments. :param parser: and `argparse.ArgumentParser`instance. """ # Standard catalogs can be "requested" as follows: add_catalog_spec(parser, "clts") add_catalog_spec(parser, "glottolog") # Require a dataset as argument for the command: add_dataset_spec(parser)
def register(parser): add_db(parser) add_dataset_spec(parser, multiple=True) parser.add_argument( '--all', help='Show all columns', action='store_true', default=False) for col in COLS: parser.add_argument( '--{0}'.format(col), help='Show column {0}'.format(col), action='store_true', default=False)
def register(parser): """ Register command options and arguments. :param parser: and `argparse.ArgumentParser`instance. """ # Standard catalogs can be "requested" as follows: add_catalog_spec(parser, "clts") # Require a dataset as argument for the command: add_dataset_spec(parser) # Add another argument: parser.add_argument("output_dir", type=str, help="Path to the output directory")
def register(parser): # Standard catalogs can be "requested" as follows: add_catalog_spec(parser, "clts") # Require a dataset as argument for the command: add_dataset_spec(parser) add_format(parser, default='pipe') parser.add_argument('--language-id', action='store', default=None, help='select one doculect') parser.add_argument('--display', action='store', default=None, help='select a display') parser.add_argument('--prosody-format', action='store', default='CcV', help='select a format for the prosodic strings')
def register(parser): """ Register command options and arguments. :param parser: and `argparse.ArgumentParser`instance. """ # Standard catalogs can be "requested" as follows: add_catalog_spec(parser, "clts") # Require a dataset as argument for the command: add_dataset_spec(parser) # Add another argument: parser.add_argument('--medials', action='store', default=None, help='define your medials') parser.add_argument('--doculect', action='store', default=None, help='select one doculect')
def register(parser): add_db(parser) add_dataset_spec(parser, multiple=True)
def register(parser): add_dataset_spec(parser) add_catalogs(parser, with_clts=True) parser.add_argument('--verbose', action='store_true', default=False) parser.add_argument('--dev', action='store_true', default=False)
def register(parser): add_dataset_spec(parser) add_catalog_spec(parser, 'clts')
def register(parser): add_dataset_spec(parser)