tensorflow / tensorflow/datasets

Cannot access definite_pronoun_resolution dataset

Open
#4,061 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.6k
Forks
1.6k
Avg merge
3h 54m
Merged PRs (30d)
1

Description

I am trying to download the definite_pronoun_resolution dataset but I receive an error while trying to do so.

Here is the line of code I run to access the dataset.
ds = tfds.load("definite_pronoun_resolution",data_dir=DATA_DIR)

It returns this error:
/usr/local/lib/python3.7/dist-packages/tensorflow/python/lib/io/file_io.py in _preread_check(self)
77 "File isn't open for reading")
78 self._read_buf = _pywrap_file_io.BufferedInputStream(
---> 79 self.__name, 1024 * 512)
80
81 def _prewrite_check(self):

TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. tensorflow.python._pywrap_file_io.BufferedInputStream(arg0: str, arg1: int)

Invoked with: PosixGPath('gs://t5-model-data/data/downloads/s3_datas.huggi.co_defin_prono_resol_test.czxzwJeHVmls2Pm3PvVoTquipgwgxrBb9f4ZaynoVWdg.txt'), 524288

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the tfds.load("definite_pronoun_resolution", data_dir=DATA_DIR) call and inspect the reported PosixGPath to BufferedInputStream failure. Trace the dataset download and file-reading path to identify why this dataset cannot be opened, then verify that the dataset loads successfully without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.