playground/compound_disease/transfer_learning_experiment/data/label_functions/compound_gene_lf.py
def LF_CG_DOWNREGULATES(c):
    """
    This label function is designed to look for phrases
    that could implies a compound decreasing the activity of a gene/protein
    """
    if re.search(ltp(downregulates), get_text_between(c), flags=re.I):
        return 1
    elif downregulates.intersection(get_right_tokens(c[1], window=2)):
        return 1
    else:
        return 0

    This label function is designed to look for phrases
    that could implies a compound decreasing the activity of a gene/protein
    
This label function is designed to look for phrases
that could implies a compound decreasing the activity of a gene/protein
This label function is designed to look for phrases that could implies a compound decreasing the activity of a gene / protein
def LF_CG_DOWNREGULATES(c):
    if re.search(ltp(downregulates), get_text_between(c), flags=re.I):
        return 1
    elif downregulates.intersection(get_right_tokens(c[1], window=2)):
        return 1
    else:
        return 0
def LF_CG_DOWNREGULATES ( c ) : if re . search ( ltp ( downregulates ) , get_text_between ( c ) , flags = re . I ) : return 1 elif downregulates . intersection ( get_right_tokens ( c [ 1 ] , window = 2 ) ) : return 1 else : return 0
This label function is designed to look for phrases
that could implies a compound decreasing the activity of a gene/protein
This label function is designed to look for phrases that could implies a compound decreasing the activity of a gene / protein
"""
    This label function is designed to look for phrases
    that could implies a compound decreasing the activity of a gene/protein
    """
c