MotzWanted
commited on
Commit
·
bac6bc4
1
Parent(s):
7bf19f4
Update medwiki.py
Browse files- medwiki.py +1 -1
medwiki.py
CHANGED
@@ -100,7 +100,7 @@ class MedWikipediaCorpusGenerator(datasets.GeneratorBasedBuilder):
|
|
100 |
]
|
101 |
|
102 |
@staticmethod
|
103 |
-
_clean_text(text)-> str:
|
104 |
text = text.lower()
|
105 |
# remove "\u" followed by 4 characters
|
106 |
text = re.sub(r"\\u[0-9a-fA-F]{4}", "", text)
|
|
|
100 |
]
|
101 |
|
102 |
@staticmethod
|
103 |
+
def _clean_text(text)-> str:
|
104 |
text = text.lower()
|
105 |
# remove "\u" followed by 4 characters
|
106 |
text = re.sub(r"\\u[0-9a-fA-F]{4}", "", text)
|