824a732fbe9dce332a69a67b613dc82169dbb50d,snips_nlu/intent_parser/regex_intent_parser.py,RegexIntentParser,to_dict,#RegexIntentParser#,283

Before Change


    def to_dict(self):
        patterns = None
        if self.regexes_per_intent is not None:
            patterns = {i: [r.pattern for r in regex_list] for i, regex_list in
                        self.regexes_per_intent.iteritems()}
        return {
            "language_code": self.language.iso_code,

After Change


        if self.language is not None:
            language_code = self.language.iso_code
        return {
            "config": self.config.to_dict(),
            "language_code": language_code,
            "patterns": self.patterns,
            "group_names_to_slot_names": self.group_names_to_slot_names,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: 824a732fbe9dce332a69a67b613dc82169dbb50d
Time: 2018-01-18
Author: adrien.ball@snips.net
File Name: snips_nlu/intent_parser/regex_intent_parser.py
Class Name: RegexIntentParser
Method Name: to_dict


Project Name: snipsco/snips-nlu
Commit Name: 8f3d959beea60e0c70076ebd3c6c4b9b946172c0
Time: 2017-05-02
Author: adrien.ball@snips.net
File Name: snips_nlu/nlu_engine.py
Class Name: SnipsNLUEngine
Method Name: to_dict


Project Name: stanfordnlp/stanza
Commit Name: 8c909f23438c3c79fa58d82e8bd02ff7d1efc45e
Time: 2019-08-20
Author: zyh.thu@gmail.com
File Name: stanfordnlp/pipeline/doc.py
Class Name: Word
Method Name: __repr__