Path: blob/master/Sequence Models/Week 3/Neural Machine Translation/__pycache__/bleu.cpython-36.pyc
17771 views
3 ��?Z � @ s* d Z ddlZddlZdd� Zd dd�ZdS ) a; Python implementation of BLEU and smooth-BLEU. This module provides a Python implementation of BLEU and smooth-BLEU. Smooth BLEU is computed following the method outlined in the paper: Chin-Yew Lin, Franz Josef Och. ORANGE: a method for evaluating automatic evaluation metrics for machine translation. COLING 2004. � Nc C sh t j� }xZtd|d �D ]H}xBtdt| �| d �D ](}t| ||| � �}|| d7 <