corrected more annotation mistakes
Browse files- annotations_parser.py +2 -1
- data.jsonl +0 -0
annotations_parser.py
CHANGED
@@ -73,7 +73,8 @@ def preprocess_text(text: str):
|
|
73 |
text = text.strip()
|
74 |
text = re.sub(r'\n+', '\n', text)
|
75 |
text = re.sub(r' +', ' ', text)
|
76 |
-
|
|
|
77 |
return text
|
78 |
|
79 |
|
|
|
73 |
text = text.strip()
|
74 |
text = re.sub(r'\n+', '\n', text)
|
75 |
text = re.sub(r' +', ' ', text)
|
76 |
+
text = text.replace(' \n', '\n')
|
77 |
+
text = text.replace('\n ', '\n')
|
78 |
return text
|
79 |
|
80 |
|
data.jsonl
CHANGED
The diff for this file is too large to render.
See raw diff
|
|