playground/compound_disease/transfer_learning_experiment/data/label_functions/compound_disease_lf.py
def LF_CD_NO_VERB(c):
    """
    This label function is designed to fire if a given
    sentence doesn't contain a verb. Helps cut out some of the titles
    hidden in Pubtator abstracts
    """
    if len([x for x in  nltk.pos_tag(word_tokenize(c.get_parent().text)) if "VB" in x[1]]) == 0:
        if "correlates with" in c.get_parent().text:
            return 0
        return -1
    return 0

    This label function is designed to fire if a given
    sentence doesn't contain a verb. Helps cut out some of the titles
    hidden in Pubtator abstracts
    
This label function is designed to fire if a given
sentence doesn't contain a verb. Helps cut out some of the titles
hidden in Pubtator abstracts
This label function is designed to fire if a given sentence doesn ' t contain a verb . Helps cut out some of the titles hidden in Pubtator abstracts
def LF_CD_NO_VERB(c):
    if len([x for x in  nltk.pos_tag(word_tokenize(c.get_parent().text)) if "VB" in x[1]]) == 0:
        if "correlates with" in c.get_parent().text:
            return 0
        return -1
    return 0
def LF_CD_NO_VERB ( c ) : if len ( [ x for x in nltk . pos_tag ( word_tokenize ( c . get_parent ( ) . text ) ) if "VB" in x [ 1 ] ] ) == 0 : if "correlates with" in c . get_parent ( ) . text : return 0 return - 1 return 0
This label function is designed to fire if a given
sentence doesn't contain a verb.
This label function is designed to fire if a given sentence doesn ' t contain a verb .
"""
    This label function is designed to fire if a given
    sentence doesn't contain a verb. Helps cut out some of the titles
    hidden in Pubtator abstracts
    """
c