mirror of https://github.com/explosion/spaCy.git
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
|
from pythainlp.tokenize import word_tokenize
|
||||||
except ImportError:
|
except ImportError:
|
||||||
raise ImportError("The Thai tokenizer requires the PyThaiNLP library: "
|
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"))]
|
words = [x for x in list(word_tokenize(text,"newmm"))]
|
||||||
return Doc(self.vocab, words=words, spaces=[False]*len(words))
|
return Doc(self.vocab, words=words, spaces=[False]*len(words))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue