Spaces:
Runtime error
Runtime error
Create new file
Browse files- preprocess.py +8 -0
preprocess.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
def pre_process(content=""):
|
2 |
+
text = content.splitlines()
|
3 |
+
final_text = ""
|
4 |
+
for i in text:
|
5 |
+
if len(i) > 1:
|
6 |
+
final_text += " "+i
|
7 |
+
|
8 |
+
return final_text
|