playground/compound_disease/transfer_learning_experiment/data/label_functions/disease_gene_lf.py
def LF_DG_WEAK_ASSOCIATION(c):
    """
    This label function is design to search for phrases that indicate a 
    weak association between the disease and gene
    """
    if re.search(ltp(weak_association), get_text_between(c), flags=re.I):
        return -1
    elif re.search(ltp(weak_association) + r".*({{B}}|{{A}})", get_tagged_text(c), flags=re.I):
        return -1
    elif re.search(r"({{B}}|{{A}}).*" + ltp(weak_association), get_tagged_text(c), flags=re.I):
        return -1
    else:
        return 0

    This label function is design to search for phrases that indicate a 
    weak association between the disease and gene
    
This label function is design to search for phrases that indicate a
weak association between the disease and gene
This label function is design to search for phrases that indicate a weak association between the disease and gene
def LF_DG_WEAK_ASSOCIATION(c):
    if re.search(ltp(weak_association), get_text_between(c), flags=re.I):
        return -1
    elif re.search(ltp(weak_association) + r".*({{B}}|{{A}})", get_tagged_text(c), flags=re.I):
        return -1
    elif re.search(r"({{B}}|{{A}}).*" + ltp(weak_association), get_tagged_text(c), flags=re.I):
        return -1
    else:
        return 0
def LF_DG_WEAK_ASSOCIATION ( c ) : if re . search ( ltp ( weak_association ) , get_text_between ( c ) , flags = re . I ) : return - 1 elif re . search ( ltp ( weak_association ) + r".*({{B}}|{{A}})" , get_tagged_text ( c ) , flags = re . I ) : return - 1 elif re . search ( r"({{B}}|{{A}}).*" + ltp ( weak_association ) , get_tagged_text ( c ) , flags = re . I ) : return - 1 else : return 0
This label function is design to search for phrases that indicate a
weak association between the disease and gene
This label function is design to search for phrases that indicate a weak association between the disease and gene
"""
    This label function is design to search for phrases that indicate a 
    weak association between the disease and gene
    """
c