playground/epilepsy/scripts/2.epilepsy-labeler.py
def LF_disease_context(c):
    """
    If mentions cases of or patients with -> disease
    """
    tokens = "".join(get_left_tokens(c[1],window=3))
    for context in disease_context:
        if context in tokens:
            return -1
    return 0

    If mentions cases of or patients with -> disease
    
If mentions cases of or patients with -> disease
If mentions cases of or patients with - > disease
def LF_disease_context(c):
    tokens = "".join(get_left_tokens(c[1],window=3))
    for context in disease_context:
        if context in tokens:
            return -1
    return 0
def LF_disease_context ( c ) : tokens = "" . join ( get_left_tokens ( c [ 1 ] , window = 3 ) ) for context in disease_context : if context in tokens : return - 1 return 0
If mentions cases of or patients with -> disease
If mentions cases of or patients with - > disease
"""
    If mentions cases of or patients with -> disease
    """
c