Error: Failed to load parameters when running the example of "Analyze Sentiment Using FinBERT".
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
R
el 7 de Mayo de 2024
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 comentarios
Ver también
Categorías
Más información sobre Modeling and Prediction en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!