disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DaG_DISEASE_SAMPLE(c):
    """
    This LF is designed to look for key phrases that indicate a sentence talking about tissue samples
    ex. cell line etc
    """
    left_window = " ".join(get_left_tokens(c[0], window=10)) + " ".join(get_left_tokens(c[1], window=10))
    right_window = " ".join(get_right_tokens(c[0], window=10)) + " ".join(get_right_tokens(c[1], window=10))
    
    if re.search(ltp(disease_sample_indicators), left_window, flags=re.I):
        return 1
    elif re.search(ltp(disease_sample_indicators), right_window, flags=re.I):
        return 1
    else:
        return 0

    This LF is designed to look for key phrases that indicate a sentence talking about tissue samples
    ex. cell line etc
    
This LF is designed to look for key phrases that indicate a sentence talking about tissue samples
ex. cell line etc
This LF is designed to look for key phrases that indicate a sentence talking about tissue samples ex . cell line etc
def LF_DaG_DISEASE_SAMPLE(c):
    left_window = " ".join(get_left_tokens(c[0], window=10)) + " ".join(get_left_tokens(c[1], window=10))
    right_window = " ".join(get_right_tokens(c[0], window=10)) + " ".join(get_right_tokens(c[1], window=10))
    if re.search(ltp(disease_sample_indicators), left_window, flags=re.I):
        return 1
    elif re.search(ltp(disease_sample_indicators), right_window, flags=re.I):
        return 1
    else:
        return 0
def LF_DaG_DISEASE_SAMPLE ( c ) : left_window = " " . join ( get_left_tokens ( c [ 0 ] , window = 10 ) ) + " " . join ( get_left_tokens ( c [ 1 ] , window = 10 ) ) right_window = " " . join ( get_right_tokens ( c [ 0 ] , window = 10 ) ) + " " . join ( get_right_tokens ( c [ 1 ] , window = 10 ) ) if re . search ( ltp ( disease_sample_indicators ) , left_window , flags = re . I ) : return 1 elif re . search ( ltp ( disease_sample_indicators ) , right_window , flags = re . I ) : return 1 else : return 0
This LF is designed to look for key phrases that indicate a sentence talking about tissue samples
ex.
This LF is designed to look for key phrases that indicate a sentence talking about tissue samples ex .
"""
    This LF is designed to look for key phrases that indicate a sentence talking about tissue samples
    ex. cell line etc
    """
c