MrWaterZhou

Results 2 issues of MrWaterZhou

开源先点个赞 但是例子中的aspect_sentiment是不是有误 ``` In [8]: my_senta.init_model(model_class="ernie_1.0_skep_large_ch", task="aspect_ ...: sentiment_classify", use_cuda=use_cuda) ...: texts = ["百度是一家高科技公司"] ...: aspects = ["高科技"] ...: result = my_senta.predict(texts, aspects) ...: print(result) [('百度是一家高科技公司', 'negative')] ``` 看了源码调用Senta.predict, 其中好像并没有在预测用到aspects...

https://github.com/SlongLiu/query2labels/blob/55eb05064f4badbe03423b79e5c9d143da2dff2e/lib/models/transformer.py#L35 Shouldn't it be changed to ` if num_encoder_layers > 0: `