def get_args():
    parser = argparse.ArgumentParser(description='This script creates the\n       text form of a lexicon FST, to be compiled by fstcompile using the\n       appropriate symbol tables (phones.txt and words.txt) .  It will mostly\n       be invoked indirectly via utils/prepare_lang.sh.  The output goes to\n       the stdout.')
    parser.add_argument('--sil-phone', dest='sil_phone', type=str, help="Text form of optional-silence phone, e.g. 'SIL'.  See also\n                        the --silprob option.")
    parser.add_argument('--sil-prob', dest='sil_prob', type=float, default=0.0, help='Probability of silence between words (including at the\n                        beginning and end of word sequences).  Must be in the range [0.0, 1.0].\n                        This refers to the optional silence inserted by the lexicon; see\n                        the --silphone option.')
    parser.add_argument('--sil-disambig', dest='sil_disambig', type=str, help='Disambiguation symbol to disambiguate silence, e.g. #5.\n                        Will only be supplied if you are creating the version of L.fst\n                        with disambiguation symbols, intended for use with cyclic G.fst.\n                        This symbol was introduced to fix a rather obscure source of\n                        nondeterminism of CLG.fst, that has to do with reordering of\n                        disambiguation symbols and phone symbols.')
    parser.add_argument('--left-context-phones', dest='left_context_phones', type=str, help='Only relevant if --nonterminals is also supplied; this relates\n                        to grammar decoding (see http://kaldi-asr.org/doc/grammar.html or\n                        src/doc/grammar.dox).  Format is a list of left-context phones,\n                        in text form, one per line.  E.g. data/lang/phones/left_context_phones.txt')
    parser.add_argument('--nonterminals', type=str, help='If supplied, --left-context-phones must also be supplied.\n                        List of user-defined nonterminal symbols such as #nonterm:contact_list,\n                        one per line.  E.g. data/local/dict/nonterminals.txt.')
    parser.add_argument('lexiconp', type=str, help="Filename of lexicon with pronunciation probabilities\n                        (normally lexiconp.txt), with lines of the form 'word prob p1 p2...',\n                        e.g. 'a   1.0    ay'")
    args = parser.parse_args()
    return args
def get_args():
    parser = argparse.ArgumentParser(description='This script creates the\n       text form of a lexicon FST, to be compiled by fstcompile using the\n       appropriate symbol tables (phones.txt and words.txt) .  It will mostly\n       be invoked indirectly via utils/prepare_lang.sh.  The output goes to\n       the stdout.')
    parser.add_argument('--sil-phone', dest='sil_phone', type=str, help="Text form of optional-silence phone, e.g. 'SIL'.  See also\n                        the --silprob option.")
    parser.add_argument('--sil-prob', dest='sil_prob', type=float, default=0.0, help='Probability of silence between words (including at the\n                        beginning and end of word sequences).  Must be in the range [0.0, 1.0].\n                        This refers to the optional silence inserted by the lexicon; see\n                        the --silphone option.')
    parser.add_argument('--sil-disambig', dest='sil_disambig', type=str, help='Disambiguation symbol to disambiguate silence, e.g. #5.\n                        Will only be supplied if you are creating the version of L.fst\n                        with disambiguation symbols, intended for use with cyclic G.fst.\n                        This symbol was introduced to fix a rather obscure source of\n                        nondeterminism of CLG.fst, that has to do with reordering of\n                        disambiguation symbols and phone symbols.')
    parser.add_argument('--left-context-phones', dest='left_context_phones', type=str, help='Only relevant if --nonterminals is also supplied; this relates\n                        to grammar decoding (see http://kaldi-asr.org/doc/grammar.html or\n                        src/doc/grammar.dox).  Format is a list of left-context phones,\n                        in text form, one per line.  E.g. data/lang/phones/left_context_phones.txt')
    parser.add_argument('--nonterminals', type=str, help='If supplied, --left-context-phones must also be supplied.\n                        List of user-defined nonterminal symbols such as #nonterm:contact_list,\n                        one per line.  E.g. data/local/dict/nonterminals.txt.')
    parser.add_argument('lexiconp', type=str, help="Filename of lexicon with pronunciation probabilities\n                        (normally lexiconp.txt), with lines of the form 'word prob p1 p2...',\n                        e.g. 'a   1.0    ay'")
    args = parser.parse_args()
    return args