def extract_value()

in deploy_code/multipagepdfa2i_analyzepdf/clean_data.py [0:0]


def extract_value(value, kv, line, word):
    for val in value:
        try:
            text = ""
            for relation in kv[val]["Relationships"]:
                if relation["Type"] == "CHILD":
                    text = get_child(relation, line, word)
            return text
        except:
            return "UNKNOWN"