# Week 3 - Sentiment Analysis with Naïve Bayes

For this week you should have gone through the lectures of week 2 of the first Coursera course on NLP, including the quiz and the assignment. <https://www.coursera.org/learn/classification-vector-spaces-in-nlp/home/week/2>

This week is very similiar to the first but instead of linear regression we will use naive bayes.&#x20;

If you are not familiar with this machine learning algorithm these videos will give you a head start since in the coursera course naive bayes is just covered on the fly.

{% embed url="<https://www.youtube.com/watch?v=O2L2Uv9pdDA&list=PLblh5JKOoLUICTaGLRoHQDuF_7q2GfuJF&index=36>" %}

{% embed url="<https://www.youtube.com/watch?v=H3EjCKtlVog&list=PLblh5JKOoLUICTaGLRoHQDuF_7q2GfuJF&index=37>" %}

At the end you will be able to test your naive bayes model with your own tweets or other that you source from the internet.&#x20;

For the next week you should go through all the course videos,  the assignment and the quiz of week 3 of course 1 in the NLP specialization. Take notes and notice if you have any questions about the material. In the next meeting we will discuss these.

<https://www.coursera.org/learn/classification-vector-spaces-in-nlp/home/week/3>

Have fun and see you next week.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opencampus.gitbook.io/opencampus-machine-learning-program/courses/archive/gan/week-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
