playground/compound_disease/transfer_learning_experiment/data/label_functions/disease_gene_lf.py
def LF_DG_RISK(c):
    """
    This label function searched for sentences that mention a patient being at risk for disease or 
    a signal implying increased/decreased risk of disease.
    """
    return 1 if re.search(r"risk (of|for)", get_tagged_text(c), flags=re.I) else 0

    This label function searched for sentences that mention a patient being at risk for disease or 
    a signal implying increased/decreased risk of disease.
    
This label function searched for sentences that mention a patient being at risk for disease or
a signal implying increased/decreased risk of disease.
This label function searched for sentences that mention a patient being at risk for disease or a signal implying increased / decreased risk of disease .
def LF_DG_RISK(c):
    return 1 if re.search(r"risk (of|for)", get_tagged_text(c), flags=re.I) else 0
def LF_DG_RISK ( c ) : return 1 if re . search ( r"risk (of|for)" , get_tagged_text ( c ) , flags = re . I ) else 0
This label function searched for sentences that mention a patient being at risk for disease or
a signal implying increased/decreased risk of disease.
This label function searched for sentences that mention a patient being at risk for disease or a signal implying increased / decreased risk of disease .
"""
    This label function searched for sentences that mention a patient being at risk for disease or 
    a signal implying increased/decreased risk of disease.
    """
c