Skip to content
#

sequence-to-sequence

Here are 246 public repositories matching this topic...

TomasAndersonFang
TomasAndersonFang commented Mar 24, 2020

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
varisd
varisd commented Aug 7, 2018

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

Seq2SeqSharp is a tensor based fast & flexible encoder-decoder deep neural network framework written by .NET (C#). It has many highlighted features, such as automatic differentiation, many different types of encoders/decoders(Transformer, LSTM, BiLSTM and so on), multi-GPUs supported and so on.

  • Updated Jun 8, 2020
  • C#

Improve this page

Add a description, image, and links to the sequence-to-sequence topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sequence-to-sequence topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.