disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DG_DIAGNOSIS(c):
    """
    This label function is designed to search for words that imply a patient diagnosis
    which will provide evidence for possible disease gene association.
    """
    return 1 if any([rule_regex_search_btw_AB(c, r'.*'+ltp(diagnosis_indicators) + r".*", 1), rule_regex_search_btw_BA(c, r'.*'+ltp(diagnosis_indicators) + r".*", 1)]) or  \
        re.search(r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp(diagnosis_indicators), get_tagged_text(c)) else 0

    This label function is designed to search for words that imply a patient diagnosis
    which will provide evidence for possible disease gene association.
    
This label function is designed to search for words that imply a patient diagnosis
which will provide evidence for possible disease gene association.
This label function is designed to search for words that imply a patient diagnosis which will provide evidence for possible disease gene association .
def LF_DG_DIAGNOSIS(c):
    return 1 if any([rule_regex_search_btw_AB(c, r'.*'+ltp(diagnosis_indicators) + r".*", 1), rule_regex_search_btw_BA(c, r'.*'+ltp(diagnosis_indicators) + r".*", 1)]) or  \
        re.search(r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp(diagnosis_indicators), get_tagged_text(c)) else 0
def LF_DG_DIAGNOSIS ( c ) : return 1 if any ( [ rule_regex_search_btw_AB ( c , r'.*' + ltp ( diagnosis_indicators ) + r".*" , 1 ) , rule_regex_search_btw_BA ( c , r'.*' + ltp ( diagnosis_indicators ) + r".*" , 1 ) ] ) or re . search ( r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp ( diagnosis_indicators ) , get_tagged_text ( c ) ) else 0
This label function is designed to search for words that imply a patient diagnosis
which will provide evidence for possible disease gene association.
This label function is designed to search for words that imply a patient diagnosis which will provide evidence for possible disease gene association .
"""
    This label function is designed to search for words that imply a patient diagnosis
    which will provide evidence for possible disease gene association.
    """
c