disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DaG_NO_ASSOCIATION(c):
    """
    This LF is designed to test if there is a key phrase that suggests
    a d-g pair is no an association.
    """
    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(no_direct_association), get_text_between(c), flags=re.I):
        return -1
    elif re.search(ltp(no_direct_association), left_window, flags=re.I):
        return -1
    elif re.search(ltp(no_direct_association), right_window, flags=re.I):
        return -1
    else:
        return 0

    This LF is designed to test if there is a key phrase that suggests
    a d-g pair is no an association.
    
This LF is designed to test if there is a key phrase that suggests
a d-g pair is no an association.
This LF is designed to test if there is a key phrase that suggests a d - g pair is no an association .
def LF_DaG_NO_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(no_direct_association), get_text_between(c), flags=re.I):
        return -1
    elif re.search(ltp(no_direct_association), left_window, flags=re.I):
        return -1
    elif re.search(ltp(no_direct_association), right_window, flags=re.I):
        return -1
    else:
        return 0
def LF_DaG_NO_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 ( no_direct_association ) , get_text_between ( c ) , flags = re . I ) : return - 1 elif re . search ( ltp ( no_direct_association ) , left_window , flags = re . I ) : return - 1 elif re . search ( ltp ( no_direct_association ) , right_window , flags = re . I ) : return - 1 else : return 0
This LF is designed to test if there is a key phrase that suggests
a d-g pair is no an association.
This LF is designed to test if there is a key phrase that suggests a d - g pair is no an association .
"""
    This LF is designed to test if there is a key phrase that suggests
    a d-g pair is no an association.
    """
c