zqwerty
commited on
Commit
·
8669bbe
1
Parent(s):
1aa5303
- CrossWOZ.py +5 -0
CrossWOZ.py
CHANGED
@@ -246,6 +246,11 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
|
|
246 |
""" Yields examples as (key, example) tuples. """
|
247 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
248 |
# The `key` is here for legacy reason (tfds) and is not important in itself.
|
|
|
|
|
|
|
|
|
|
|
249 |
def convert_goal(raw_goal):
|
250 |
goal = []
|
251 |
for subgoal in raw_goal:
|
|
|
246 |
""" Yields examples as (key, example) tuples. """
|
247 |
# This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
248 |
# The `key` is here for legacy reason (tfds) and is not important in itself.
|
249 |
+
print(filepath)
|
250 |
+
print(os.path.dirname(filepath))
|
251 |
+
print(os.listdir(os.path.dirname(filepath)))
|
252 |
+
print(os.path.curdir)
|
253 |
+
print(os.listdir(os.path.curdir))
|
254 |
def convert_goal(raw_goal):
|
255 |
goal = []
|
256 |
for subgoal in raw_goal:
|