Spaces:
Runtime error
Runtime error
Zwea Htet
commited on
Commit
•
174d40b
1
Parent(s):
9f10a81
fixed import error
Browse files- data/prepare.py +1 -1
data/prepare.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
import numpy as np
|
3 |
import pandas as pd
|
4 |
|
5 |
-
df = pd.read_json(r"
|
6 |
df = df.replace(to_replace="", value=np.nan).dropna(axis=0) # remove null values
|
7 |
df['paragraphText'] = df['paragraphText'].str.replace("OLD SECTION.*", "", regex=True) # remove any dirty words
|
8 |
# df['paragraphText'] = df['paragraphText'].str.replace("[a-zA-z]\d\w+", ". ", regex=True)
|
|
|
2 |
import numpy as np
|
3 |
import pandas as pd
|
4 |
|
5 |
+
df = pd.read_json(r"data/regItems.json")
|
6 |
df = df.replace(to_replace="", value=np.nan).dropna(axis=0) # remove null values
|
7 |
df['paragraphText'] = df['paragraphText'].str.replace("OLD SECTION.*", "", regex=True) # remove any dirty words
|
8 |
# df['paragraphText'] = df['paragraphText'].str.replace("[a-zA-z]\d\w+", ". ", regex=True)
|