From d64cfce546739f498173ca1bfec5213ce4efc420 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 15 Nov 2019 16:19:01 +0100 Subject: [PATCH] Remove unnecessary newline replace --- spacy/lang/it/punctuation.py | 2 +- spacy/lang/lb/punctuation.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spacy/lang/it/punctuation.py b/spacy/lang/it/punctuation.py index 4439376c8..4fa931fde 100644 --- a/spacy/lang/it/punctuation.py +++ b/spacy/lang/it/punctuation.py @@ -5,7 +5,7 @@ from ..punctuation import TOKENIZER_INFIXES from ..char_classes import ALPHA -ELISION = " ' ’ ".strip().replace(" ", "").replace("\n", "") +ELISION = " ' ’ ".strip().replace(" ", "") _infixes = TOKENIZER_INFIXES + [ diff --git a/spacy/lang/lb/punctuation.py b/spacy/lang/lb/punctuation.py index 7c155c7e5..53df6bcd9 100644 --- a/spacy/lang/lb/punctuation.py +++ b/spacy/lang/lb/punctuation.py @@ -5,8 +5,8 @@ from ..punctuation import TOKENIZER_INFIXES from ..char_classes import ALPHA -ELISION = " ' ’ ".strip().replace(" ", "").replace("\n", "") -HYPHENS = r"- – — ‐ ‑".strip().replace(" ", "").replace("\n", "") +ELISION = " ' ’ ".strip().replace(" ", "") +HYPHENS = r"- – — ‐ ‑".strip().replace(" ", "") _infixes = TOKENIZER_INFIXES + [