diff --git a/senteval/utils.py b/senteval/utils.py index 425f60cd..03c273f5 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__) 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"' % (