From 07c95380262d59f2b2eea631a552b996f0fe5b4f Mon Sep 17 00:00:00 2001 From: Kazuma Hashimoto Date: Wed, 1 Nov 2023 17:50:40 +0900 Subject: [PATCH] Updates the URL of the character n-gram embeddings in vectors.py The original URL of the character n-gram embeddings is no longer valid, so I have uplodaed exactly the same file to another place. --- torchtext/vocab/vectors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchtext/vocab/vectors.py b/torchtext/vocab/vectors.py index 3743207557..5e2a8c34ff 100644 --- a/torchtext/vocab/vectors.py +++ b/torchtext/vocab/vectors.py @@ -236,7 +236,7 @@ def __init__(self, language="en", **kwargs) -> None: class CharNGram(Vectors): name = "charNgram.txt" - url = "http://www.logos.t.u-tokyo.ac.jp/~hassy/publications/arxiv2016jmt/" "jmt_pre-trained_embeddings.tar.gz" + url = "https://github.com/hassyGo/charNgram2vec/releases/download/v1.0.0-alpha/" "jmt_pre-trained_embeddings.tar.gz" def __init__(self, **kwargs) -> None: super(CharNGram, self).__init__(self.name, url=self.url, **kwargs)