346705a7703d6beebaa3e033520865943440e259,custom_intent_parser/entity_extractor/regex_entity_extractor.py,RegexEntityExtractor,fit,#RegexEntityExtractor#Any#,117

Before Change


            for target_name, target_entity in dataset.entities.iteritems():
                patterns_dict = generate_regexes(intent_queries, target_entity,
                                                 dataset.entities)
                for (entity_name, role), pattern in patterns_dict.iteritems():
                    regexes[intent_name][(entity_name, role)] = pattern
        self.regexes = regexes
        return self

    def get_entities(self, text):

After Change


        for intent_name, intent_queries in dataset.queries.iteritems():
            intent_patterns, group_names_to_labels = generate_regexes(
                intent_queries, dataset.entities, group_names_to_labels)
            if len(intent_patterns) > 0:
                regexes[intent_name] = intent_patterns
        self.regexes = regexes
        self.group_names_to_labels = group_names_to_labels
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: 346705a7703d6beebaa3e033520865943440e259
Time: 2017-02-24
Author: clement.doumouro@snips.ai
File Name: custom_intent_parser/entity_extractor/regex_entity_extractor.py
Class Name: RegexEntityExtractor
Method Name: fit


Project Name: Theano/Theano
Commit Name: 24e7ed3b8f62fd702b2fea624189f93d145ad8b5
Time: 2017-05-30
Author: nouiz@nouiz.org
File Name: theano/gof/fg.py
Class Name: FunctionGraph
Method Name: orderings


Project Name: deepchem/deepchem
Commit Name: 21295bd1b0b8f6191a32b442964c54b23b9ef1a1
Time: 2016-11-25
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/tensorflow_models/progressive_multitask.py
Class Name: ProgressiveMultitaskRegressor
Method Name: construct_feed_dict