disease_gene/disease_associates_gene/data/label_functions/disease_gene_lfs.py
def LF_DEBUG(c):
    """
    This label function is for debugging purposes. Feel free to ignore.
    keyword arguments:
    c - The candidate object to be labeled
    """
    print(c)
    print()
    print("Left Tokens")
    print(list(get_left_tokens(c[0], window=5)))
    print()
    print("Right Tokens")
    print(list(get_right_tokens(c[0])))
    print()
    print("Between Tokens")
    print(list(get_between_tokens(c)))
    print() 
    print("Tagged Text")
    print(get_tagged_text(c))
    print(re.search(r'{{B}} .* is a .* {{A}}', get_tagged_text(c)))
    print()
    print("Get between Text")
    print(get_text_between(c))
    print(len(get_text_between(c)))
    print()
    print("Parent Text")
    print(c.get_parent())
    print()
    return 0

    This label function is for debugging purposes. Feel free to ignore.
    keyword arguments:
    c - The candidate object to be labeled
    
This label function is for debugging purposes. Feel free to ignore.
keyword arguments:
c - The candidate object to be labeled
This label function is for debugging purposes . Feel free to ignore . keyword arguments : c - The candidate object to be labeled
def LF_DEBUG(c):
    print(c)
    print()
    print("Left Tokens")
    print(list(get_left_tokens(c[0], window=5)))
    print()
    print("Right Tokens")
    print(list(get_right_tokens(c[0])))
    print()
    print("Between Tokens")
    print(list(get_between_tokens(c)))
    print() 
    print("Tagged Text")
    print(get_tagged_text(c))
    print(re.search(r'{{B}} .* is a .* {{A}}', get_tagged_text(c)))
    print()
    print("Get between Text")
    print(get_text_between(c))
    print(len(get_text_between(c)))
    print()
    print("Parent Text")
    print(c.get_parent())
    print()
    return 0
def LF_DEBUG ( c ) : print ( c ) print ( ) print ( "Left Tokens" ) print ( list ( get_left_tokens ( c [ 0 ] , window = 5 ) ) ) print ( ) print ( "Right Tokens" ) print ( list ( get_right_tokens ( c [ 0 ] ) ) ) print ( ) print ( "Between Tokens" ) print ( list ( get_between_tokens ( c ) ) ) print ( ) print ( "Tagged Text" ) print ( get_tagged_text ( c ) ) print ( re . search ( r'{{B}} .* is a .* {{A}}' , get_tagged_text ( c ) ) ) print ( ) print ( "Get between Text" ) print ( get_text_between ( c ) ) print ( len ( get_text_between ( c ) ) ) print ( ) print ( "Parent Text" ) print ( c . get_parent ( ) ) print ( ) return 0
This label function is for debugging purposes.
This label function is for debugging purposes .
"""
    This label function is for debugging purposes. Feel free to ignore.
    keyword arguments:
    c - The candidate object to be labeled
    """
c