songyouwei / ABSA-PyTorch

Aspect Based Sentiment Analysis, PyTorch Implementations. 基于方面的情感分析,使用PyTorch实现。
MIT License
2.02k stars 526 forks source link

Inferencing on Unlabelled data #115

Open gupta-dipanshu opened 4 years ago

gupta-dipanshu commented 4 years ago

Hi,

The current inference script wants me to enter one sentence with keyword and then it does inference on it. I was wondering if there was a way to do inference on unlabelled examples with data in the same format as in the train/test datasets.

GeneZC commented 4 years ago

Hi, this repo concentrates on the situation that the aspect terms are given. If you would like to do it without provided aspect terms, you could refer to end to end aspect based sentiment analysis.

gupta-dipanshu commented 4 years ago

Suppose the we have a file we want to do predictions on. This file is the same format as the .xml files, without, of course, the actual answers.
I actually wrote the script to do multiple predictions. If you want, I can send a pull request.

songyouwei commented 4 years ago

@dgupta95 feel free to make a pull request