khulnasoft commited on
Commit
3b7d5e3
·
verified ·
1 Parent(s): 040dcf9

Update preprocessing.py

Browse files
Files changed (1) hide show
  1. preprocessing.py +1 -1
preprocessing.py CHANGED
@@ -6,7 +6,7 @@ def preprocess_text(text):
6
  text = re.sub(r'\s+', ' ', text)
7
  return text.strip()
8
 
9
- with open("data.txt", "r") as file:
10
  data = file.readlines()
11
 
12
  cleaned_data = [preprocess_text(line) for line in data]
 
6
  text = re.sub(r'\s+', ' ', text)
7
  return text.strip()
8
 
9
+ with open("data.csv", "r") as file:
10
  data = file.readlines()
11
 
12
  cleaned_data = [preprocess_text(line) for line in data]