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

Download ABSA Model Files #51

Open
ryandgoldenberg1 opened this issue Oct 23, 2020 · 1 comment
Open

Download ABSA Model Files #51

ryandgoldenberg1 opened this issue Oct 23, 2020 · 1 comment

Comments

@ryandgoldenberg1
Copy link

How can I download the model files for the trained aspect based sentiment classification? Following along with the quick tour in the README (link), I get the following error

Python 3.8.5 (default, Jul 28 2020, 12:59:40) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from senta import Senta
>>> my_senta = Senta()
>>> use_cuda=False
>>> my_senta.init_model(model_class="roberta_skep_large_en", task="aspect_sentiment_classify", use_cuda=use_cuda)
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/home/ryan/workspace/misc/senta/Senta/senta/train.py", line 205, in init_model
   param_dict = from_file(data_params_path)
 File "/home/ryan/workspace/misc/senta/Senta/senta/utils/params.py", line 47, in from_file
   file_dict = json.loads(evaluate_file(filename), strict=False)
 File "/home/ryan/workspace/misc/senta/Senta/senta/utils/params.py", line 42, in evaluate_file
   with open(filename, "r") as evaluation_file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/ryan/workspace/misc/senta/Senta/senta/model_files/roberta_skep_large_en.absa_laptops.cls/save_inference_model/inference_step_74/infer_data_params.json'

I installed the package using the "From source" instructions here. My system is Ubuntu 20.04. Please let me know if you need any other info to help fix this.

@JoJoJun
Copy link

JoJoJun commented Apr 16, 2021

me too! I get this problem too! Have you found any way to solve it ?

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