diff --git a/spacy/ja/__init__.py b/spacy/ja/__init__.py index 2915d6330..07e40ada6 100644 --- a/spacy/ja/__init__.py +++ b/spacy/ja/__init__.py @@ -17,6 +17,7 @@ class Japanese(Language): try: from janome.tokenizer import Tokenizer except ImportError: - raise ImportError("The Japanese tokenizer requires the Janome library: https://github.com/mocobeta/janome") + raise ImportError("The Japanese tokenizer requires the Janome library: " + "https://github.com/mocobeta/janome") words = [x.surface for x in Tokenizer().tokenize(text)] return Doc(self.vocab, words=words, spaces=[False]*len(words))