Spaces:
Runtime error
Runtime error
Anon Anon
commited on
Commit
·
b57207a
1
Parent(s):
7584e0f
fix path
Browse files- winogender_sentences.py +3 -1
winogender_sentences.py
CHANGED
@@ -58,7 +58,9 @@ def generate(occupation, other_participant, sentence, second_ref="", context=Non
|
|
58 |
|
59 |
|
60 |
def get_sentences():
|
61 |
-
|
|
|
|
|
62 |
Path(abs_path).mkdir(parents=True, exist_ok=True)
|
63 |
# %%
|
64 |
|
|
|
58 |
|
59 |
|
60 |
def get_sentences():
|
61 |
+
script_dir = os.path.dirname(__file__)
|
62 |
+
rel_path = "winogender_schema"
|
63 |
+
abs_path = os.path.join(script_dir, rel_path)
|
64 |
Path(abs_path).mkdir(parents=True, exist_ok=True)
|
65 |
# %%
|
66 |
|