Open franz101 opened 5 years ago
I am doing research in this area as well, is it possible to share the pre-trained models?
Thank you!
@vr25 i looked at your finbert & finRoberta model release on huggingface, I am trying to set up a sentiment analysis pipeline using your model & tokenizer but I am running into an OSError: Can’t load ‘tokenizer’ issue, am I missing something? Can I use this pipeline with your model?
Below is how I am using it: tokenizer = AutoTokenizer.from_pretrained(“vr25/fin_Roberta-v1) model = AutoModelWithLMHead.from_pretrained(“vr25/fin_Roberta-v1) pipeline(‘sentiment-analysis’, model=model, tokenizer=tokenizer)
Yes, it should work.
@nehatj check your capitalisation of the letters:
from transformers import AutoTokenizer,AutoModelWithLMHead,pipeline tokenizer = AutoTokenizer.from_pretrained("vr25/fin_RoBERTa-v1") model = AutoModelWithLMHead.from_pretrained("vr25/fin_RoBERTa-v1")
sentiment = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer) sentiment("the stock needs to sold")
leads to a key error.
Also the tokenizer give an interesting output with a special character in front of most starting letters: tokenizer.tokenize("the stock needs to sold")
Hi,
great project. I just read your paper and found it interesting to compare your results to the paper of https://arxiv.org/pdf/1908.10063.pdf
Do you plan on releasing the pre-trained models for research? Thank you very much for making the training data available.
All the best!