Error: Failed to load parameters when running the example of "Analyze Sentiment Using FinBERT".

1 visualizzazione (ultimi 30 giorni)
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?

Risposte (1)

R
R il 7 Mag 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.

Categorie

Scopri di più su Modeling and Prediction in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by