disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DG_GENETIC_ABNORMALITIES(c):
    """
    This LF searches for key phraes that indicate a genetic abnormality
    """
    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 re.search(ltp(genetic_abnormalities), get_text_between(c), flags=re.I):
        return 1
    elif re.search(ltp(genetic_abnormalities), left_window, flags=re.I):
        return 1
    elif re.search(ltp(genetic_abnormalities), right_window, flags=re.I):
        return 1
    return 0

    This LF searches for key phraes that indicate a genetic abnormality
    
This LF searches for key phraes that indicate a genetic abnormality
This LF searches for key phraes that indicate a genetic abnormality
def LF_DG_GENETIC_ABNORMALITIES(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 re.search(ltp(genetic_abnormalities), get_text_between(c), flags=re.I):
        return 1
    elif re.search(ltp(genetic_abnormalities), left_window, flags=re.I):
        return 1
    elif re.search(ltp(genetic_abnormalities), right_window, flags=re.I):
        return 1
    return 0
def LF_DG_GENETIC_ABNORMALITIES ( 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 re . search ( ltp ( genetic_abnormalities ) , get_text_between ( c ) , flags = re . I ) : return 1 elif re . search ( ltp ( genetic_abnormalities ) , left_window , flags = re . I ) : return 1 elif re . search ( ltp ( genetic_abnormalities ) , right_window , flags = re . I ) : return 1 return 0
This LF searches for key phraes that indicate a genetic abnormality
This LF searches for key phraes that indicate a genetic abnormality
"""
    This LF searches for key phraes that indicate a genetic abnormality
    """
c