Yesgo1220

Results 5 issues of Yesgo1220

在bert源码create_attention_mask_from_input_mask中,We don't assume that `from_tensor` is a mask (although it could be). We don't actually care if we attend *from* padding tokens (only *to* padding) tokens so we create a...

请问代码中text和aspect的长度相同吗?一般aspect的长度很短

请问安装了fastbert,改如何进行Batch预测?

根据提示运行时报错如下: /usr/local/cuda-11.2/include/thrust/detail/cpp11_required.h:23:6: error: #error C++11 is required for this Thrust feature; please upgrade your compiler or pass the appropriate -std=c++XX flag to it. /usr/local/include/c++/5.2.0/bits/c++0x_warning.h:32:2: error: #error This file requires compiler...

你好,作者代码写的清楚明白,学习了。但是有个问题,在做args_s和args_e数据的时候,作者有没有考虑到bert tokenize移位问题呢?举个例子,句子“截至目前,好当家集团共持有好当家股份6.02亿股,占总股本的41.24%;累计质押好当家股份3.4亿股”,3.4亿span是[46,50],但是bert tokenize后是['[CLS]', '截', '至', '目', '前', ',', '好', '当', '家', '集', '团', '共', '持', '有', '好', '当', '家', '股', '份', '6', '.', '02', '亿', '股', ',', '占', '总', '股',...