Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/Sequence Models/Week 3/Neural Machine Translation/__pycache__/bleu.cpython-36.pyc
Views: 13380
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 <