argscichat_allennlp/argscichat_baselines/dataset_reader.py
def _punctuation_filtering(line):
        """
        Filters given sentences by removing punctuation
        """
        line = line.lower().strip()

        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):
        line = line.lower().strip()
        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 ) : line = line . lower ( ) . strip ( ) 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