compound_disease/compound_treats_disease/data/label_functions/compound_disease_lf.py
def LF_CpD_PALLIATES(c):
    """
    This label function is designed to look for phrases
    that could imply a compound binding to a gene/protein
    """
    if re.search(ltp(palliates_indication), get_text_between(c), flags=re.I):
        return 1
    elif re.search(ltp(palliates_indication), " ".join(get_left_tokens(c[0], window=5)), flags=re.I):
        return 1
    elif re.search(ltp(palliates_indication), " ".join(get_right_tokens(c[0], window=5)), flags=re.I):
        return 1
    else:
        return 0

    This label function is designed to look for phrases
    that could imply a compound binding to a gene/protein
    
This label function is designed to look for phrases
that could imply a compound binding to a gene/protein
This label function is designed to look for phrases that could imply a compound binding to a gene / protein
def LF_CpD_PALLIATES(c):
    if re.search(ltp(palliates_indication), get_text_between(c), flags=re.I):
        return 1
    elif re.search(ltp(palliates_indication), " ".join(get_left_tokens(c[0], window=5)), flags=re.I):
        return 1
    elif re.search(ltp(palliates_indication), " ".join(get_right_tokens(c[0], window=5)), flags=re.I):
        return 1
    else:
        return 0
def LF_CpD_PALLIATES ( c ) : if re . search ( ltp ( palliates_indication ) , get_text_between ( c ) , flags = re . I ) : return 1 elif re . search ( ltp ( palliates_indication ) , " " . join ( get_left_tokens ( c [ 0 ] , window = 5 ) ) , flags = re . I ) : return 1 elif re . search ( ltp ( palliates_indication ) , " " . join ( get_right_tokens ( c [ 0 ] , window = 5 ) ) , flags = re . I ) : return 1 else : return 0
This label function is designed to look for phrases
that could imply a compound binding to a gene/protein
This label function is designed to look for phrases that could imply a compound binding to a gene / protein
"""
    This label function is designed to look for phrases
    that could imply a compound binding to a gene/protein
    """
c