python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
'list' object has no attribute 'lower''list' object has no attribute 'lower' in TfidfVectorizer
i have csv file about some arabic tweet i did token and stemming and clean the text
`data = pd.read_csv(r"tweet.csv" ,dtype=str, encoding="utf-8")
def preprocessing(text):
\...
Djihad Jiji
Votes: 0
Answers: 1
How to ignore numbers and use min_df when using TfidfVectorizer?
I'm trying to run simple code of TfidfVectorizer with some properties:
Ignore numbers
Use min_df (ignore terms that have a document frequency strictly lower than the given threshold)
But I can't get...
user3668129
Votes: 0
Answers: 0
When using TfidfVectorizer how can I vectorize one sample data?
I will try to be clear as possible in my question:
I trained a logistic regression model with a collected data of trusted tweets and also fake tweets related to covid-19.
Now I want to be able to pred...
Alejandro
Votes: 0
Answers: 1
ValueError: multiclass format is not supported on ROC_Curve for text classification
I am trying to use ROC for evaluating my emotion text classifier model
This is my code for the ROC :
# ROC-AUC Curve
from sklearn.metrics import roc_curve, auc
import matplotlib.pyplot as plt
fpr, tpr...
Ronald Ferdinand
Votes: 0
Answers: 1