From 9ba1ee3fe8fbda36c26712d52b56d2ce5145c771 Mon Sep 17 00:00:00 2001 From: Stefan Wijnja Date: Mon, 18 Apr 2022 18:57:45 +0000 Subject: [PATCH] Update utils.py to be compatible with 3.9 and on --- senteval/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/senteval/utils.py b/senteval/utils.py index 425f60cd..03609956 100644 --- a/senteval/utils.py +++ b/senteval/utils.py @@ -86,7 +86,7 @@ def get_optimizer(s): raise Exception('Unknown optimization method: "%s"' % method) # check that we give good parameters to the optimizer - expected_args = inspect.getargspec(optim_fn.__init__)[0] + expected_args = inspect.getfullargspec(optim_fn.__init__)[0] assert expected_args[:2] == ['self', 'params'] if not all(k in expected_args[2:] for k in optim_params.keys()): raise Exception('Unexpected parameters: expected "%s", got "%s"' % (