playground/compound_disease/transfer_learning_experiment/data/label_functions/disease_gene_lf.py
def LF_DG_ALLOWED_DISTANCE(c):
    """
    This LF is designed to make sure that the disease mention
    and the gene mention are in an acceptable distance between 
    each other
    """
    return 0 if any([
        LF_DG_DISTANCE_LONG(c),
        LF_DG_DISTANCE_SHORT(c)
        ]) else 1 if random.random() < 0.65 else 0

    This LF is designed to make sure that the disease mention
    and the gene mention are in an acceptable distance between 
    each other
    
This LF is designed to make sure that the disease mention
and the gene mention are in an acceptable distance between
each other
This LF is designed to make sure that the disease mention and the gene mention are in an acceptable distance between each other
def LF_DG_ALLOWED_DISTANCE(c):
    return 0 if any([
        LF_DG_DISTANCE_LONG(c),
        LF_DG_DISTANCE_SHORT(c)
        ]) else 1 if random.random() < 0.65 else 0
def LF_DG_ALLOWED_DISTANCE ( c ) : return 0 if any ( [ LF_DG_DISTANCE_LONG ( c ) , LF_DG_DISTANCE_SHORT ( c ) ] ) else 1 if random . random ( ) < 0.65 else 0
This LF is designed to make sure that the disease mention
and the gene mention are in an acceptable distance between
each other
This LF is designed to make sure that the disease mention and the gene mention are in an acceptable distance between each other
"""
    This LF is designed to make sure that the disease mention
    and the gene mention are in an acceptable distance between 
    each other
    """
c