uclnlp / jack

Jack the Reader
MIT License
257 stars 82 forks source link

pretrained models - example not working #389

Closed pgroth closed 6 years ago

pgroth commented 6 years ago

I'm trying to just run a simple pretrained model following the instructions on the from the readme

Traceback (most recent call last):
  File "jack_test.py", line 4, in <module>
    fastqa_reader = readers.reader_from_file("./fastqa_reader")
  File "/jackthereader/jack/jack/readers/implementations.py", line 60, in reader_from_file
    shared_resources.load(os.path.join(load_dir, "shared_resources"))
  File "/jackthereader/jack/jack/core/shared_resources.py", line 70, in load
    for f in os.listdir(path):
NotADirectoryError: [Errno 20] Not a directory: './fastqa_reader/shared_resources'

Looking instead the the director. shared_resources is indeed not a directory. There is a shared_resources_vocab directory.

Any thoughts?

dirkweissenborn commented 6 years ago

Seems to be an old model. Can you try downloading the respective model from the following link?

https://www.dropbox.com/sh/vnmc9pq4yrgl1sr/AAD7HVhGdpof2IgIifSZ6PEUa?dl=0

On Wed, Aug 15, 2018, 09:15 Paul Groth notifications@github.com wrote:

I'm trying to just run a simple pretrained model following the instructions on the from the readme

Traceback (most recent call last): File "jack_test.py", line 4, in fastqa_reader = readers.reader_from_file("./fastqa_reader") File "/jackthereader/jack/jack/readers/implementations.py", line 60, in reader_from_file shared_resources.load(os.path.join(load_dir, "shared_resources")) File "/jackthereader/jack/jack/core/shared_resources.py", line 70, in load for f in os.listdir(path): NotADirectoryError: [Errno 20] Not a directory: './fastqa_reader/shared_resources'

Looking instead the the director. shared_resources is indeed not a directory. There is a shared_resources_vocab directory.

Any thoughts?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/uclmr/jack/issues/389, or mute the thread https://github.com/notifications/unsubscribe-auth/ABU6G9naLfLa-B1v1lYmuIVje2UAmq2Mks5uRB8DgaJpZM4V-FTi .

pgroth commented 6 years ago

Thanks that works!