Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #21 from nzw0301/master
Browse files Browse the repository at this point in the history
Fix link to Github repo
  • Loading branch information
PetrochukM committed Apr 19, 2018
2 parents a467965 + a4b6282 commit 7632a17
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

:github_url: https://github.com/pytorch/pytorch
:github_url: https://github.com/PetrochukM/PyTorch-NLP

Welcome to Pytorch-NLP's documentation!
=======================================
Expand Down
2 changes: 2 additions & 0 deletions tests/datasets/test_multi30k.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import os

import mock
import pytest

from torchnlp.datasets import multi30k_dataset
from tests.datasets.utils import urlretrieve_side_effect

multi30k_directory = 'tests/_test_data/multi30k'


@pytest.mark.skip(reason="Unsafe dataset host (SSL: CERTIFICATE_VERIFY_FAILED)")
@mock.patch("urllib.request.urlretrieve")
def test_multi30k_dataset_row(mock_urlretrieve):
mock_urlretrieve.side_effect = urlretrieve_side_effect
Expand Down
6 changes: 5 additions & 1 deletion torchnlp/datasets/multi30k.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def multi30k_dataset(directory='data/multi30k/',
'http://www.quest.dcs.shef.ac.uk/wmt16_files_mmt/training.tar.gz',
'http://www.quest.dcs.shef.ac.uk/wmt16_files_mmt/validation.tar.gz',
'http://www.quest.dcs.shef.ac.uk/wmt16_files_mmt/mmt16_task1_test.tar.gz'
]):
]): # pragma: no cover
"""
Load the WMT 2016 machine translation dataset.
Expand All @@ -26,6 +26,10 @@ def multi30k_dataset(directory='data/multi30k/',
German human translation. As test data, we provide a new set of 1,000 tuples containing an
English description.
Status:
Host ``www.quest.dcs.shef.ac.uk`` forgot to update their SSL
certificate; therefore, this dataset does not download securely.
References:
* http://www.statmt.org/wmt16/multimodal-task.html
* http://shannon.cs.illinois.edu/DenotationGraph/
Expand Down

0 comments on commit 7632a17

Please sign in to comment.