playground/compound_disease/transfer_learning_experiment/data/label_functions/compound_disease_lf.py
def LF_CD_IN_SERIES(c):
    """
    This label function is designed to look for a mention being caught
    in a series of other genes or compounds
    """
    if len(re.findall(r',', get_tagged_text(c))) >= 2:
        if re.search(', and', get_tagged_text(c)):
            return -1
    if re.search(r"\(a\)|\(b\)|\(c\)", get_tagged_text(c)):
        return -1
    return 0

    This label function is designed to look for a mention being caught
    in a series of other genes or compounds
    
This label function is designed to look for a mention being caught
in a series of other genes or compounds
This label function is designed to look for a mention being caught in a series of other genes or compounds
def LF_CD_IN_SERIES(c):
    if len(re.findall(r',', get_tagged_text(c))) >= 2:
        if re.search(', and', get_tagged_text(c)):
            return -1
    if re.search(r"\(a\)|\(b\)|\(c\)", get_tagged_text(c)):
        return -1
    return 0
def LF_CD_IN_SERIES ( c ) : if len ( re . findall ( r',' , get_tagged_text ( c ) ) ) >= 2 : if re . search ( ', and' , get_tagged_text ( c ) ) : return - 1 if re . search ( r"\(a\)|\(b\)|\(c\)" , get_tagged_text ( c ) ) : return - 1 return 0
This label function is designed to look for a mention being caught
in a series of other genes or compounds
This label function is designed to look for a mention being caught in a series of other genes or compounds
"""
    This label function is designed to look for a mention being caught
    in a series of other genes or compounds
    """
c