File tree 4 files changed +7
-7
lines changed 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
- __version__ = "3.0.4 "
2
+ __version__ = "3.0.5 "
3
3
4
4
thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars
5
5
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
"""
3
- nercut 0.1
3
+ nercut 0.2
4
4
5
5
Dictionary-based maximal matching word segmentation, constrained with
6
6
Thai Character Cluster (TCC) boundaries, and combining tokens that are
10
10
"""
11
11
from typing import Iterable , List
12
12
13
- from pythainlp .tag .named_entity import ThaiNameTagger
13
+ from pythainlp .tag .named_entity import NER
14
14
15
- _thainer = ThaiNameTagger ( )
15
+ _thainer = NER ( engine = "thainer" )
16
16
17
17
18
18
def segment (
@@ -39,7 +39,7 @@ def segment(
39
39
return []
40
40
41
41
global _thainer
42
- tagged_words = _thainer .get_ner (text , pos = False )
42
+ tagged_words = _thainer .tag (text , pos = False )
43
43
44
44
words = []
45
45
combining_word = ""
Original file line number Diff line number Diff line change 1
1
[bumpversion]
2
- current_version = 3.0.4
2
+ current_version = 3.0.5
3
3
commit = True
4
4
tag = True
5
5
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+)(?P<build>\d+))?
Original file line number Diff line number Diff line change 105
105
106
106
setup (
107
107
name = "pythainlp" ,
108
- version = "3.0.4 " ,
108
+ version = "3.0.5 " ,
109
109
description = "Thai Natural Language Processing library" ,
110
110
long_description = readme ,
111
111
long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments