Error: Failed to load parameters when running the example of "Analyze Sentiment Using FinBERT".
1 次查看(过去 30 天)
显示 更早的评论
I downloaded the matlab 2021b to try some new features in text analysis field.
I ran the MATLAB official example “Analyze Sentiment Using FinBERT”.
When I started the first step:
%% Load Pretrained FinBERT Model
% Load a pretrained FinBERT model using the |finbert| function. The model
% consists of a tokenizer that encodes text as sequences of integers, and
% a structure of parameters.
mdl = finbert
A mistake occued, and it was like:
Error using load
Cannot read file
E:\Documents\MATLAB\Examples\R2021b\supportfiles\nnet\data\networks\finbert\sentiment-model\parameters.mat.
Which meant the mat datafile contained parameters was broken, it could not be opened.
So how to fix this problem?
0 个评论
回答(1 个)
R
2024-5-7
The example "Analyze Sentiment Using FinBERT" is not a MATLAB example. Instead, it is an example given in the following file exchange:
To execute this example, you must first download or clone the repository linked above to your local machine and then open it in MATLAB.
Additionally, if you have further questions, you can utilize the discussions tab available at the same link.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling and Prediction 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!