-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NotImplementedError: Open utils.py and fill with your code. In case of Google Colab, download(https://github.com/hse-aml/natural-language-processing/blob/master/project/utils.py), edit locally and upload using '> arrow on the left edge' -> Files -> UPLOAD #27
Comments
Try running |
And you also need to restart the kernel to import the new version of the file! |
That means that you haven't implemented https://github.com/hse-aml/natural-language-processing/blob/master/project/utils.py#L54 and https://github.com/hse-aml/natural-language-processing/blob/master/project/utils.py#L70 |
this is my utils.py file i have implemented what is said |
Then it's a Google Colab issue, try to run locally |
still the problem not solved i tried running it locally and getting same error what i got in google colab. What exactly we have to do with word_embeddings.tsv file because i don't have this file. Should we download it from some where or code will automatically download it. |
please explain me what we have to do in Part-2 Ranking question with embeddings? |
having the same error on both colab and on the local docker container |
Same error. |
Was stuck here for a while. Eventually i just copied the load_embeddings code into the cell. |
Anyone could solve that problem? I am stuck there right now |
I directly copy the function of load_embeddings and question_to_vec to the .ipynb to work around this issue. |
can you please drop the code snippet for load_embeddings and question_to_vec |
I'm also facing the same problem,stuck in it for a while! |
Facing the Same Issue. Anyone got any solution to it |
NotImplementedError Traceback (most recent call last) /content/utils.py in load_embeddings(embeddings_path) NotImplementedError: Open utils.py and fill with your code. In case of Google Colab, download(https://github.com/hse-aml/natural-language-processing/blob/master/project/utils.py), edit locally and upload using '> arrow on the left edge' -> Files -> UPLOAD can someone solve this |
ERROR:root:Internal Python error in the inspect module. File "", line unknown |
whats wrong with mine I followed all the steps but getting the above errors 😭😭😭😭😭😭😭😭😭 |
@SanjanaNaidu |
thank you I will try
…On Sat, 30 May 2020 at 00:26, Nikhil Rana ***@***.***> wrote:
@SanjanaNaidu <https://github.com/SanjanaNaidu>
1.> First try to restart the kernel. If it does not work then try the
second way.
2.>when you update the script file and upload it in your project
directory. Give the file another name like utils-2.py. delete the previous
util.py file and rename the uploaded utils-2.py file as the same name
utils.py.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIFN3QTZCCRY76DXNPA22BLRUAAMXANCNFSM4FZPFNSA>
.
|
NotImplementedError Traceback (most recent call last)
<ipython-input-28-6dca9a9c1fa7> <https://localhost:8080/#> in <module>()
----> 1 starspace_embeddings, embeddings_dim =
load_embeddings('data/starspace_embedding.tsv')
/content/utils.py <https://localhost:8080/#> in
load_embeddings(embeddings_path) 53 dim=len(line)-1 54
return embeddings,dim
---> 55 56 def question_to_vec(question, embeddings, dim): 57
"""Transforms a string to an embedding by averaging word
embeddings."""
NotImplementedError: Open utils.py and fill with your code. In case of
Google Colab, download(https://github.com/hse-aml/natural-language-processing/blob/master/project/utils.py),
edit locally and upload using '> arrow on the left edge' -> Files ->
UPLOAD
On Sat, 30 May 2020 at 16:40, Sanjana Naidu Gedela <notifications@github.com>
wrote:
… thank you I will try
On Sat, 30 May 2020 at 00:26, Nikhil Rana ***@***.***>
wrote:
> @SanjanaNaidu <https://github.com/SanjanaNaidu>
> 1.> First try to restart the kernel. If it does not work then try the
> second way.
> 2.>when you update the script file and upload it in your project
> directory. Give the file another name like utils-2.py. delete the
previous
> util.py file and rename the uploaded utils-2.py file as the same name
> utils.py.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#27 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AIFN3QTZCCRY76DXNPA22BLRUAAMXANCNFSM4FZPFNSA
>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIFN3QW53QYO67F44H43BS3RUDSSTANCNFSM4FZPFNSA>
.
|
same error again and again plss help me out
On Mon, 1 Jun 2020 at 13:12, Sanjana Naidu <sanjanavenkat1998@gmail.com>
wrote:
… NotImplementedError Traceback (most recent call last)
<ipython-input-28-6dca9a9c1fa7> <https://localhost:8080/#> in <module>()
----> 1 starspace_embeddings, embeddings_dim = load_embeddings('data/starspace_embedding.tsv')
/content/utils.py <https://localhost:8080/#> in load_embeddings(embeddings_path) 53 dim=len(line)-1 54 return embeddings,dim
---> 55 56 def question_to_vec(question, embeddings, dim): 57 """Transforms a string to an embedding by averaging word embeddings."""
NotImplementedError: Open utils.py and fill with your code. In case of Google Colab, download(https://github.com/hse-aml/natural-language-processing/blob/master/project/utils.py), edit locally and upload using '> arrow on the left edge' -> Files -> UPLOAD
On Sat, 30 May 2020 at 16:40, Sanjana Naidu Gedela <
***@***.***> wrote:
> thank you I will try
>
> On Sat, 30 May 2020 at 00:26, Nikhil Rana ***@***.***>
> wrote:
>
> > @SanjanaNaidu <https://github.com/SanjanaNaidu>
> > 1.> First try to restart the kernel. If it does not work then try the
> > second way.
> > 2.>when you update the script file and upload it in your project
> > directory. Give the file another name like utils-2.py. delete the
> previous
> > util.py file and rename the uploaded utils-2.py file as the same name
> > utils.py.
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
> #27 (comment)
> >,
> > or unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/AIFN3QTZCCRY76DXNPA22BLRUAAMXANCNFSM4FZPFNSA
> >
> > .
> >
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#27 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIFN3QW53QYO67F44H43BS3RUDSSTANCNFSM4FZPFNSA>
> .
>
|
There are two ways:
|
Here is a way to not have to restart runtime:
and rerun it. That's all ! |
No description provided.
The text was updated successfully, but these errors were encountered: