Translating Names Between Languages¶
Translates a file of chemical names (specified by the -in option) in a specific language (-from option) into a file of names (specified by the -out option) in another language (-to option).
Command Line Interface¶
A description of the command line interface can be obtained by executing the program with the –help argument.
prompt> python translate_example.py --help
will generate the following output:
Simple parameter list
translate
-nobanner : Suppress the program banner.
-in : Input filename
-out : Output filename
-from : Language for input names.
-to : Language for input names.
-from_charset : Choose charset/encoding for input names.
-to_charset : Choose charset/encoding for output names.
Code¶
Download code