-
Notifications
You must be signed in to change notification settings - Fork 27
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
sent_len, sent_num #8
Comments
I believe it is related to the dataset. The |
Hi @yafangy |
Hi @yafangy Kindly help me with issue above. I am eagerly waiting to know the process. |
Hello sir @yafangy |
This code is for aspect extraction and the result is shown in https://github.com/yafangy/Review_aspect_extraction/blob/master/image3_v2.png. This polarity you found is in the training dataset but not in the scope of this current code. You can either add another sentiment analysis for the target word or the following. For the current approach I posted, you can try to simply increase the output from 0/1 (normal word vs. aspect word), to a 4-class multi-category (normal word, positive/neutral/negative aspect word) and add the polarity into consideration when you generate labels. Let me know if it works for you. |
Hi @yafangy Great work. Thanks for sharing the code.
I was preparing datasets for laptop. I need to know how did you decide sent_len and sent_num in case of restaurant?
sent_len, sent_num = 83, 2000
and
sent_len, sent_num = 83, 676
While using the same values for laptop datasets, I got an error telling:-
IndexError: index 1900 is out of bounds for axis 0 with size 2000
Please guide me through this.
The text was updated successfully, but these errors were encountered: