e3386f7fee4073ce76ec599c9653177f6292c192,ner_v2/detectors/numeral/number/standard_number_detector.py,BaseNumberDetector,_detect_number_from_digit,#BaseNumberDetector#Any#Any#,247
Before Change
unit = None
if self.unit_type:
unit, original_text = self._get_unit_from_text(original_text, processed_text)
_pattern = re.compile(r"\b%s\b" % re.escape(original_text), flags=_re_flags)
if _pattern.search(processed_text):
processed_text = _pattern.sub(self.tag, processed_text)
number_list.append({
After Change
unit = None
if self.unit_type:
unit, original_text = self._get_unit_from_text(original_text, processed_text)
_pattern = re.compile(self._SPAN_BOUNDARY_TEMPLATE.format(re.escape(original_text)), flags=_re_flags)
if _pattern.search(processed_text):
processed_text = _pattern.sub(self.tag, processed_text, 1)
number_list.append({
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: e3386f7fee4073ce76ec599c9653177f6292c192
Time: 2021-03-02
Author: jain.chirag925@gmail.com
File Name: ner_v2/detectors/numeral/number/standard_number_detector.py
Class Name: BaseNumberDetector
Method Name: _detect_number_from_digit
Project Name: hellohaptik/chatbot_ner
Commit Name: e3386f7fee4073ce76ec599c9653177f6292c192
Time: 2021-03-02
Author: jain.chirag925@gmail.com
File Name: ner_v2/detectors/numeral/number/standard_number_detector.py
Class Name: BaseNumberDetector
Method Name: _detect_number_from_words
Project Name: hellohaptik/chatbot_ner
Commit Name: e3386f7fee4073ce76ec599c9653177f6292c192
Time: 2021-03-02
Author: jain.chirag925@gmail.com
File Name: ner_v2/detectors/numeral/number/standard_number_detector.py
Class Name: BaseNumberDetector
Method Name: _update_processed_text