From 53edb3aad961e2e2740d31a16561baf1f6bb8cb7 Mon Sep 17 00:00:00 2001 From: dankarpinski Date: Thu, 8 Dec 2016 15:13:15 +1000 Subject: [PATCH] Remove unused PUNCTUATIONS throws sre_constants.error: bad escape \p at position 2 on Python 3.6 --- newspaper/text.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/newspaper/text.py b/newspaper/text.py index d2bbc5af..b5f02330 100644 --- a/newspaper/text.py +++ b/newspaper/text.py @@ -57,9 +57,6 @@ def set_word_count(self, cnt): class StopWords(object): - - PUNCTUATION = re.compile( - "[^\\p{Ll}\\p{Lu}\\p{Lt}\\p{Lo}\\p{Nd}\\p{Pc}\\s]") TRANS_TABLE = str.maketrans('', '') _cached_stop_words = {}