Individual Assignment
In the individual assignment we will use the same design brief we used in the tutorial. Your goal is to gain insights from analyzing the student’s answers regarding their needs during the COVID-era. Following the same steps, we saw in the tutorial try to answer the following questions. Hint: To answer the questions you will need to change some of the parameters we used, understand their effect and importance, and reflect on the results.
Task 1
Experiment with changing some of the variables from “True” to “False”. Try to answer the following questions:
- Why do we remove capitalization? When it can be important to leave capitalization be?
- What is tokenization and why do we use it?
- Why do we remove punctuation and numbers? What will happen if we don’t remove it? Are there cases in which it is better not to remove them?
- What are stop words? What happens if we do not remove them?
- What is stemming and why do we use it?
Task 2
The main goal of this task is to learn how to work with Wordcloud visualization. For that purpose try to follow the following steps:
- Draw a wordcloud on preprocessed data
- Draw a wordcloud on data with different preprocessing protocol
- (a) Get back to the preprocessing
- (b) Remove stemming (argument stem=False) from preprocessing
- (c) Draw a new wordcloud and save it under a different name
- What’s different?
- Try increasing the number of shown words. Are additional words give you meaningful information about text collection?
Task 3
The tricky part about sentiment analysis is to understand its limitations and the origin of sentiment score (i.e. which words affect the score the most). To practice working with sentiment analysis, try to do the following steps:
- Calculate the sentiment scores for your text collection
- Find top-3 most positive documents
- Find top-3 most negative documents
- What’s different about these documents? Why do you think the algorithms finds some sentences negative? What words give away the sentiment? What about the positive sentences?
- How sentiment analysis of this collection can help decision-makers improve the life of the students?
Task 4
The main task here is to experiment with different parameters and explore how they affect the outcome of the LDA model.
- How does the outcome of the model change when you change the number of topics?
- What happens when you change the number of words per topic?
- Play again with the parameters of the preprocessing function and see how this affects the results of the LDA model. For instance, what happens would the topics make sense if you had not removed the stopwords? You can also add new stopwords inside the extra_stopwords list if you feel that some words that appear in your topics do not provide much information.
- Now change the num_of_topics and the word_num_per_topic. How does this affect the results?
- After you have tuned the above parameters try to interpret 3 of the identified topics.
- (a) Did you encounter any challenges with interpreting the topics?