playground/compound_disease/transfer_learning_experiment/data/label_functions/compound_gene_lf.py
def LF_CG_GENE_RECEIVERS(c):
    """
    This label function is designed to look for phrases
    that imples a kinases or sort of protein that receives
    a stimulus to function
    """
    if re.search(ltp(gene_receivers), " ".join(get_right_tokens(c[1], window=4))) or re.search(ltp(gene_receivers), " ".join(get_left_tokens(c[1], window=4))):
        return 1
    elif re.search(ltp(gene_receivers), c[1].get_span(), flags=re.I):
        return 1
    else:
        return 0

    This label function is designed to look for phrases
    that imples a kinases or sort of protein that receives
    a stimulus to function
    
This label function is designed to look for phrases
that imples a kinases or sort of protein that receives
a stimulus to function
This label function is designed to look for phrases that imples a kinases or sort of protein that receives a stimulus to function
def LF_CG_GENE_RECEIVERS(c):
    if re.search(ltp(gene_receivers), " ".join(get_right_tokens(c[1], window=4))) or re.search(ltp(gene_receivers), " ".join(get_left_tokens(c[1], window=4))):
        return 1
    elif re.search(ltp(gene_receivers), c[1].get_span(), flags=re.I):
        return 1
    else:
        return 0
def LF_CG_GENE_RECEIVERS ( c ) : if re . search ( ltp ( gene_receivers ) , " " . join ( get_right_tokens ( c [ 1 ] , window = 4 ) ) ) or re . search ( ltp ( gene_receivers ) , " " . join ( get_left_tokens ( c [ 1 ] , window = 4 ) ) ) : return 1 elif re . search ( ltp ( gene_receivers ) , c [ 1 ] . get_span ( ) , flags = re . I ) : return 1 else : return 0
This label function is designed to look for phrases
that imples a kinases or sort of protein that receives
a stimulus to function
This label function is designed to look for phrases that imples a kinases or sort of protein that receives a stimulus to function
"""
    This label function is designed to look for phrases
    that imples a kinases or sort of protein that receives
    a stimulus to function
    """
c