55930f33c1a7d6fba14a9aa2accc8867395e0d4c,custom_intent_parser/entity_extractor/regex_entity_extractor.py,RegexEntityExtractor,fit,#RegexEntityExtractor#Any#,112

Before Change


            for query in intent_queries:
                patterns = query_to_patterns(query)
                for entity_name, entity_patterns in patterns.iteritems():
                    if entity_name not in regexes:
                        regexes[entity_name] = entity_patterns
                    else:
                        regexes[entity_name] += entity_patterns
        self.regexes = regexes
        return self

    def get_entities(self, text):

After Change


        for intent_name, intent_queries in dataset.queries.iteritems():
            regexes[intent_name] = dict()
            for target_name, target_entity in dataset.entities.iteritems():
                entity_patterns = generate_entity_regexes(
                    intent_queries, target_entity, dataset.entities)
                if len(entity_patterns) > 0:
                    regexes[intent_name][target_name] = entity_patterns

        self.regexes = regexes
        return self

    def get_entities(self, text):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: snipsco/snips-nlu
Commit Name: 55930f33c1a7d6fba14a9aa2accc8867395e0d4c
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: sympy/sympy
Commit Name: 1ba0aca2102344e64df7fe7dcb617b8ddaf3ec3d
Time: 2020-07-16
Author: faisalriyaz011@gmail.com
File Name: sympy/vector/implicitregion.py
Class Name: ImplicitRegion
Method Name: multiplicity


Project Name: rasbt/mlxtend
Commit Name: cbe17d7c0be2587b876225bdea08abbed426f17c
Time: 2019-06-23
Author: harenbergsd@gmail.com
File Name: mlxtend/frequent_patterns/apriori.py
Class Name:
Method Name: apriori