Comments (7)
I put all the generated state_dict into it, or each data set only needs to put the last one?
from pyabsa.
The script indentified the file name contained 'acc' as state-dict, see https://github.com/yangheng95/LC-ABSA/blob/c945a94e0f86116c5578245aa9ad36c46c7b9c4a/apc_infer.py#L149
And each file only need one.
from pyabsa.
Tell me if any problem continues
from pyabsa.
To match your example, I used dataset 'car'
like this
But this problem still exists
from pyabsa.
{
"config1": {
"model_name": "lcf_bert",
"dataset": "car",
"optimizer": "adam",
"learning_rate": 0.00002,
"dropout": 0.1,
"l2reg": 0.00001,
"num_epoch": 5,
"batch_size": 4,
"logdir": "logs",
"pretrained_bert_name": "bert-base-chinese",
"use_dual_bert": false,
"use_bert_spc": true,
"max_seq_len": 80,
"SRD": 5,
"sigma": 0.5,
"lcf": "cdw",
"lce": true,
"lcp": true,
"exp_rounds": 1
}
}
from pyabsa.
Seems there is no seed in the file name. It is recommended to use the auto-generated state-dict file.
e.g. lce_bert_car_acc72.98_seed0seed
from pyabsa.
I am sorry to trouble you with such a simple question.
I can run it successfully, thank you!
from pyabsa.
Related Issues (20)
- No module named 'pyabsa.functional' HOT 4
- AspectExtractor returns aspects only if pred_sentiments=True in `extract_aspect` method but I don't want sentiments HOT 3
- how to train my own model? HOT 1
- Different performance between model saved as fine-tuned PLM and state_dict HOT 3
- Option for custom categories and custom rating
- Inference Speed HOT 1
- Import Error when using on Google Colab HOT 2
- Request for evaluation metrics HOT 3
- During training: warnings for ATE Classification Report HOT 2
- When training from saved checkpoint: `RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!` HOT 1
- How to rewrite the Custom Dataset? HOT 1
- AttributeError: 'ATEPCConfigManager' object has no attribute 'hidden_dim' HOT 8
- How to Determine the Dataset Used for Pretrained Models from Checkpoints? HOT 5
- Seeking Guidance for Simple yet effective approch for ABSA for my FYP
- A faster generator.predict(comment)
- ASTE: list index out of range
- PyABSA Version 2 not working- RuntimeError: Exception: expected str, bytes or os.PathLike object, not NoneType Fail to load the model from multilingual!
- How can I display ASTE accuracy, precision and recall while training the model?
- Failures with UniversalSentimentAnalysis class
- Title: Integrate Custom Dataset from Databricks for Aspect Sentiment Triplet Extraction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyabsa.