sumyatthitsarr / mm-nrc-extractor

Burmese National Registration Card (NRC) data extraction from text using Regular Expressions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract Burmese NRC data from text using RegEx pattern

Example Usage 1

from nrc_extractor import get_nrc_data

test_str = 'My National ID card number is 9/MAKANA(Naing)000333'

print(get_nrc_data(test_str))

This should print:

('9/MAKANA(Naing)000333', 'Mandalay')

Example Usage 2

from nrc_extractor import get_nrc_data

test_str = 'မှတ်ပုံတင်အမှတ် ၉/မကန(နိုင်)၀၀၀၀၂၅'

print(get_nrc_data(test_str, state = True))

This should print:

('၉/မကန(နိုင်)၀၀၀၀၂၅', 'မန္တလေးတိုင်းဒေသကြီး')

NOTE
Data used in the above examples are just sample data.

Future Work

  • NRC validation

About

Burmese National Registration Card (NRC) data extraction from text using Regular Expressions


Languages

Language:Python 100.0%