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

Simple implementations of NLP models. Tutorials are written in Chinese on my website https://mofanpy.com

Results 8 NLP-Tutorials issues
Sort by recently updated
recently updated
newest added

Bumps [numpy](https://github.com/numpy/numpy) from 1.18.5 to 1.22.0. Release notes Sourced from numpy's releases. v1.22.0 NumPy 1.22.0 Release Notes NumPy 1.22.0 is a big release featuring the work of 153 contributors spread...

dependencies

Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.3.1 to 2.7.2. Release notes Sourced from tensorflow's releases. TensorFlow 2.7.2 Release 2.7.2 This releases introduces several vulnerability fixes: Fixes a code injection in saved_model_cli (CVE-2022-29216) Fixes...

dependencies

作者您好,我在通过你的代码学习NLP,当我运行pytorch文件夹下的CBOW代码时,发现其运行结果不理想与tensorflow版本差别比较大,请问是什么原因?我使用的是requests.txt中的tensorflow版本,pytorch则为同版本的cup版本

Hello, @ruifanxu. I would like to ask you about the filling of sentences less than the maximum length. ''' def mask(self, seqs): device = next(self.parameters()).device batch_size, seq_len = seqs.shape mask...

您好~我想請問一下 1.模型輸入的seqs[:,:-1]是過去的一句話,而seqs[:,-1]是需要預測的真實值,但是如果句子沒有那麼長,之後會被padding與長度最長的句子數量相同,seqs[:,-1]不就都拿到padding值嗎~~ 2.若設計為每一批次以最長句子而非整個文本最長句子為該批次的step長度(時間長度),能解決上述問題嗎? 希望收到您的回覆!!!!!!!!!!!!!!!!!!!!謝謝

老师,这个position embedding的实现我觉得有点问题,请您看看

Bumps [requests](https://github.com/psf/requests) from 2.23.0 to 2.31.0. Release notes Sourced from requests's releases. v2.31.0 2.31.0 (2023-05-22) Security Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential forwarding of Proxy-Authorization...

dependencies

Bumps [tensorflow](https://github.com/tensorflow/tensorflow) from 2.3.1 to 2.11.1. Release notes Sourced from tensorflow's releases. TensorFlow 2.11.1 Release 2.11.1 Note: TensorFlow 2.10 was the last TensorFlow release that supported GPU on native-Windows. Starting...

dependencies