attention
Here are 445 public repositories matching this topic...
Excuse me, https://github.com/graykode/nlp-tutorial/blob/master/1-1.NNLM/NNLM-Torch.py#L50 The comment here may be wrong. It should be X = X.view(-1, n_step * m) # [batch_size, n_step * m]
Sorry for disturbing you.
-
Updated
Jun 7, 2020 - Python
I add a function(according the code in the tutorial4) to calculate the bleu score, but i get the vey low score(0.09), could you tell me why?
This is code to calculate bleu:
def translate_sentence(sentence, src_field, trg_field, model, device, max_len = 50):
model.eval()
if isinstance(sentence, str):
nlp = spacy.load('de')
tokens = [token.te-
Updated
Apr 25, 2020 - Jupyter Notebook
-
Updated
Jul 11, 2018 - Jupyter Notebook
-
Updated
May 29, 2020 - Python
-
Updated
May 22, 2020 - JavaScript
If I want to use both of them, how to modify code in aen.py? Thanks a lot.
-
Updated
Dec 20, 2019 - Python
-
Updated
Jun 2, 2018 - Python
-
Updated
May 12, 2019 - Python
-
Updated
Feb 10, 2019 - MATLAB
-
Updated
Jul 21, 2017
-
Updated
Jul 12, 2018 - Python
-
Updated
May 7, 2020 - Python
-
Updated
Sep 22, 2019 - Python
-
Updated
Jul 2, 2019 - Python
-
Updated
Jun 15, 2020 - Python
-
Updated
Jan 15, 2020 - Python
-
Updated
May 23, 2020 - Python
-
Updated
Mar 11, 2020 - Jupyter Notebook
-
Updated
Apr 21, 2019 - Python
-
Updated
Jan 5, 2019 - Python
-
Updated
Feb 3, 2020 - Jupyter Notebook
-
Updated
Apr 30, 2018 - Python
-
Updated
Jun 6, 2019 - Python
-
Updated
Apr 16, 2019 - Python
-
Updated
Jun 20, 2017 - Python
-
Updated
Apr 16, 2019 - Python
Improve this page
Add a description, image, and links to the attention topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the attention topic, visit your repo's landing page and select "manage topics."


This is an awesome library, thanks @ddbourgin!!
Users might not know the best way to install this package and try it out. (I didn't, so I eventually just copied the source files.)
Neither the readme nor readthedocs have install instructions.
I couldn't find it on PyPi or Anaconda, and there doesn't appear to be a
pyproject.toml,setup.cfg,setup.py, or conda recipe.Moreover, the t