Skip to content
#

pytorch-tutorials

Here are 66 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
PyTorch-tutorials-kr
9bow
9bow commented Mar 1, 2020

개요

  • 공식 튜토리얼 중 pytorch/tutorials@7ba6693 를 참고하여 반영하였습니다.
  • 1.3 때(#12)와 다르게, 각 튜토리얼들은 초/중/고급(beginner / intermediate / advanced)으로 나누어 정리하고
    체크박스를 사용하여 번역 여부를 표시합니다.
  • 현재 메인 메뉴에서 바로 접근이 불가능한 튜토리얼은 이탤릭 으로 표시하였습니다.

초급 튜토리얼 (beginner)

Improve this page

Add a description, image, and links to the pytorch-tutorials 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 pytorch-tutorials topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.