playground/disease_gene/generative_model_experiments/data_210/label_functions/disease_gene_lf.py
def LF_DG_NEGATIVE_DIRECTION(c):
    """
    This label function is designed to search for words that indicate
    a sort of negative response or imply an downregulates association
    """
    return 1 if any([rule_regex_search_btw_AB(c, r'.*'+ltp(negative_direction)+r'.*', 1), rule_regex_search_btw_BA(c, r'.*'+ltp(negative_direction)+r'.*', 1)]) or  \
        re.search(r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp(negative_direction), get_tagged_text(c)) else 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_DG_NEGATIVE_DIRECTION(c):
    return 1 if any([rule_regex_search_btw_AB(c, r'.*'+ltp(negative_direction)+r'.*', 1), rule_regex_search_btw_BA(c, r'.*'+ltp(negative_direction)+r'.*', 1)]) or  \
        re.search(r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp(negative_direction), get_tagged_text(c)) else 0
def LF_DG_NEGATIVE_DIRECTION ( c ) : return 1 if any ( [ rule_regex_search_btw_AB ( c , r'.*' + ltp ( negative_direction ) + r'.*' , 1 ) , rule_regex_search_btw_BA ( c , r'.*' + ltp ( negative_direction ) + r'.*' , 1 ) ] ) or re . search ( r'({{A}}|{{B}}).*({{A}}|{{B}}).*' + ltp ( negative_direction ) , get_tagged_text ( c ) ) else 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