c751a1dd8a724388437916e9d29653c45fc4f14f,preprocess.py,,makeVocabulary,#Any#Any#,49

Before Change


            assert numFeatures == 0, "Features not implemented"

            if len(featuresVocabs) == 0 and numFeatures > 0:
                error("Features not implemented")
                for j in range(numFeatures):
                    featuresVocabs[j] = onmt.Dict(
                            {onmt.Constants.PAD_WORD, onmt.Constants.UNK_WORD,
                             onmt.Constants.BOS_WORD, onmt.Constants.EOS_WORD})

After Change


            assert numFeatures == 0, "Features not implemented"

            if len(featuresVocabs) == 0 and numFeatures > 0:
                raise RuntimeError("Features not implemented")
                for j in range(numFeatures):
                    featuresVocabs[j] = onmt.Dict(
                            {onmt.Constants.PAD_WORD, onmt.Constants.UNK_WORD,
                             onmt.Constants.BOS_WORD, onmt.Constants.EOS_WORD})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: c751a1dd8a724388437916e9d29653c45fc4f14f
Time: 2017-02-22
Author: alerer@fb.com
File Name: preprocess.py
Class Name:
Method Name: makeVocabulary


Project Name: OpenNMT/OpenNMT-py
Commit Name: d88d3777c2b5c8c6471720252bca4c1987e6366e
Time: 2017-02-22
Author: alerer@fb.com
File Name: OpenNMT/preprocess.py
Class Name:
Method Name: makeVocabulary