Skip to content

Age is not extracted properly #2

@IsmailM

Description

@IsmailM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions