CaRE icon indicating copy to clipboard operation
CaRE copied to clipboard

Variables not defined

Open gkiril opened this issue 3 years ago • 1 comments

Some variables in CaRe_main.py are not defined. For instance, in this code snippet:

if self.args.CN=='LAN':
   self.cn = CaRe(self.args.nfeats, self.args.nfeats)
elif self.args.CN=='GCN':
   self.cn = CaReGCN(self.args.nfeats, self.args.nfeats)
else:
   self.cn = CaReGAT(self.args.nfeats, self.args.nfeats//self.args.nheads, heads=self.args.nheads, dropout=self.args.dropout)

the variables CaRe, CaReGCN and CaReGAT are not defined anywhere in the code, which leads to the exception NameError:

Traceback (most recent call last):
  File "CaRe_main.py", line 237, in <module>
    main(args)
  File "CaRe_main.py", line 114, in main
    model = ConvEParam(args,data.embed_matrix,data.rel2word)
  File "CaRe_main.py", line 23, in __init__
    self.cn = CaRe(self.args.nfeats, self.args.nfeats)
NameError: name 'CaRe' is not defined

How can this be solved? Is it possible that parts of the code are actually not available on this repo?

gkiril avatar Nov 11 '20 15:11 gkiril