Bhasfe / Bhasfe/distance_learning

NameError: name 'tweets_porcessed' is not defined

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
5
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Hi !
First thank you for your tutorial and taking time for sharing it !

I'm trying to reproduce your code, but I'm facing an error and can't fix it, just before the sentimental analysis I'm trying to run ' ```# Fit and transform the vectorizer
tfidf_matrix = vectorizer.fit_transform(tweets_porcessed["Processed"])```

and get this error =>

```
7 # Fit and transform the vectorizer
----> 8 tfidf_matrix = vectorizer.fit_transform(tweets_porcessed["Processed"])
9
10 # Let's see what we have

NameError: name 'tweets_porcessed' is not defined
```

Can you help to fix it please ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the Jupyter Notebook cell containing the `vectorizer.fit_transform(tweets_porcessed["Processed"])` call and inspect the preceding cells for the variable definition and spelling. Rerun the notebook through the vectorization step and confirm that the NameError is gone before continuing to the sentiment-analysis section.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.