a62786bd86e9318167d4c05f1392591bed79722c,ner_v1/chatbot/entity_detection.py,,get_regex,#Any#Any#Any#Any#Any#Any#,471
Before Change
>> [{"detection": "message", "original_text": "2141215305", "entity_value": {"value": "2141215305"}}]
meta_data = ast.literal_eval(meta_data)
regex_detection = RegexDetector(entity_name=entity_name, regex=meta_data["regex"])
if structured_value:
entity_list, original_text_list = regex_detection.detect_entity(text=structured_value)
if entity_list:
After Change
ner_logger.debug("META_DATA_BEFORE>>>>> %s" % meta_data)
meta_data = ast.literal_eval(meta_data)["regex"]
ner_logger.debug("META_DATA_AFTER_REGEX>>>>>>%s" % meta_data)
regex_detection = RegexDetector(entity_name=entity_name, regex=meta_data)
if structured_value:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: a62786bd86e9318167d4c05f1392591bed79722c
Time: 2018-02-13
Author: pratik.jayarao@haptik.co
File Name: ner_v1/chatbot/entity_detection.py
Class Name:
Method Name: get_regex
Project Name: hellohaptik/chatbot_ner
Commit Name: 27c30c7668da0385ea8c7eb3fb1ec0fbf88f5b9c
Time: 2018-02-13
Author: pratik.jayarao@haptik.co
File Name: ner_v1/chatbot/entity_detection.py
Class Name:
Method Name: get_regex
Project Name: hellohaptik/chatbot_ner
Commit Name: d198075241e7b05fc22e32606b756adf20863cc1
Time: 2018-02-16
Author: pratik.jayarao@haptik.co
File Name: ner_v1/chatbot/entity_detection.py
Class Name:
Method Name: get_regex