I’m doing a university assignment on Quantconnect. I want to implement sentiment analysis and want to use Finbert for it. However, whenever I try to import Finbert using something like this:
from transformers import BertTokenizer, BertForSequenceClassification finbert = BertForSequenceClassification.from_pretrained('yiyanghkust/finbert-tone',num_labels=3) tokenizer = BertTokenizer.from_pretrained('yiyanghkust/finbert-tone')
Quantconnect gives me
During the algorithm initialization, the following exception has occurred: HTTPSConnectionPool(host='huggingface.co', port=443): Max retries exceeded with url: /ProsusAI/finbert/resolve/main/tokenizer_config.json (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
Any help is much appreciated!