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!