Showing posts with the label text-classification

[FIXED] Keras multi classifier is always giving 0 output

Issue I built this keras model for multi classification model = tf.keras.Sequential([ tf.keras.l…

[FIXED] correlating between prediction result to label

Issue I've a keras model that predicted the following results: (it's a multi-class problem …

[FIXED] Why my LSTM for Multi-Label Text Classification underperforms?

Issue I'm using Windows 10 machine. Libraries: Keras with Tensorflow 2.0 Embeddings:Glove(100 d…

[FIXED] 'numpy.ndarray' object has no attribute 'lower'

Issue I am fairly new to ML, I am trying to fit some data on my NB-classifier. from sklearn.pipel…

[FIXED] calibrated classifier ValueError: could not convert string to float

Issue Dataframe: id review name label 1 …

[FIXED] Text classification with R and SVM. Matrix features

Issue I am playing a bit with text classification and SVM. My understanding is that typically the …

[FIXED] My training and validation loss suddenly increased in power of 3

Issue /> train function def train(model, iterator, optimizer, criterion, clip): model.trai…

[FIXED] How to use SciBERT in the best manner?

Issue I'm trying to use BERT models to do text classification. As the text is about scientific …

[FIXED] How to configure and train the model using Glove and CNN for text classification?

Issue I have worked with text classification using Glove and CNN and found the problem below: File…

[FIXED] Can't get dimensions right - CNN for text classification

Issue This is my CNN class: class CNN(nn.Module): def __init__( self, vocab_si…

[FIXED] Text preprocessing for fasttext pretrained models

Issue I want to use pretreained fastext model for language detection: noreferrer">https://f…

[FIXED] Is there any ideal parameter values for fasttext train_supervised function?

Issue I working on NLP problem and try to make text classification with word embedding method. I am…

[FIXED] What are differences between AutoModelForSequenceClassification vs AutoModel

Issue We can create a model from AutoModel(TFAutoModel) function: from transformers import AutoMod…

[FIXED] My function to investigate the impact of sample size on the text classifier performance is not working correctly

Issue I have defined the following function that returns the AUC and PRC scores for training and te…

[FIXED] Text classification from html with BeautifulSoup

Issue I have obtained html page source code and then parsed it using 'html5lib' with Beauti…

[FIXED] Create columns based on whether specific substrings exist in column

Issue I have a DataFrame with some 270,000 books and I'd like to get_dummies based on the Book-…

[FIXED] IndexError: Target is out of bounds

Issue I am currently trying to replicate the article noreferrer">https://towardsdatascienc…

[FIXED] Why is this accuracy of this Random forest sentiment classification so low?

Issue I want to use RandomForestClassifier for sentiment classification. The x contains data in str…

[FIXED] NLP text classification CountVectorizer Shape Error

Issue I have a text dataset which has one column for reviews and another column for labels. I want …

[FIXED] ValueError: Requesting 5-fold cross-validation but provided less than 5 examples for at least one class

Issue I have been training a text classifier to then later use to predict characters of a TV show. …