-
Notifications
You must be signed in to change notification settings - Fork 313
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 return impact associated to each word per sentence #68
Comments
@bfelbo could you please shed some light on this? |
That would be really appreciated how can we use this feature. I was able to fine tune my dataset. However, when I set
I really appreciate it if you could have a quick look and let me know your thought @bfelbo |
By any chance do you have any idea why this is happening @ryanleary ? |
If it does help I used the youtube dataset that is available in your source code and ran the I did change the I really appreciate it if you could share anything with me that can help to troubleshoot this @ryanleary @bfelbo |
You can find an example of how to compute the emotional impact words at: |
@somul18 Thanks so much for getting back to me. I really appreciate it. When I want to run your script it needs "deepmoji_weights.hdf5" however its not available. Could you please let me know if I need to do anything before running this script? |
@somul18 Please ignore my previous question (I had forgotten I clone the repository again and the weight I had downloaded were gone). Just a quick question and I really appreciate it if you can confirm it: So lets say I pass this example and got this result: I can see that Again thanks so much for sharing your code here. this helped me a lot! |
In my opinion, you should read it as a trigram 'that is frustrating' and bigram.'they hung'. If you want only monogram like 'frustrating' , 'hung', you should implement a filter for stop words before reporting relevant words. Hope this helps. @un-lock-me |
@somul18 Sorry Thanks again for sharing your thought with me. I went ahead and wanted to remove stop words before passing the data to the model however for some weird reason I kept getting Unfortunately the code is in I have tried to read the file with I really appreciate it if you can share with me if you have any thought with me. |
@un-lock-me My suggestion is to use astype |
Wowww I cannot believe this worked! why is that different from the way I treated it? and why is this happening only when I do stop words removal? Thanks a loootttt, very much appreciate it. |
@somul18 really sorry if I am spamming you. I passed my dataset (it has three labels 1.positive 2. negative 3.neutral) to the Then I updated your script
in this line of the code Now I am confused. isn't that the Thanks a lot again, really appreciate your time! |
I think I am lost. I reviewed the code and it seems to me it should not depend of=n the number of labels ( I understand that I am taking so much time from you and I am really sorry. But would you please have a quick look and share with me your thought please @somul18? Thanks so much~ |
@un-lock-me . No sure if you are filtering the stop words before applying the model. My suggestion is to filtering the stop words after applying the model and reporting your results. Hope this helps. Maybe you can post the code so I can review it. |
Thanks a Lott for your response.
Im not sure which script should I share because I used the same script in the repository for the training but the only difference is the dataset with the three labels. |
So this is the only line I added to your script:
And And this is Also, I changed the code a little bit for reading the data as my data was in csv format but I don't think that has anything with this error. But if that helps I can share that as well. |
I trained my on data without removing the stop words and the same error raises. |
Hi @bfelbo , and first of all thanks for sharing your great work.
I have a dataset in which the domain is a little bit different than twitter. I have a couple of questions and would really appreciate it if you could help me with this.
For the start, I fined tuned my dataset and got the accuracy. However, what is important for me is to be able to find out the impact of the words per sentence (The same highlight that you have in the demo)
For example:
"This disease is very dangerous"
Not only I have the label as negative but also it gives the weight associated with "dangerous".
I saw this PR (#8) is that what I need? if so could you please give some information on what I need to do in order to get what I want?
I changed the param attention_weight in attlayer script to TRUE but nothing happened in the output.
Again thanks so much for the great work!
The text was updated successfully, but these errors were encountered: