disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DdG_DOWNREGULATES(c):
    """
    This label function is designed to search for words that indicate
    a sort of negative response or imply an downregulates association
    """
    if LF_DG_METHOD_DESC(c) or LF_DG_TITLE(c):
        return 0
    else:
        if rule_regex_search_btw_AB(c, r'.*'+ltp(downregulates)+r'.*', 1):
            return 1
        elif rule_regex_search_btw_BA(c, r'.*'+ltp(downregulates)+r'.*', 1):
            return 1
        elif re.search(r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp(downregulates), get_tagged_text(c)):
            return 1
        else:
            return 0

    This label function is designed to search for words that indicate
    a sort of negative response or imply an downregulates association
    
This label function is designed to search for words that indicate
a sort of negative response or imply an downregulates association
This label function is designed to search for words that indicate a sort of negative response or imply an downregulates association
def LF_DdG_DOWNREGULATES(c):
    if LF_DG_METHOD_DESC(c) or LF_DG_TITLE(c):
        return 0
    else:
        if rule_regex_search_btw_AB(c, r'.*'+ltp(downregulates)+r'.*', 1):
            return 1
        elif rule_regex_search_btw_BA(c, r'.*'+ltp(downregulates)+r'.*', 1):
            return 1
        elif re.search(r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp(downregulates), get_tagged_text(c)):
            return 1
        else:
            return 0
def LF_DdG_DOWNREGULATES ( c ) : if LF_DG_METHOD_DESC ( c ) or LF_DG_TITLE ( c ) : return 0 else : if rule_regex_search_btw_AB ( c , r'.*' + ltp ( downregulates ) + r'.*' , 1 ) : return 1 elif rule_regex_search_btw_BA ( c , r'.*' + ltp ( downregulates ) + r'.*' , 1 ) : return 1 elif re . search ( r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp ( downregulates ) , get_tagged_text ( c ) ) : return 1 else : return 0
This label function is designed to search for words that indicate
a sort of negative response or imply an downregulates association
This label function is designed to search for words that indicate a sort of negative response or imply an downregulates association
"""
    This label function is designed to search for words that indicate
    a sort of negative response or imply an downregulates association
    """
c