801fb1ff303c539ed90b91fc34261a5787c768c2,nala/learning/crfsuite.py,CRFSuite,create_input_file,#CRFSuite#Any#Any#,17

Before Change



            for sentence in dataset.sentences():
                for token in sentence:
                    features = "\t".join(["%s=%s" % (key, value.replace(":", "_COLON_")) if type(value) is str
                                          else "%s:%f" % (key, value)
                                          for key, value in token.features.items()])

After Change



            for sentence in dataset.sentences():
                for token in sentence:
                    features = "\t".join(["{}={}".format(key, str(value).replace(":", "_COLON_")) if "embedding" not in key
                                          else "{}:{}".format(key, value)
                                          for key, value in token.features.items()])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Rostlab/nalaf
Commit Name: 801fb1ff303c539ed90b91fc34261a5787c768c2
Time: 2015-07-06
Author: aleksandar.bojchevski@gmail.com
File Name: nala/learning/crfsuite.py
Class Name: CRFSuite
Method Name: create_input_file


Project Name: apache/incubator-mxnet
Commit Name: 5dc404dfb0cb5e9a034c9db5d58721e15791ad33
Time: 2020-11-19
Author: lausen@amazon.com
File Name: tests/python/unittest/test_subgraph_op.py
Class Name:
Method Name: test_subgraph_backend_gluon


Project Name: scikit-image/scikit-image
Commit Name: ddfac3e42d2ae2e09751de6638d813c76e30ff94
Time: 2018-12-04
Author: mark.harfouche@gmail.com
File Name: tools/check_sdist.py
Class Name:
Method Name: