51139cc6e46eabb46506e5fc4d976487fab6fbbe,tests/theanolm/latticedecoder_test.py,TestLatticeDecoder,test_decode,#TestLatticeDecoder#,283

Before Change


        self.assertListEqual(paths, all_paths)

        token = tokens[0]
        history = " ".join(vocabulary.id_to_word[token.history])
        self.assertAlmostEqual(token.ac_logprob / log_scale, -8686.28, places=2)
        self.assertAlmostEqual(token.lat_lm_logprob / log_scale, -94.3896, places=2)
        self.assertAlmostEqual(token.nn_lm_logprob, math.log(0.1) * 4)

After Change


                     "<s> TO IT DIDN"T ELABORATE </s>",
                     "<s> A. IT DIDN"T ELABORATE </s>",
                     "<s> A IT DIDN"T ELABORATE </s>"]
        paths = [" ".join(token.history_words(vocabulary)) for token in tokens]
        self.assertListEqual(paths, all_paths)

        token = tokens[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: senarvi/theanolm
Commit Name: 51139cc6e46eabb46506e5fc4d976487fab6fbbe
Time: 2016-12-27
Author: seppo.git@marjaniemi.com
File Name: tests/theanolm/latticedecoder_test.py
Class Name: TestLatticeDecoder
Method Name: test_decode


Project Name: senarvi/theanolm
Commit Name: 51139cc6e46eabb46506e5fc4d976487fab6fbbe
Time: 2016-12-27
Author: seppo.git@marjaniemi.com
File Name: theanolm/scoring/latticedecoder.py
Class Name: Token
Method Name: __str__


Project Name: senarvi/theanolm
Commit Name: 51139cc6e46eabb46506e5fc4d976487fab6fbbe
Time: 2016-12-27
Author: seppo.git@marjaniemi.com
File Name: theanolm/commands/decode.py
Class Name:
Method Name: format_token