21b9cc8987cf3957914a0ef879e755ccddffc24e,ner_v2/detectors/temporal/time/en/time_detection.py,TimeDetector,_detect_start_range_12_hour_format_without_min,#TimeDetector#Any#Any#,459
Before Change
"hh": int(t1),
"mm": 0,
"nn": str(ap1).lower().strip("."),
"tz": (tz1 or tz2 or "none").upper(),
"range": "start",
"time_type": time_type
}
time1["nn"] = "am" if "a" in time1["nn"] else time1["nn"]
time1["nn"] = "pm" if "p" in time1["nn"] else time1["nn"]
time_list.append(time1)
original_list.append(original1)
After Change
time_type = None
t1 = pattern[2]
ap1 = pattern[3]
tz1 = pattern[1]
tz2 = pattern[4]
tz = None
if tz1 or tz2:
tz = self.convert_to_pytz_format(tz1 or tz2)
time1 = {
"hh": int(t1),
"mm": 0,
"nn": str(ap1).lower().strip("."),
"tz": tz or self.timezone.zone,
"range": "start",
"time_type": time_type
}
time1["nn"] = "am" if "a" in time1["nn"] else time1["nn"]
time1["nn"] = "pm" if "p" in time1["nn"] else time1["nn"]
time_list.append(time1)
original_list.append(original1)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 15
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: 21b9cc8987cf3957914a0ef879e755ccddffc24e
Time: 2019-10-03
Author: ruthvik@haptik.co
File Name: ner_v2/detectors/temporal/time/en/time_detection.py
Class Name: TimeDetector
Method Name: _detect_start_range_12_hour_format_without_min
Project Name: hellohaptik/chatbot_ner
Commit Name: 21b9cc8987cf3957914a0ef879e755ccddffc24e
Time: 2019-10-03
Author: ruthvik@haptik.co
File Name: ner_v2/detectors/temporal/time/en/time_detection.py
Class Name: TimeDetector
Method Name: _detect_start_range_12_hour_format
Project Name: hellohaptik/chatbot_ner
Commit Name: 21b9cc8987cf3957914a0ef879e755ccddffc24e
Time: 2019-10-03
Author: ruthvik@haptik.co
File Name: ner_v2/detectors/temporal/time/en/time_detection.py
Class Name: TimeDetector
Method Name: _detect_start_range_12_hour_format_without_min
Project Name: hellohaptik/chatbot_ner
Commit Name: 21b9cc8987cf3957914a0ef879e755ccddffc24e
Time: 2019-10-03
Author: ruthvik@haptik.co
File Name: ner_v2/detectors/temporal/time/en/time_detection.py
Class Name: TimeDetector
Method Name: _detect_range_12_hour_format_without_min
Project Name: hellohaptik/chatbot_ner
Commit Name: 21b9cc8987cf3957914a0ef879e755ccddffc24e
Time: 2019-10-03
Author: ruthvik@haptik.co
File Name: ner_v2/detectors/temporal/time/en/time_detection.py
Class Name: TimeDetector
Method Name: _detect_range_12_hour_format