Commit 3def65b7 authored by jyong's avatar jyong

ascii filter

parent 2ede27d3
......@@ -531,7 +531,8 @@ class IndexingRunner:
def filter_string(self, text):
text = re.sub(r'<\|', '<', text)
text = re.sub(r'\|>', '>', text)
text = re.sub(r'[\x00-\x08\x0B\x0C\x0E-\x1F\x7F\x80-\xFF]', '', text)
text = re.sub(r'[\x00-\x08\x0B\x0C\x0E-\x1F\x7F\xA0-\xFF]', '', text)
return text
def _get_splitter(self, processing_rule: DatasetProcessRule,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment