Comments (5)
I'm facing the same issue. However the same model on this link seems to perform well. Did you find a solution?
from finbert.
I did try to run the prediction using the model that is there on huggingface, but it did not give me any better result. I did not find any solution so I am currently gathering the data for training.
from finbert.
I tested the model on huggingface and it seems to be working fine now. All my predictions for the test set were negative which led me to believe something was wrong w my code. I finally got it to work with some tweaks to the predict function in this repo here. I also used the Finbert Tokenizer("ProsusAI/finbert") instead of ''bert-base-uncased''.
from finbert.
The prediction is going wrong particularly with statements l gave in the screenshot above. The statements like "Improving free cash flows has meant that the company's net debt also continues to decline" is a positive scenario for a company since there is decline in debt. But because of the word "decline" it is being predicted as negative. There are 20 statements above and below those three which were predicted correctly.
from finbert.
Hi, we don't have any other model. The model might make incorrect predictions. As reported on the paper, the accuracy on the test set was 86%.
With regards to @prats0599's problem of getting always negative predictions, that obviously shouldn't happen. @prats0599 could you please share more details about the problem and the fix you did?
from finbert.
Related Issues (20)
- Where is the config.json for Sentiment analysis model trained on Financial PhraseBank HOT 1
- Error in _read_tsv when trying to read in the data HOT 3
- Preprocessing using TRC2
- Using Finbert for 240 multilabel multiclass classification HOT 1
- AxisError when call predict via REST API on Flask HOT 2
- pip install transformers is necessary to Dockerfile HOT 1
- error using predict.py HOT 4
- no code for FiQA sentiment classification task? HOT 1
- ad Gateway for url: https://huggingface.co/bert-base-uncased/resolve/main/config.json
- Sentence Representation Layer
- unable to parse tokenizer_config.json HOT 1
- TypeError: ord() expected a character, but string of length 69 found HOT 1
- pretrained model assignment HOT 1
- Understanding the output HOT 3
- Incorrect prediction Using Huggingface Transformers converted to ONNX format HOT 1
- Questions about regression HOT 1
- Tokenizer HOT 2
- Size of training data
- Is Pretrained only FinBert available HOT 1
- 'FinBert' object has no attribute 'class_weights'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finbert.