You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/hamster/prj/study-hrp/script.py", line 192, in <module>
senteval_results = se.eval(senteval_tasks)
File "/home/hamster/prj/study-hrp/src/senteval/senteval/engine.py", line 59, in eval
self.results = {x: self.eval(x) for x in name}
File "/home/hamster/prj/study-hrp/src/senteval/senteval/engine.py", line 59, in <dictcomp>
self.results = {x: self.eval(x) for x in name}
File "/home/hamster/prj/study-hrp/src/senteval/senteval/engine.py", line 121, in eval
self.results = self.evaluation.run(self.params, self.batcher)
File "/home/hamster/prj/study-hrp/src/senteval/senteval/binary.py", line 57, in run
devacc, testacc = clf.run()
File "/home/hamster/prj/study-hrp/src/senteval/senteval/tools/validation.py", line 78, in run
clf = MLP(self.classifier_config, inputdim=self.featdim,
File "/home/hamster/prj/study-hrp/src/senteval/senteval/tools/classifier.py", line 200, in __init__
optim_fn, optim_params = utils.get_optimizer(self.optim)
File "/home/hamster/prj/study-hrp/src/senteval/senteval/utils.py", line 89, in get_optimizer
expected_args = inspect.getargspec(optim_fn.__init__)[0]
File "/home/hamster/miniconda3/envs/gpu-venv-study-hrp/lib/python3.9/inspect.py", line 1122, in getargspec
raise ValueError("Function has keyword-only parameters or annotations"
ValueError: Function has keyword-only parameters or annotations, use inspect.signature() API which can support them
Error message
Quick fix
SentEval/senteval/utils.py
Line 89 in 5d6dc11
The text was updated successfully, but these errors were encountered: