e870ef14c590502fb0dc5ff3199e2602a87ec008,ner_v1/detectors/numeral/budget/budget_detection.py,BudgetDetector,_detect_min_budget,#BudgetDetector#Any#Any#,182
Before Change
r"(rs.|rs|rupees|rupee)*\s*([\d.,]+\s*[klmct]?[a-z]*|[\d.,]+\s*[klmct]?[a-z]*)\s*"
r"(rs.|rs|rupees|rupee|\.)?\s)", self.processed_text.lower())
for pattern in patterns:
original = pattern[0].strip()
budget = {
"min_budget": 0,
"max_budget": 0,
"type": BUDGET_TYPE_NORMAL
After Change
scale = self.get_scale(unit)
if amount.replace(",", "").replace(".", "").isdigit():
amount = float(amount.replace(",", "")) * scale
amount = int(amount) // casting to int for backward compatibility
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: hellohaptik/chatbot_ner
Commit Name: e870ef14c590502fb0dc5ff3199e2602a87ec008
Time: 2019-03-18
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/numeral/budget/budget_detection.py
Class Name: BudgetDetector
Method Name: _detect_min_budget
Project Name: catalyst-cooperative/pudl
Commit Name: 8ab31ccce5629d57ad6ca671a90c39d54fdda568
Time: 2019-01-02
Author: cgosnell@catalyst.coop
File Name: pudl/helpers.py
Class Name:
Method Name: simplify_columns
Project Name: catalyst-cooperative/pudl
Commit Name: e1082d619ca1c644c6e3d9fefeef781935949707
Time: 2018-12-22
Author: zane.selvans@catalyst.coop
File Name: pudl/helpers.py
Class Name:
Method Name: simplify_columns
Project Name: hellohaptik/chatbot_ner
Commit Name: e870ef14c590502fb0dc5ff3199e2602a87ec008
Time: 2019-03-18
Author: jain.chirag925@gmail.com
File Name: ner_v1/detectors/numeral/budget/budget_detection.py
Class Name: BudgetDetector
Method Name: _detect_max_budget