Category : text-classification

[First I would like to thank the community of SO; for whose support I could actually finish making an end to end data science project (including deployment.)] Over to my question. I wanted to create an app that will predict success or failure depending upon textual input data. In order to construct the model; instead ..

Read more

I need to classify product reviews (positive/negative) written in Finnish language by using transformers python library. I have tried to do it with this model: https://github.com/TurkuNLP/FinBERT But that one only supports fill-mask tasks, not sentiment-analysis or text-classification. Could I have some advise on where to find suitable model? Here is my code: import transformers import ..

Read more

I am training a text classification model over a large set of data and I am using bert classifier (bert-base-uncased) of simpletransformer library. Simpletransformer retports by default mcc and eval_loss for evaluation during training and the test(eval) phase. I was able to set additional metrics such as acc, f1 etc. for the test phase (by ..

Read more

I am trying to train a classification model which predicts whether a stock price may go up or down based on tweets(unigram sentiment analysis approach). The dataset, after the preprocessing steps has 1 independent column with values 0(price goes down) and 1(it goes up) and 4900 predictor columns. Now as a last step before being ..

Read more

I got the following error related to the value of the dropout ratio. I am trying to train with a capsnet algorithm. please help. File "codes/train.py", line 40, in text_capsnet.train() File "/Users/macbook/Desktop/DossierT/Application2/text-capsule-network-master/codes/models/text_capsnet.py", line 49, in train model = text_layer.get_model(self, summary=True) File "/Users/macbook/Desktop/DossierT/Application2/text-capsule-network-master/codes/models/text_layer.py", line 134, in get_model embedding = layers.Embedding(self.vocab_size, self.embedding_size, File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/keras/layers/embeddings.py", line 123, in ..

Read more