Skip to content

Commit

Permalink
Update model
Browse files Browse the repository at this point in the history
  • Loading branch information
wannaphong committed Sep 17, 2022
1 parent 7284ac0 commit 527a836
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pythainlp/corpus/default_db.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"pythainlp_version": ">=2.2.7"
},
"1.5.2": {
"filename": "thainer_crf_1_5_2.model",
"download_url": "https://github.com/wannaphong/thai-ner/releases/download/1.5.2/thainer_crf_1_5_2.model",
"filename": "thainer_crf_1_5_2-orchid_ud.model",
"download_url": "https://github.com/wannaphong/thai-ner/releases/download/1.5.2/thainer_crf_1_5_2-orchid_ud.model",
"md5": "-",
"pythainlp_version": ">=3.1.0"
}
Expand Down
Binary file not shown.
Binary file removed pythainlp/corpus/thainer_crf_1_5_2.model
Binary file not shown.
4 changes: 2 additions & 2 deletions pythainlp/tag/thainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ def __init__(self, version: str = "1.5.2") -> None:
self.crf.open(get_corpus_path(_CORPUS_NAME, version="1.5"))
if version=="1.5" or version=="1.5.1":
self.pos_tag_name = "lst20"
else:
self.pos_tag_name = "orchid"
else: # 1.5.2
self.pos_tag_name = "orchid_ud"

def get_ner(
self, text: str, pos: bool = True, tag: bool = False
Expand Down

0 comments on commit 527a836

Please sign in to comment.