-
Updated
Jan 10, 2020 - HTML
encoder-decoder
Here are 301 public repositories matching this topic...
-
Updated
Jul 8, 2020 - Java
-
Updated
Jun 30, 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
Jul 7, 2020 - Java
assert len(references) == len(hypotheses)
# Calculate BLEU-4 scores
bleu4 = corpus_bleu(references, hypotheses)
-
Updated
Jul 8, 2020 - Python
-
Updated
May 22, 2017 - C
-
Updated
Nov 19, 2018 - Python
Based on this line of code:
https://github.com/ufal/neuralmonkey/blob/master/neuralmonkey/decoders/output_projection.py#L125
Current implementation isn't flexible enough; if we train a "submodel" (e.g. decoder without attention - not containing any ctx_tensors) we cannot use the trained variables to initialize model with attention defined because the size of the dense layer matrix input become
https://github.com/JayParks/tf-seq2seq/blob/master/seq2seq_model.py#L368
It gives that the dimension 0 of inputs and attention do not match (as we are tile_batching it to batch_size * beam_width). Didn't you get any error while running with beam_search?
-
Updated
Oct 31, 2017 - Python
-
Updated
Jun 20, 2020 - Python
-
Updated
Mar 29, 2020 - Jupyter Notebook
-
Updated
Jun 20, 2017 - Python
-
Updated
Jun 20, 2018 - Jupyter Notebook
-
Updated
Apr 24, 2020 - Python
-
Updated
Jun 28, 2020 - Java
-
Updated
May 16, 2018 - Jupyter Notebook
-
Updated
May 16, 2020 - Python
-
Updated
Sep 18, 2017 - Jupyter Notebook
-
Updated
Apr 4, 2018 - Python
-
Updated
Dec 30, 2019 - Jupyter Notebook
-
Updated
Jan 28, 2020 - Python
-
Updated
Jul 3, 2020 - Python
-
Updated
Nov 23, 2018 - Python
-
Updated
Jun 23, 2020 - C#
-
Updated
Apr 30, 2019 - Python
Improve this page
Add a description, image, and links to the encoder-decoder topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the encoder-decoder topic, visit your repo's landing page and select "manage topics."
如:xxx app + www.xxx.com
不要在此issue里面提各种问题,谢谢配合。