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

AttributeError: 'Namespace' object has no attribute 'model_variant' #4

Open
Threekiii opened this issue Nov 20, 2020 · 1 comment
Open

Comments

@Threekiii
Copy link

Traceback (most recent call last):
File "CaRe_main.py", line 211, in
main(args)
File "CaRe_main.py", line 86, in main
data = load_data(args)
File "/root/CaRE/CaRe(B=TransE)/data.py", line 10, in init
self.fetch_data()
File "/root/CaRE/CaRe(B=TransE)/data.py", line 126, in fetch_data
self.get_edges(self.canon_clusts)
File "/root/CaRE/CaRe(B=TransE)/data.py", line 105, in get_edges
if self.args.model_variant=='CaRe' and len(ent_clusts[ent])==1:
AttributeError: 'Namespace' object has no attribute 'model_variant'

@anindyasdas
Copy link

It seemed type error to me! there is no argument as model_variant!
I did the following:

#if self.args.model_variant=='CaRe' and len(ent_clusts[ent])==1:
if len(ent_clusts[ent])==1:

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

2 participants