hub icon indicating copy to clipboard operation
hub copied to clipboard

LaREQA/mBERT_X_Y/1/uncompressed does not exist

Open DesiKeki opened this issue 6 years ago • 4 comments

Dear Team,

I am trying to use LAReQA/mBERT_X_Y as per the given example at https://tfhub.dev/google/LAReQA/mBERT_X_Y/1.

For the following code:

import tensorflow.compat.v2 as tf
import tensorflow_hub as hub
import numpy as np

loaded = hub.load("https://tfhub.dev/google/LaREQA/mBERT_X_Y/1")

I get following error:

----> 5 loaded = hub.load("https://tfhub.dev/google/LaREQA/mBERT_X_Y/1")
OSError: gs://tfhub-modules/google/LaREQA/mBERT_X_Y/1/uncompressed does not exist.

Please let me know what I might be missing here.

DesiKeki avatar Nov 29 '20 16:11 DesiKeki

The model name is incorrectly capitalized (LAReQA vs. LaREQA), I will go ahead and update the model documentation, but the following code snippet should work correctly

!pip install tensorflow-text

import tensorflow.compat.v2 as tf
import tensorflow_hub as hub
import numpy as np
import tensorflow_text

loaded = hub.load("https://tfhub.dev/google/LAReQA/mBERT_X_Y/1")

kempy avatar Nov 30 '20 07:11 kempy

Thanks @kempy It was helpful.

Can you also please let me know or point me to an example of how to make use of this LAReQA model to retrieve scores in terms of start_logits and end_logits? I wish to use this model for cross lingual QA without any fine-tuning as of now.

DesiKeki avatar Dec 01 '20 01:12 DesiKeki

@DesiKeki, As your original issue has been resolved, please raise a new issue for other problems. Thanks!

rmothukuru avatar Dec 07 '20 13:12 rmothukuru

Sure @rmothukuru Closing this issue.

DesiKeki avatar Dec 08 '20 04:12 DesiKeki