Comments (5)
Thanks for reporting this, the text_right is not used in the BERT-based models, it was used in some models relying on left and right contexts. And this inferring script has not been tested on those non-BERT-based models. I will fix some problems later.
The truncating of sentences is useful in low resources systems, If you use large max_len, it may help, however not very apparent.
Actually, it is difficult to integrate multilingual datasets and multiple models, I have not much time to test new code. Again, sorry for causing your inconvenience.
from pyabsa.
Please check here https://github.com/yangheng95/LC-ABSA/blob/dc27f9b09607e8125c49de9b00cd508a21b9b75a/modules/utils/data_utils_for_inferring.py#L276
from pyabsa.
thanks @yangheng95 that was helpful!
from pyabsa.
thanks @yangheng95 that was helpful!
I am sorry that you may check the code again, I update the code because I ignored some cases that aspect is at the beginning or ending.
from pyabsa.
@yangheng95 I just ran the code. Seems to have fixed the truncation problem where aspect was in the beginning! :) Awesome Stuff 👍
Also would be great to discuss how I am approaching the problem by using your model implementation.. In case you may have some spare time :p For reassurance.
from pyabsa.
Related Issues (20)
- APC SentimentClassifier predict example warning HOT 1
- ImportError: cannot import name 'AspectExtractor' from partially initialized module 'pyabsa.tasks.AspectTermExtraction.prediction.aspect_extractor' (most likely due to a circular import) (/Applications/anaconda3/lib/python3.10/site-packages/pyabsa/tasks/AspectTermExtraction/prediction/aspect_extractor.py) HOT 1
- 关于LSA的问题 HOT 1
- 如何修改config.json的加载路径(how to modify the load path of config.json?) HOT 6
- Problem loading checkpoint for AspectPolarityClassification HOT 4
- Doubts while implementing Extract aspect terms and classify sentiments
- some bug in TUTORIALS of Aspect Term Extraction and Sentiment Classification HOT 1
- Attention mask not specified HOT 1
- 请问提取情感三元组是利用哪个算法实现的
- 请问情感三元组的提取是利用哪个算法实现的 HOT 1
- Max length in ASTE HOT 1
- Loading state_dict fails (model trained on linux and copied to windows) HOT 1
- RuntimeError: Error(s) in loading state_dict for APCEnsembler: HOT 1
- IndexError: Target 2 is out of bounds. HOT 3
- Aspect sentiment quadruple extraction
- 模型无法远程下载,如何从本地加载模型? HOT 1
- 请问哪里可以设置integrated dataset path
- Fail to download checkpoints info from huggingface space, try to download from local HOT 1
- import AspectSentimentTripletExtraction in colab raise error HOT 4
- Fine-tuned ASTE model returns no triplets HOT 1
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.