Changes between Initial Version and Version 1 of en/NlpInPracticeCourse/2021/OpinionSentiment


Ignore:
Timestamp:
Aug 30, 2022, 10:40:01 AM (20 months ago)
Author:
Ales Horak
Comment:

copied from private/NlpInPracticeCourse/OpinionSentiment

Legend:

Unmodified
Added
Removed
Modified
  • en/NlpInPracticeCourse/2021/OpinionSentiment

    v1 v1  
     1= Opinion mining, sentiment analysis =
     2
     3[[https://is.muni.cz/auth/predmet/fi/ia161|IA161]] [[en/NlpInPracticeCourse|NLP in Practice Course]], Course Guarantee: Aleš Horák
     4
     5Prepared by: Zuzana Nevěřilová
     6
     7== State of the Art ==
     8
     9Sentiment analysis can be seen as a text categorization task (i.e. is the writer's opinion on a discussed topic X or Y?). It consists of detection of the topic (which can be easy in focused reviews) and detection of the sentiment (which is generally difficult). Opinions are sometimes expressed in a very subtle manner (e.g. the sentence ''How could anyone sit through this movie?'' contains no negative word) ![3]. The sentiments are usually simply classified by their polarity (positive, negative) but they can be recognized more in depth (e.g. strongly negative). Recognized opinions are also subject to summarization (e.g. how many people like this new iPhone design?).
     10
     11=== References ===
     12
     13 1. Bing Liu. Sentiment Analysis and Opinion Mining. Synthesis Lectures on Human Language Technologies. 2012, 5(1): 1-167. DOI: 10.2200/s00416ed1v01y201204hlt016. Draft version available at [[http://www.cs.uic.edu/~liub/FBS/SentimentAnalysis-and-OpinionMining.pdf]]
     14 1. Bing Liu. Sentiment Analysis Tutorial. AAAI-2011, August 8, 2011. Slides available at [[http://www.cs.uic.edu/~liub/FBS/Sentiment-Analysis-tutorial-AAAI-2011.pdf]]
     15 1.  Bo Pang, Lillian Lee, and Shivakumar Vaithyanathan, Thumbs up? Sentiment Classification using Machine Learning Techniques, Proceedings of EMNLP 2002. [[http://www.cs.cornell.edu/home/llee/papers/sentiment.pdf]]
     16 1. Liviu P. Dinu and Iulia Iuga. The Naive Bayes classifier in opinion mining: In search of the best feature set. In Alexander Gelbukh, editor, Computational Linguistics and Intelligent Text Processing, volume 7181 of Lecture Notes in Computer Science, pages 556–567. Springer Berlin Heidelberg, 2012.
     17 1. Zhang, L. J., Wang, S., and Liu, B. (2018). Deep learning for sentiment analysis:  A survey. Wiley Interdiscip. Rev. Data Min. Knowl. Discov., 8.
     18
     19
     20Bing Liu's References: http://www.cs.uic.edu/~liub/FBS/AAAI-2011-tutorial-references.pdf
     21
     22== Practical Session ==
     23
     24=== Technical Requirements ===
     25
     26The task will proceed using Python notebook run in web browser in the [https://colab.research.google.com/ Google Colaboratory] environment
     27with the MU G-Suite disk access.
     28
     29In case of running the codes in a local environment, the requirements are
     30Python 3, jupyter notebook, modules NLTK, scipy, numpy, pandas, and sklearn.
     31
     32
     33=== Sentiment Analysis ===
     34
     35In this workshop, we try two methods for opinion mining.
     36We use the Liu's Opinion Lexion. For Czech SA, we use the automatically translated version. Next, we try to compensate drawbacks of the lexicon by computing word vectors in a simple way.
     37
     38Access the [https://colab.research.google.com/drive/1j9f28cnFrcRmWKhylP6kXhMwtksnhyCo Python notebook in the Google Colab environment]. Do not forget to save your work if you want to see your changes later, leaving the browser will throw away all changes!
     39
     40OR
     41
     42(local version)
     43
     44
     45Files: [raw-attachment:Word_Vectors_and_Sentiment.ipynb Word_Vectors_and_Sentiment.ipynb], [raw-attachment:cestina20.csv cestina20.csv], [raw-attachment:cestina20_annotation.csv cestina20_annotation.csv],
     46[raw-attachment:urban_dictionary.csv urban_dictionary.csv], [raw-attachment:negative-words-en.txt negative-words-en.txt], [raw-attachment:negative-words-cs.txt negative-words-cs.txt], [raw-attachment:positive-words-en.txt positive-words-en.txt], [raw-attachment:positive-words-cs.txt positive-words-cs.txt]
     47
     481. Create `<YOUR_FILE>`, a text file named ia161-UCO-01.txt where UCO is your university ID.
     491. Enter the name of the dataset you were working on.
     501. Do tasks marked in the python notebook as TASK X. You don't have to do optional tasks.
     51
     52=== Upload `<YOUR_FILE>` ===
     53
     54Do not forget to upload your resulting file to the [wiki:en/NlpInPracticeCourse homework vault (odevzdávárna)].