1c0642d53f5733e544da770501ec0e1bbf2b5413,rasa/shared/nlu/training_data/formats/wit.py,WitReader,read_from_json,#WitReader#Any#,14

Before Change


            ]
            for e in entities:
                // for some reason wit adds additional quotes around entities
                e["value"] = e["value"].strip(""")

            data = {}
            if intent:
                data[INTENT] = intent

After Change



            for e in entities:
                entity_name = e["entity"]
                if ":" not in entity_name:
                    continue
                (name, role) = entity_name.rsplit(":", 1)
                e[ENTITY_ATTRIBUTE_TYPE] = name
                e[ENTITY_ATTRIBUTE_ROLE] = role
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: RasaHQ/rasa
Commit Name: 1c0642d53f5733e544da770501ec0e1bbf2b5413
Time: 2020-10-28
Author: alwxndr@gmail.com
File Name: rasa/shared/nlu/training_data/formats/wit.py
Class Name: WitReader
Method Name: read_from_json


Project Name: deepmipt/DeepPavlov
Commit Name: c3a9468a86a0abdf78c9a8d55a0147b0a61fb16b
Time: 2018-02-05
Author: arkhipov@yahoo.com
File Name: deeppavlov/models/ner/ner.py
Class Name: NER
Method Name: infer


Project Name: pyinstaller/pyinstaller
Commit Name: e1966665e080ec8899755f9b9a3bf1ca6b209ed7
Time: 2015-09-18
Author: mzibr.public@gmail.com
File Name: PyInstaller/__init__.py
Class Name:
Method Name: