argscichat_allennlp/scripts/fact_selection_baselines.py
def punctuation_filtering(line):
    """
    Filters given sentences by removing punctuation
    """

    table = str.maketrans('', '', string.punctuation)
    trans = [w.translate(table) for w in line.split()]

    return ''.join([w for w in trans if w != ''])

    Filters given sentences by removing punctuation
    
Filters given sentences by removing punctuation
Filters given sentences by removing punctuation
def punctuation_filtering(line):
    table = str.maketrans('', '', string.punctuation)
    trans = [w.translate(table) for w in line.split()]
    return ''.join([w for w in trans if w != ''])
def punctuation_filtering ( line ) : table = str . maketrans ( '' , '' , string . punctuation ) trans = [ w . translate ( table ) for w in line . split ( ) ] return '' . join ( [ w for w in trans if w != '' ] )
Filters given sentences by removing punctuation
Filters given sentences by removing punctuation
"""
    Filters given sentences by removing punctuation
    """
line