Research Article
Sentiment Analysis of Image with Text Caption using Deep Learning Techniques
Algorithm 1
Pseudocode for max opinion algorithm.
| | Inputs: Reviews | | | Potential features | | | Adjectives | | | Adjective counts | | | Opinion scores | | | Outputs: Average scores | | | Assumptions: RN, Review Noun scores | | | RNA, Review Noun Adjective counts LC, Left Context | | | LS, Line Scores | | | Pseudocode: | | | Begin | | | For all Reviews | | | Initialize the value of RN = 0 and RNA = 0; For all Line in a Review | | | Initialize the value of LC = 0 and LS = 0; For all Word in Line | | | If Word in Adjective scores | | | Then Score = Adjective score [Word]; If Inversion Words in LC | | | Then Score = −1 Score; Check for Closest Noun [Word] RN [Closest Noun] + = Score; RNA [Closest Noun] + +; | | | LS+ = Score; Update LC; End | | | End | | | Total Score = ∑ RN; Total Adjectives = ∑ RNA; |
|