From 0707aaf476d75a880e648b4b95c0aecd411c1b0d Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Sun, 26 Jan 2025 17:45:06 -0500 Subject: [PATCH] Update SacreMoses URL in docs and code This change was approved by @alvations in the issue discussion. Fixes https://github.com/pytorch/text/issues/2276 --- README.rst | 2 +- torchtext/data/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 0ac7bd8fb6..aa6d45412e 100644 --- a/README.rst +++ b/README.rst @@ -69,7 +69,7 @@ If you want to use English tokenizer from `SpaCy `_, you need pip install spacy python -m spacy download en_core_web_sm -Alternatively, you might want to use the `Moses `_ tokenizer port in `SacreMoses `_ (split from `NLTK `_). You have to install SacreMoses:: +Alternatively, you might want to use the `Moses `_ tokenizer port in `SacreMoses `_ (split from `NLTK `_). You have to install SacreMoses:: pip install sacremoses diff --git a/torchtext/data/utils.py b/torchtext/data/utils.py index 89a72ea455..bbc826a9a0 100644 --- a/torchtext/data/utils.py +++ b/torchtext/data/utils.py @@ -126,7 +126,7 @@ def get_tokenizer(tokenizer, language="en"): except ImportError: print( "Please install SacreMoses. " - "See the docs at https://github.com/alvations/sacremoses " + "See the docs at https://github.com/hplt-project/sacremoses " "for more information." ) raise