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

How to use Bert_Review for E2E ABSA? #26

Open
RalphSchuurman opened this issue Mar 9, 2022 · 2 comments
Open

How to use Bert_Review for E2E ABSA? #26

RalphSchuurman opened this issue Mar 9, 2022 · 2 comments

Comments

@RalphSchuurman
Copy link

Hello @howardhsu ,

This is a very nice repo. I am interested in running Bert_Review for E2E ABSA, which is possible according to the transformers.md file.

I can load the post-training weights using Transformers by running this code
`import torch
from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("activebus/BERT_Review")
model = AutoModel.from_pretrained("activebus/BERT_Review")`

but how would I then use BERT_Review for E2E ABSA? For example a text.txt file with the example sentence: 'The food was good' to obtain 'food' as an aspect and 'POS' as a sentiment.

@AndrewBai-Marketing
Copy link

Did you figure this out?

@howardhsu
Copy link
Owner

howardhsu commented Nov 30, 2022 via email

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

3 participants