disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DG_IS_BIOMARKER(c):
    """
    This label function examines a sentences to determine of a sentence
    is talking about a biomarker. (A biomarker leads towards D-G assocation
    c - The candidate obejct being passed in
    """
    if LF_DG_METHOD_DESC(c) or LF_DG_TITLE(c):
        return 0
    elif re.search(ltp(biomarker_indicators), " ".join(get_left_tokens(c[1], window=10)), flags=re.I):
        return 1
    elif re.search(ltp(biomarker_indicators), " ".join(get_right_tokens(c[1], window=10)), flags=re.I):
        return 1
    else:
        return 0

    This label function examines a sentences to determine of a sentence
    is talking about a biomarker. (A biomarker leads towards D-G assocation
    c - The candidate obejct being passed in
    
This label function examines a sentences to determine of a sentence
is talking about a biomarker. (A biomarker leads towards D-G assocation
c - The candidate obejct being passed in
This label function examines a sentences to determine of a sentence is talking about a biomarker . ( A biomarker leads towards D - G assocation c - The candidate obejct being passed in
def LF_DG_IS_BIOMARKER(c):
    if LF_DG_METHOD_DESC(c) or LF_DG_TITLE(c):
        return 0
    elif re.search(ltp(biomarker_indicators), " ".join(get_left_tokens(c[1], window=10)), flags=re.I):
        return 1
    elif re.search(ltp(biomarker_indicators), " ".join(get_right_tokens(c[1], window=10)), flags=re.I):
        return 1
    else:
        return 0
def LF_DG_IS_BIOMARKER ( c ) : if LF_DG_METHOD_DESC ( c ) or LF_DG_TITLE ( c ) : return 0 elif re . search ( ltp ( biomarker_indicators ) , " " . join ( get_left_tokens ( c [ 1 ] , window = 10 ) ) , flags = re . I ) : return 1 elif re . search ( ltp ( biomarker_indicators ) , " " . join ( get_right_tokens ( c [ 1 ] , window = 10 ) ) , flags = re . I ) : return 1 else : return 0
This label function examines a sentences to determine of a sentence
is talking about a biomarker.
This label function examines a sentences to determine of a sentence is talking about a biomarker .
"""
    This label function examines a sentences to determine of a sentence
    is talking about a biomarker. (A biomarker leads towards D-G assocation
    c - The candidate obejct being passed in
    """
c