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: 2

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: SPFlow/SPFlow
Commit Name: fd408e8129f0fa94936e19115e7433b92a83e681
Time: 2018-03-27
Author: molina@cs.tu-darmstadt.de
File Name: src/spn/io/Text.py
Class Name:
Method Name: to_str_ref_graph


Project Name: scikit-multiflow/scikit-multiflow
Commit Name: a8530947d48a1e1486017b53944bf130768a2480
Time: 2019-05-11
Author: jacob.montiel@gmail.com
File Name: src/skmultiflow/core/base.py
Class Name: BaseSKMObject
Method Name: reset