Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

"OSError: Unable to open file" when running bidaf-keras predict from terminal #23

@Zeesy

Description

@Zeesy

I'm getting error messages when I try to predict with using your bidaf-keras example method.

Ubuntu 18.4
python 3.6
tensorflow 1.13.1
bidaf-keras 1.1.0
Keras 2.2.4
h5py 2.10.0

This is a pretty-much out-of-the-box install of bidaf-keras. I manually put bidaf_10.h5 and bidaf_50.h5 inside a manually created bidaf-keras/bidaf/saved_items directory.

When I run
python3 -m bidaf --model_name=bidaf_50.h5 --do_lowercase predict --passage "This is tree." --question "What is this?" --return_char_loc --return_confidence_score

I get the expected results.

When I run
bidaf-keras --model_name=bidaf_50.h5 --do_lowercase predict --passage "This is tree." --question "What is this?" --return_char_loc --return_confidence_score

The program makes it to "Predict", but then I get this error message:
OSError: Unable to open file (unable to open file: name = '/home/parallels/anaconda3/envs/myproject/lib/python3.6/site-packages/bidaf/saved_items/bidaf_50.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Any advice on why/how this is happening would be much appreciated.

Thanks for your cool project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions