Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error for Posixpath #37

Open
Chen-PengF opened this issue Nov 29, 2022 · 1 comment
Open

An error for Posixpath #37

Chen-PengF opened this issue Nov 29, 2022 · 1 comment

Comments

@Chen-PengF
Copy link

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".

@chiayewken
Copy link
Owner

Hi, please use wrapper.py, I have updated the colab demo and demo.ipynb to the latest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants