-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
232 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
# -*- coding: utf-8 -*- | ||
__version__ = "2.2.6" | ||
|
||
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars | ||
|
||
thai_vowels = ( | ||
"\u0e24\u0e26\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37" | ||
+ "\u0e38\u0e39\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e4d\u0e47" | ||
) # 20 | ||
thai_lead_vowels = "\u0e40\u0e41\u0e42\u0e43\u0e44" # 5 | ||
thai_follow_vowels = "\u0e30\u0e32\u0e33\u0e45" # 4 | ||
thai_above_vowels = "\u0e31\u0e34\u0e35\u0e36\u0e37\u0e4d\u0e47" # 7 | ||
thai_below_vowels = "\u0e38\u0e39" # 2 | ||
|
||
thai_tonemarks = "\u0e48\u0e49\u0e4a\u0e4b" # 4 | ||
|
||
# Paiyannoi, Maiyamok, Phinthu, Thanthakhat, Nikhahit, Yamakkan: | ||
# These signs can be part of a word | ||
thai_signs = "\u0e2f\u0e3a\u0e46\u0e4c\u0e4d\u0e4e" # 6 chars | ||
|
||
# Any Thai character that can be part of a word | ||
thai_letters = "".join( | ||
[thai_consonants, thai_vowels, thai_tonemarks, thai_signs] | ||
) # 74 | ||
|
||
# Fongman, Angkhankhu, Khomut: | ||
# These characters are section markers | ||
thai_punctuations = "\u0e4f\u0e5a\u0e5b" # 3 chars | ||
|
||
thai_digits = "๐๑๒๓๔๕๖๗๘๙" # 10 | ||
thai_symbols = "\u0e3f" # Thai Bath ฿ | ||
|
||
# All Thai characters that presented in Unicode | ||
thai_characters = "".join( | ||
[thai_letters, thai_punctuations, thai_digits, thai_symbols] | ||
) | ||
|
||
|
||
from pythainlp.soundex import soundex | ||
from pythainlp.spell import correct, spell | ||
from pythainlp.tag import pos_tag | ||
from pythainlp.tokenize import ( | ||
Tokenizer, | ||
sent_tokenize, | ||
subword_tokenize, | ||
syllable_tokenize, | ||
word_tokenize, | ||
) | ||
from pythainlp.transliterate import romanize, transliterate | ||
from pythainlp.util import collate, thai_strftime | ||
# -*- coding: utf-8 -*- | ||
__version__ = "2.2.7-dev0" | ||
|
||
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars | ||
|
||
thai_vowels = ( | ||
"\u0e24\u0e26\u0e30\u0e31\u0e32\u0e33\u0e34\u0e35\u0e36\u0e37" | ||
+ "\u0e38\u0e39\u0e40\u0e41\u0e42\u0e43\u0e44\u0e45\u0e4d\u0e47" | ||
) # 20 | ||
thai_lead_vowels = "\u0e40\u0e41\u0e42\u0e43\u0e44" # 5 | ||
thai_follow_vowels = "\u0e30\u0e32\u0e33\u0e45" # 4 | ||
thai_above_vowels = "\u0e31\u0e34\u0e35\u0e36\u0e37\u0e4d\u0e47" # 7 | ||
thai_below_vowels = "\u0e38\u0e39" # 2 | ||
|
||
thai_tonemarks = "\u0e48\u0e49\u0e4a\u0e4b" # 4 | ||
|
||
# Paiyannoi, Maiyamok, Phinthu, Thanthakhat, Nikhahit, Yamakkan: | ||
# These signs can be part of a word | ||
thai_signs = "\u0e2f\u0e3a\u0e46\u0e4c\u0e4d\u0e4e" # 6 chars | ||
|
||
# Any Thai character that can be part of a word | ||
thai_letters = "".join( | ||
[thai_consonants, thai_vowels, thai_tonemarks, thai_signs] | ||
) # 74 | ||
|
||
# Fongman, Angkhankhu, Khomut: | ||
# These characters are section markers | ||
thai_punctuations = "\u0e4f\u0e5a\u0e5b" # 3 chars | ||
|
||
thai_digits = "๐๑๒๓๔๕๖๗๘๙" # 10 | ||
thai_symbols = "\u0e3f" # Thai Bath ฿ | ||
|
||
# All Thai characters that presented in Unicode | ||
thai_characters = "".join( | ||
[thai_letters, thai_punctuations, thai_digits, thai_symbols] | ||
) | ||
|
||
|
||
from pythainlp.soundex import soundex | ||
from pythainlp.spell import correct, spell | ||
from pythainlp.tag import pos_tag | ||
from pythainlp.tokenize import ( | ||
Tokenizer, | ||
sent_tokenize, | ||
subword_tokenize, | ||
syllable_tokenize, | ||
word_tokenize, | ||
) | ||
from pythainlp.transliterate import romanize, transliterate | ||
from pythainlp.util import collate, thai_strftime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
[bumpversion] | ||
current_version = 2.2.6 | ||
commit = True | ||
tag = True | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))? | ||
serialize = | ||
{major}.{minor}.{patch}-{release}{build} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:release] | ||
optional_value = prod | ||
first_value = dev | ||
values = | ||
dev | ||
beta | ||
prod | ||
|
||
[bumpversion:part:build] | ||
|
||
[bumpversion:file:setup.py] | ||
search = version={current_version} | ||
replace = {new_version} | ||
|
||
[bumpversion:file:pythainlp/__init__.py] | ||
search = __version__={current_version} | ||
replace = {new_version} | ||
|
||
[metadata] | ||
description-file = README.md | ||
|
||
[coverage:run] | ||
source = pythainlp | ||
[bumpversion] | ||
current_version = 2.2.7-dev0 | ||
commit = True | ||
tag = True | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))? | ||
serialize = | ||
{major}.{minor}.{patch}-{release}{build} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:release] | ||
optional_value = prod | ||
first_value = dev | ||
values = | ||
dev | ||
beta | ||
prod | ||
|
||
[bumpversion:part:build] | ||
|
||
[bumpversion:file:setup.py] | ||
search = version="{current_version}" | ||
replace = version="{new_version}" | ||
|
||
[bumpversion:file:pythainlp/__init__.py] | ||
search = __version__ = "{current_version}" | ||
replace = __version__ = "{new_version}" | ||
|
||
[metadata] | ||
description-file = README.md | ||
|
||
[coverage:run] | ||
source = pythainlp |
Oops, something went wrong.