bb82889e5cc39ef7a9e7fefdfb7b51fe8c605cf9,scripts/nmt/bleu.py,,compute_bleu,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,156

Before Change


            references = [_split_compound_word(reference) for reference in references]
            translation = _split_compound_word(translation)
        if lower_case:
            references = [list(map(str.lower, reference)) for reference in references]
            translation = list(map(str.lower, translation))
        trans_len = len(translation)
        trans_length += trans_len

After Change


            translation = _split_compound_word(translation)
        if lower_case:
            references = [[w.lower() for w in reference] for reference in references]
            translation = [w.lower() for w in translation]
        trans_len = len(translation)
        trans_length += trans_len
        ref_length += _closest_ref_length(references, trans_len)
        for n in range(max_n):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: dmlc/gluon-nlp
Commit Name: bb82889e5cc39ef7a9e7fefdfb7b51fe8c605cf9
Time: 2018-09-28
Author: szhengac@users.noreply.github.com
File Name: scripts/nmt/bleu.py
Class Name:
Method Name: compute_bleu


Project Name: snorkel-team/snorkel
Commit Name: a5ce019480c33dba9ee92b453800b30cb6c8066b
Time: 2017-12-14
Author: ajratner@gmail.com
File Name: snorkel/contrib/brat/brat.py
Class Name: StandoffAnnotations
Method Name: _normalize_relation_name


Project Name: inspirehep/magpie
Commit Name: cabac9865b8a68e1ee95c72785d277133c0d1196
Time: 2017-02-15
Author: janstypka@gmail.com
File Name: magpie/base/document.py
Class Name: Document
Method Name: compute_wordset