playground/compound_disease/transfer_learning_experiment/data/label_functions/compound_gene_lf.py
def LF_CG_ANTIBODY(c):
    """
    This label function is designed to look for phrase
    antibody.
    """
    if "antibody" in c[1].get_span() or re.search("antibody", " ".join(get_right_tokens(c[1], window=3))):
        return 1
    elif "antibodies" in c[1].get_span() or re.search("antibodies", " ".join(get_right_tokens(c[1], window=3))):
        return 1
    else:
        return 0

    This label function is designed to look for phrase
    antibody.
    
This label function is designed to look for phrase
antibody.
This label function is designed to look for phrase antibody .
def LF_CG_ANTIBODY(c):
    if "antibody" in c[1].get_span() or re.search("antibody", " ".join(get_right_tokens(c[1], window=3))):
        return 1
    elif "antibodies" in c[1].get_span() or re.search("antibodies", " ".join(get_right_tokens(c[1], window=3))):
        return 1
    else:
        return 0
def LF_CG_ANTIBODY ( c ) : if "antibody" in c [ 1 ] . get_span ( ) or re . search ( "antibody" , " " . join ( get_right_tokens ( c [ 1 ] , window = 3 ) ) ) : return 1 elif "antibodies" in c [ 1 ] . get_span ( ) or re . search ( "antibodies" , " " . join ( get_right_tokens ( c [ 1 ] , window = 3 ) ) ) : return 1 else : return 0
This label function is designed to look for phrase
antibody.
This label function is designed to look for phrase antibody .
"""
    This label function is designed to look for phrase
    antibody.
    """
c