playground/epilepsy/scripts/2.epilepsy-labeler.py
def LF_neg_words(c):
    """
    If it mentions serum or intervention before or after gene then negative 
    """
    if len(neg_words.intersection(get_left_tokens(c[1],window=3))) > 0:
        return -1
    if len(neg_words.intersection(get_right_tokens(c[1],window=3))) > 0:
        return -1
    return 0

    If it mentions serum or intervention before or after gene then negative 
    
If it mentions serum or intervention before or after gene then negative
If it mentions serum or intervention before or after gene then negative
def LF_neg_words(c):
    if len(neg_words.intersection(get_left_tokens(c[1],window=3))) > 0:
        return -1
    if len(neg_words.intersection(get_right_tokens(c[1],window=3))) > 0:
        return -1
    return 0
def LF_neg_words ( c ) : if len ( neg_words . intersection ( get_left_tokens ( c [ 1 ] , window = 3 ) ) ) > 0 : return - 1 if len ( neg_words . intersection ( get_right_tokens ( c [ 1 ] , window = 3 ) ) ) > 0 : return - 1 return 0
If it mentions serum or intervention before or after gene then negative
If it mentions serum or intervention before or after gene then negative
"""
    If it mentions serum or intervention before or after gene then negative 
    """
c