mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Change PyThaiNLP Url (#2876)
This commit is contained in:
parent
9447739027
commit
2d2765fd8a
|
@ -30,7 +30,7 @@ class Thai(Language):
|
|||
from pythainlp.tokenize import word_tokenize
|
||||
except ImportError:
|
||||
raise ImportError("The Thai tokenizer requires the PyThaiNLP library: "
|
||||
"https://github.com/wannaphongcom/pythainlp/")
|
||||
"https://github.com/PyThaiNLP/pythainlp")
|
||||
words = [x for x in list(word_tokenize(text,"newmm"))]
|
||||
return Doc(self.vocab, words=words, spaces=[False]*len(words))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user