compound_disease/compound_treats_disease/data/label_functions/compound_disease_lf.py
def LF_CD_INCORRECT_COMPOUND(c):
    """
    This label function is designed to capture phrases
    that indicate the mentioned compound is a protein not a drug
    """
    if re.search(ltp(incorrect_compound_indications), " ".join(get_left_tokens(c[0], window=5)), flags=re.I):
        return -1
    elif re.search(ltp(incorrect_compound_indications), " ".join(get_right_tokens(c[0], window=5)), flags=re.I):
        return -1
    else:
        return 0

    This label function is designed to capture phrases
    that indicate the mentioned compound is a protein not a drug
    
This label function is designed to capture phrases
that indicate the mentioned compound is a protein not a drug
This label function is designed to capture phrases that indicate the mentioned compound is a protein not a drug
def LF_CD_INCORRECT_COMPOUND(c):
    if re.search(ltp(incorrect_compound_indications), " ".join(get_left_tokens(c[0], window=5)), flags=re.I):
        return -1
    elif re.search(ltp(incorrect_compound_indications), " ".join(get_right_tokens(c[0], window=5)), flags=re.I):
        return -1
    else:
        return 0
def LF_CD_INCORRECT_COMPOUND ( c ) : if re . search ( ltp ( incorrect_compound_indications ) , " " . join ( get_left_tokens ( c [ 0 ] , window = 5 ) ) , flags = re . I ) : return - 1 elif re . search ( ltp ( incorrect_compound_indications ) , " " . join ( get_right_tokens ( c [ 0 ] , window = 5 ) ) , flags = re . I ) : return - 1 else : return 0
This label function is designed to capture phrases
that indicate the mentioned compound is a protein not a drug
This label function is designed to capture phrases that indicate the mentioned compound is a protein not a drug
"""
    This label function is designed to capture phrases
    that indicate the mentioned compound is a protein not a drug
    """
c