def map_concepts(args): api = Concepticon(args.data) api.map(Path(args.args[0]), otherlist=args.args[1] if len(args.args) > 1 else None, out=args.output, full_search=args.full_search, language=args.language)
def map_concepts(args): """ Attempt an automatic mapping for a new concept list. Notes ----- In order for the automatic mapping to work, the new list has to be well-formed, i.e. in line with the requirments of Concepticon (GLOSS/ENGLISH column, see also CONTRIBUTING.md). Examples -------- $ concepticon map_concepts path_to_conceptlist.tsv """ api = Concepticon(args.repos) api.map( Path(args.args[0]), otherlist=args.args[1] if len(args.args) > 1 else None, out=args.output, full_search=args.full_search, language=args.language, skip_multiple=args.skip_multimatch)