@main.command()<EOL>@click.argument('<STR_LIT>', required=True, nargs=<NUM_LIT:2>, type=text)<EOL>@click.option('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', envvar='<STR_LIT>', type=text)<EOL>@click.option('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', type=text)<EOL>@click.option('<STR_LIT>', '<STR_LIT>', '<STR_LIT>', default=False)<EOL>@click.pass_context<EOL>def similarity(ctx, app_id, json_flag, query_pair, request_id):<EOL>
app_id = clean_app_id(app_id)<EOL>api = GoolabsAPI(app_id)<EOL>ret = api.similarity(<EOL>query_pair=query_pair,<EOL>request_id=request_id<EOL>)<EOL>if json_flag:<EOL><INDENT>click.echo(format_json(api.response.json()))<EOL>return<EOL><DEDENT>click.echo('<STR_LIT>'.format(ret['<STR_LIT>']))<EOL>
Scoring the similarity of two words.