Skip to content
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

TypeError: __init__() should return None, not 'GoogleSearch' #7

Open
icesonata opened this issue Oct 13, 2021 · 0 comments
Open

TypeError: __init__() should return None, not 'GoogleSearch' #7

icesonata opened this issue Oct 13, 2021 · 0 comments

Comments

@icesonata
Copy link

icesonata commented Oct 13, 2021

Hi,
I want to reproduce your experiment using notebook you provide to run on Google Colab. However, when I run the following snippet in the notebook

from gg_search import GoogleSearch
ggsearch = GoogleSearch()
from relevance_ranking import rel_ranking
from reader import Reader
reader = Reader()

I got an error which I haven't figured out how to solve

TypeError: __init__() should return None, not 'GoogleSearch'

Full output detail

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-9-8a1fbb13a075> in <module>()
      1 from gg_search import GoogleSearch
----> 2 ggsearch = GoogleSearch()
      3 from relevance_ranking import rel_ranking
      4 from reader import Reader
      5 reader = Reader()

TypeError: __init__() should return None, not 'GoogleSearch'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant