9f376975884e7a0d7a553dcdfa1ab54b66ddbb1f,speech_editor.py,,,#,324

Before Change


if options.promptsfn:
    with codecs.open(options.promptsfn, "r", "utf8") as promptsf:
        for line in promptsf:
            prompt_tokens.extend(tokenize(line, lang=options.lang))

    logging.info("%s read. %d tokens." % (options.promptsfn, len(prompt_tokens)))

//

After Change


with codecs.open(options.wrt, "r", "utf8") as wrtf:
    for line in wrtf:
        parts = line.strip().split("")
        if len(parts) != 2:
            continue
        wrt[parts[0]] = parts[1]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: gooofy/zamia-speech
Commit Name: 9f376975884e7a0d7a553dcdfa1ab54b66ddbb1f
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name:


Project Name: UFAL-DSG/tgen
Commit Name: ec01f586b20cc3e9e15146e71d9248301ba277ae
Time: 2014-07-02
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank.py
Class Name: PerceptronRanker
Method Name: _get_rival_candidates


Project Name: THUNLP-MT/THUMT
Commit Name: 410992318552115d2e3de84844bf523012e3e98e
Time: 2019-11-26
Author: cg847519328@163.com
File Name: thumt/utils/hooks.py
Class Name:
Method Name: _evaluate