disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DG_METHOD_DESC(c):
    """
    This label function is designed to look for phrases 
    that imply a sentence is description an experimental design
    """
    sentence_tokens = " ".join(c.get_parent().words[0:20])
    if re.search(ltp(method_indication), sentence_tokens, flags=re.I):
        return -1
    elif re.search(ltp(method_indication), " ".join(get_between_tokens(c)), flags=re.I):
        return -1
    else:
        return 0

    This label function is designed to look for phrases 
    that imply a sentence is description an experimental design
    
This label function is designed to look for phrases
that imply a sentence is description an experimental design
This label function is designed to look for phrases that imply a sentence is description an experimental design
def LF_DG_METHOD_DESC(c):
    sentence_tokens = " ".join(c.get_parent().words[0:20])
    if re.search(ltp(method_indication), sentence_tokens, flags=re.I):
        return -1
    elif re.search(ltp(method_indication), " ".join(get_between_tokens(c)), flags=re.I):
        return -1
    else:
        return 0
def LF_DG_METHOD_DESC ( c ) : sentence_tokens = " " . join ( c . get_parent ( ) . words [ 0 : 20 ] ) if re . search ( ltp ( method_indication ) , sentence_tokens , flags = re . I ) : return - 1 elif re . search ( ltp ( method_indication ) , " " . join ( get_between_tokens ( c ) ) , flags = re . I ) : return - 1 else : return 0
This label function is designed to look for phrases
that imply a sentence is description an experimental design
This label function is designed to look for phrases that imply a sentence is description an experimental design
"""
    This label function is designed to look for phrases 
    that imply a sentence is description an experimental design
    """
c