yangheng95 / LCF-ATEPC

codes for paper A Multi-task Learning Model for Chinese-oriented Aspect Polarity Classification and Aspect Term Extraction
MIT License
185 stars 45 forks source link

求加一个推断的例子 #19

Closed zhixuhao closed 3 years ago

zhixuhao commented 3 years ago

convert_examples_to_features.py 202行,在将example转feature的时候,需要知道当前句子的aspect。 但是在推断的时候,是不知道aspect是什么的,难道说推断的时候需要分两阶段运行?先跑ate任务,再跑apc任务? 希望作者加一个推断的示例函数,谢谢

yangheng95 commented 3 years ago

这个库的推断脚本没有完成,后期具体的实现时间不能确定,也欢迎大家帮助实现。具体的推断过程(比如先抽取再分类和同时抽取和分类)根据不同的需求修改代码,训练的时候会用到aspect和polarity,在预测阶段如果aspect未知的话,可以构建features的时候将aspect缺省。

yangheng95 commented 3 years ago

模型用法见release版本pyabsa