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
The params_file is a string type, but this error has occurred as follow:
Traceback (most recent call last):
File "/Span-ASTE-main/aste/wrapper.py", line 177, in
model.fit(path_train, path_dev)
File "/Span-ASTE-main/aste/wrapper.py", line 54, in fit
test_data_path=str(self.save_temp_data(path_dev, "dev")),
File "/lib/python3.7/site-packages/allennlp/common/params.py", line 462, in from_file
file_dict = json.loads(evaluate_file(params_file, ext_vars=ext_vars))
TypeError: argument 1 must be str, not PosixPath
By the way, what should I start your code, the "main.py" or "wrapper.py".
The text was updated successfully, but these errors were encountered:
Hi,
I have some questions to ask you.
The params_file is a string type, but this error has occurred as follow:
Traceback (most recent call last):
File "/Span-ASTE-main/aste/wrapper.py", line 177, in
model.fit(path_train, path_dev)
File "/Span-ASTE-main/aste/wrapper.py", line 54, in fit
test_data_path=str(self.save_temp_data(path_dev, "dev")),
File "/lib/python3.7/site-packages/allennlp/common/params.py", line 462, in from_file
file_dict = json.loads(evaluate_file(params_file, ext_vars=ext_vars))
TypeError: argument 1 must be str, not PosixPath
By the way, what should I start your code, the "main.py" or "wrapper.py".
The text was updated successfully, but these errors were encountered: