Spaces:
Runtime error
Runtime error
Added a new filter parameter to get clean data
Browse files1 unmodified line234556781 unmodified line
def extract_panData(data): unwanted_words = ["Name","/Name",'Permanent', 'Account', 'Number', 'Card', 'नाम', '/Name', "पिता का नाम",'नाम / Name', "पिता का नाम/ Father's Name", "पिता का नाम/ Father's Nam", 'नाम /Name',"पिता का नाम / Father's Name", 'जन्म का वाराज़', 'Date of Birth', 'Permanent Account Number Card', "Date of Birth", "/Date of Birth", "Permanent Account Number", "Father's Name", "14 /Name", "/Father's Name"] "पिता का नाम",'नाम / Name', "पिता का नाम/ Father's Name", "पिता का नाम/ Father's Nam","पिता का नाम / Father's Nam", 'नाम /Name',"पिता का नाम / Father's Name", 'जन्म का वाराज़', 'Date of Birth', 'Permanent Account Number Card', "Date of Birth", "/Date of Birth", "Permanent Account Number", "Father's Name", "14 /Name", "/Father's Name"] # Clean the array by removing unwanted words and invalid entries cleaned_data = []app/services/panServices/panDataExtractor.py+1-1