346705a7703d6beebaa3e033520865943440e259,custom_intent_parser/entity_extractor/regex_entity_extractor.py,RegexEntityExtractor,regexes,#RegexEntityExtractor#Any#,101

Before Change


    def regexes(self, value):
        for intent_name, intent_patterns in value.iteritems():
            for k, pattern_list in intent_patterns.iteritems():
                if not isinstance(k, tuple) or len(k) != 2:
                    raise TypeError("regexes must be a dict with (entity_name,"
                                    " role_name) 2-tuples as keys.")
                for pattern in pattern_list:
                    if not isinstance(pattern, re._pattern_type):
                        raise TypeError("patterns must be compile regexes "
                                        "founds %s" % type(pattern))

After Change



    @regexes.setter
    def regexes(self, value):
        for pattern_list in value.values():
            for pattern in pattern_list:
                if not isinstance(pattern, re._pattern_type):
                    raise TypeError("patterns must be compile regexes "
                                    "founds %s" % type(pattern))
        self._regexes = value

    @property
    def group_names_to_labels(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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


Project Name: andresriancho/w3af
Commit Name: 3a1b04fd5a519f6e981d714350b234061cdc38e9
Time: 2018-07-18
Author: andres.riancho@gmail.com
File Name: w3af/core/data/kb/knowledge_base.py
Class Name: DBKnowledgeBase
Method Name: get


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