@cli.command()<EOL>@click.argument('<STR_LIT>', type=click.Path(exists=True))<EOL>@click.argument('<STR_LIT>', type=click.Path())<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.Choice(list(_output_choices.keys())),<EOL>help='<STR_LIT>')<EOL>@click.option('<STR_LIT>', '<STR_LIT>', type=click.Choice(list(_input_choices.keys())),<EOL>default='<STR_LIT>', help='<STR_LIT>')<EOL>def convert(outputfile, inputfile, to_format, from_format):
emb = word_embedding.WordEmbedding.load(<EOL>inputfile, format=_input_choices[from_format][<NUM_LIT:1>],<EOL>binary=_input_choices[from_format][<NUM_LIT:2>])<EOL>emb.save(outputfile, format=_output_choices[to_format][<NUM_LIT:1>],<EOL>binary=_output_choices[to_format][<NUM_LIT:2>])<EOL>
Convert pretrained word embedding file in one format to another.