disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DaG_WEAK_ASSOCIATION(c):
    """
    This label function is design to search for phrases that indicate a 
    weak association between the disease and gene
    """
    left_window = " ".join(get_left_tokens(c[0], window=10)) + " ".join(get_left_tokens(c[1], window=10))
    right_window = " ".join(get_right_tokens(c[0], window=10)) + " ".join(get_right_tokens(c[1], window=10))
    
    if LF_DG_METHOD_DESC(c) or LF_DG_TITLE(c):
        return 0
    elif re.search(ltp(weak_association), get_text_between(c), flags=re.I):
        return 1
    elif re.search(ltp(weak_association), left_window, flags=re.I):
        return 1
    elif re.search(ltp(weak_association), right_window, 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_DaG_WEAK_ASSOCIATION(c):
    left_window = " ".join(get_left_tokens(c[0], window=10)) + " ".join(get_left_tokens(c[1], window=10))
    right_window = " ".join(get_right_tokens(c[0], window=10)) + " ".join(get_right_tokens(c[1], window=10))
    if LF_DG_METHOD_DESC(c) or LF_DG_TITLE(c):
        return 0
    elif re.search(ltp(weak_association), get_text_between(c), flags=re.I):
        return 1
    elif re.search(ltp(weak_association), left_window, flags=re.I):
        return 1
    elif re.search(ltp(weak_association), right_window, flags=re.I):
        return 1
    else:
        return 0
def LF_DaG_WEAK_ASSOCIATION ( c ) : left_window = " " . join ( get_left_tokens ( c [ 0 ] , window = 10 ) ) + " " . join ( get_left_tokens ( c [ 1 ] , window = 10 ) ) right_window = " " . join ( get_right_tokens ( c [ 0 ] , window = 10 ) ) + " " . join ( get_right_tokens ( c [ 1 ] , window = 10 ) ) if LF_DG_METHOD_DESC ( c ) or LF_DG_TITLE ( c ) : return 0 elif re . search ( ltp ( weak_association ) , get_text_between ( c ) , flags = re . I ) : return 1 elif re . search ( ltp ( weak_association ) , left_window , flags = re . I ) : return 1 elif re . search ( ltp ( weak_association ) , right_window , 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