update th

This commit is contained in:
Wannaphong Phatthiyaphaibun 2017-09-21 00:36:02 +07:00
parent 44291f6697
commit 39bb5690f0
2 changed files with 2 additions and 39 deletions

View File

@ -26,5 +26,3 @@ class Thai(Language):
"https://github.com/wannaphongcom/pythainlp/")
words = [x for x in list(word_tokenize(text,"newmm"))]
return Doc(self.vocab, words=words, spaces=[False]*len(words))
__all__ = ['Thai']

View File

@ -43,38 +43,3 @@ TOKENIZER_EXCEPTIONS = {
{ORTH: "ธ.ค.", LEMMA: "ธันวาคม"}
]
}
# exceptions mapped to a single token containing only ORTH property
# example: {"string": [{ORTH: "string"}]}
# converted using strings_to_exc() util
'''
ORTH_ONLY = [
"a.",
"b.",
"c.",
"d.",
"e.",
"f.",
"g.",
"h.",
"i.",
"j.",
"k.",
"l.",
"m.",
"n.",
"o.",
"p.",
"q.",
"r.",
"s.",
"t.",
"u.",
"v.",
"w.",
"x.",
"y.",
"z."
]
'''