howardhsu / BERT-for-RRC-ABSA

code for our NAACL 2019 paper: "BERT Post-Training for Review Reading Comprehension and Aspect-based Sentiment Analysis"
Apache License 2.0
455 stars 110 forks source link

Running predictions based on user input. #17

Open programmeddeath1 opened 3 years ago

programmeddeath1 commented 3 years ago

Hi can you give a sample implementation on how to run your model on specific user input from the pre-trained models? Can you guide with the demo pipeline to predict aspect sentiment for a user input in real-time.

pnageshkar commented 3 years ago

I wanted to do some inference (Aspect Extraction and Aspect sentiment classification) using the hugging face transformer model. Can you share some guidelines on how to do that ? On using AutoModel .. the model downloaded looks to be a plain BERT Model. Do we need to an additional layer over it ? Any help will be appreciated!

howardhsu commented 3 years ago

we didn’t release a fine-tuned model on a specific task.

but you can easily tune on using semieval data.

best, hu

On Tue, Feb 23, 2021 at 5:56 AM Prasad Nageshkar notifications@github.com wrote:

I wanted to do some inference (Aspect Extraction and Aspect sentiment classification) using the hugging face transformer model. Can you share some guidelines on how to do that ? On using AutoModel .. the model downloaded looks to be a plain BERT Model. Do we need to an additional layer over it ? Any help will be appreciated!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/howardhsu/BERT-for-RRC-ABSA/issues/17#issuecomment-784219960, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRK37ZXQQJ4I6BDNFZKQQ3TAOXZXANCNFSM4VQLJFVA .

-- Homepage: https://howardhsu.github.io/ Linkedin: https://www.linkedin.com/in/hu-xu-9852403b/ Google Scholar: https://scholar.google.com/citations?user=SaH2yWMAAAAJ Twitter: https://twitter.com/Hu_Hsu Email: activebus@gmail.com

pnageshkar commented 3 years ago

we didn’t release a fine-tuned model on a specific task. but you can easily tune on using semieval data. best, hu On Tue, Feb 23, 2021 at 5:56 AM Prasad Nageshkar @.***> wrote: I wanted to do some inference (Aspect Extraction and Aspect sentiment classification) using the hugging face transformer model. Can you share some guidelines on how to do that ? On using AutoModel .. the model downloaded looks to be a plain BERT Model. Do we need to an additional layer over it ? Any help will be appreciated! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#17 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRK37ZXQQJ4I6BDNFZKQQ3TAOXZXANCNFSM4VQLJFVA . -- Homepage: https://howardhsu.github.io/ Linkedin: https://www.linkedin.com/in/hu-xu-9852403b/ Google Scholar: https://scholar.google.com/citations?user=SaH2yWMAAAAJ Twitter: https://twitter.com/Hu_Hsu Email: activebus@gmail.com

Thank you.