NLP-Project icon indicating copy to clipboard operation
NLP-Project copied to clipboard

including text classifier, language model, pre_trained model, multi_label classifier, text generator, dialogue. etc

Results 25 NLP-Project issues
Sort by recently updated
recently updated
newest added

states, hidden = self.encoder(embeddings.permute([1, 0, 2]))#[75,64,50],[seq_len, batch, embed_dim] encoding = torch.cat([states[0], states[-1]], dim=1)#张量拼接[32,512] 对这一段没看懂 能方便加您vx,仔细请教吗 愿意付费

你好。很感谢您提供的代码教程。目前发现transformer训练准确度低。只有不到60%,大大低于TextCNN的85%,请问您当时测试也是如此吗?若是提高,可以给点建议吗?谢谢 text_classifier/models/transformer.py

# 利用求得的alpha的值对H进行加权求和,用矩阵运算直接操作 r = tf.matmul(tf.transpose(H, [0, 2, 1]), tf.reshape(self.alpha, [-1, self.config["sequence_length"], 1])) 报错: InvalidArgumentError (see above for traceback): In[0].dim(0) and In[1].dim(0) must be the same: [128,512,50] vs [256,50,1] [[Node: Attention/MatMul_1...

![image](https://user-images.githubusercontent.com/31954765/152948226-91a8f267-6593-4af1-911d-a3567b6bf302.png) AttributeError: 'Predictor' object has no attribute 'sess' 求大佬解答~

你好,请问能提供整个系列数据集的下载链接吗?谢谢

File "D:\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\training\saver.py", line 825, in __init__ self.build() File "D:\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\training\saver.py", line 837, in build self._build(self._filename, build_save=True, build_restore=True) File "D:\Anaconda3\envs\tensorflow-gpu\lib\site-packages\tensorflow\python\training\saver.py", line 862, in _build raise ValueError("No variables to save") ValueError: No variables...

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure...

在text_generator和text_generator_raw缺少了训练数据

非常抱歉提这个issue,您能把数据搞个一两条附上去吗?内容随意,是新手,想学习下您这个项目,但数据这块一直弄不成,非常感谢,您也可以发我邮箱,[email protected] 非常感谢