Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Age is not extracted properly #2

Open
IsmailM opened this issue May 7, 2022 · 1 comment
Open

Age is not extracted properly #2

IsmailM opened this issue May 7, 2022 · 1 comment

Comments

@IsmailM
Copy link

IsmailM commented May 7, 2022

In the following code (Line 1075), the regex is looking DOB: (in layout v1/v2), but in the examples (layout v2) I have (and in the example in your paper), this is displayed as Age: .

# ===== DOB DETECTION =====
if (layout_version == Hvf_Object.HVF_LAYOUT_V1) or (layout_version == Hvf_Object.HVF_LAYOUT_V2) or (layout_version == Hvf_Object.HVF_LAYOUT_V2_GPA):
field, tokenized_header4_list = Regex_Utils.fuzzy_regex('DOB: ', tokenized_header4_list);
field = Regex_Utils.remove_spaces(field);
field = Regex_Utils.remove_non_numeric(field, ['-', '/']);
if (layout_version == Hvf_Object.HVF_LAYOUT_V3):
field, tokenized_header1_list = Regex_Utils.fuzzy_regex('Date of Birth:', tokenized_header1_list);
hvf_metadata[Hvf_Object.KEYLABEL_DOB] = field;

image

@msaifee786
Copy link
Owner

msaifee786 commented May 7, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants