File tree Expand file tree Collapse file tree 6 files changed +8
-9
lines changed
Expand file tree Collapse file tree 6 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ fairseq==0.10.2
2323pyicu==2.8
2424deepcut==0.7.0.0
2525h5py==3.1.0
26- tensorflow==2.5.2
26+ tensorflow==2.5.3
2727pandas==0.24
2828tltk==1.3.8
2929OSKut==1.3
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- __version__ = "3.0.3 "
2+ __version__ = "3.0.5 "
33
44thai_consonants = "กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรลวศษสหฬอฮ" # 44 chars
55
Original file line number Diff line number Diff line change 44"""
55import warnings
66from typing import List , Tuple , Union
7- from pythainlp .tag .thainer import ThaiNameTagger
87
98
109class NER :
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22"""
3- nercut 0.1
3+ nercut 0.2
44
55Dictionary-based maximal matching word segmentation, constrained with
66Thai Character Cluster (TCC) boundaries, and combining tokens that are
1010"""
1111from typing import Iterable , List
1212
13- from pythainlp .tag .named_entity import ThaiNameTagger
13+ from pythainlp .tag .named_entity import NER
1414
15- _thainer = ThaiNameTagger ( )
15+ _thainer = NER ( engine = "thainer" )
1616
1717
1818def segment (
@@ -39,7 +39,7 @@ def segment(
3939 return []
4040
4141 global _thainer
42- tagged_words = _thainer .get_ner (text , pos = False )
42+ tagged_words = _thainer .tag (text , pos = False )
4343
4444 words = []
4545 combining_word = ""
Original file line number Diff line number Diff line change 11[bumpversion]
2- current_version = 3.0.3
2+ current_version = 3.0.5
33commit = True
44tag = True
55parse = (?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 105105
106106setup (
107107 name = "pythainlp" ,
108- version = "3.0.3 " ,
108+ version = "3.0.5 " ,
109109 description = "Thai Natural Language Processing library" ,
110110 long_description = readme ,
111111 long_description_content_type = "text/markdown" ,
You can’t perform that action at this time.
0 commit comments