oliverguhr
commited on
Commit
·
d278b26
1
Parent(s):
0c6db60
fixed broken line break code
Browse files
README.md
CHANGED
@@ -70,8 +70,7 @@ class SentimentModel():
|
|
70 |
return text.replace("0"," null").replace("1"," eins").replace("2"," zwei").replace("3"," drei").replace("4"," vier").replace("5"," fünf").replace("6"," sechs").replace("7"," sieben").replace("8"," acht").replace("9"," neun")
|
71 |
|
72 |
def clean_text(self,text: str)-> str:
|
73 |
-
text = text.replace("\
|
74 |
-
", " ")
|
75 |
text = self.clean_http_urls.sub('',text)
|
76 |
text = self.clean_at_mentions.sub('',text)
|
77 |
text = self.replace_numbers(text)
|
|
|
70 |
return text.replace("0"," null").replace("1"," eins").replace("2"," zwei").replace("3"," drei").replace("4"," vier").replace("5"," fünf").replace("6"," sechs").replace("7"," sieben").replace("8"," acht").replace("9"," neun")
|
71 |
|
72 |
def clean_text(self,text: str)-> str:
|
73 |
+
text = text.replace("\n", " ")
|
|
|
74 |
text = self.clean_http_urls.sub('',text)
|
75 |
text = self.clean_at_mentions.sub('',text)
|
76 |
text = self.replace_numbers(text)
|