File tree Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Expand file tree Collapse file tree 4 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,9 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร
24
24
pip install pythainlp
25
25
```
26
26
27
- ## News
28
-
29
- > Now, You can contact with or ask any questions of the PyThaiNLP team. <a href =" https://matrix.to/#/#thainlp:matrix.org " rel =" noopener " target =" _blank " ><img src =" https://matrix.to/img/matrix-badge.svg " alt =" Chat on Matrix " ></a >
30
-
31
27
| Version | Description | Status |
32
28
| :------:| :--:| :------:|
33
- | [ 5.1.0 ] ( https://github.com/PyThaiNLP/pythainlp/releases ) | Stable | [ Change Log] ( https://github.com/PyThaiNLP/pythainlp/issues/900 ) |
29
+ | [ 5.1.1 ] ( https://github.com/PyThaiNLP/pythainlp/releases ) | Stable | [ Change Log] ( https://github.com/PyThaiNLP/pythainlp/issues/900 ) |
34
30
| [ ` dev ` ] ( https://github.com/PyThaiNLP/pythainlp/tree/dev ) | Release Candidate for 5.2 | [ Change Log] ( https://github.com/PyThaiNLP/pythainlp/issues/1080 ) |
35
31
36
32
## Getting Started
Original file line number Diff line number Diff line change @@ -20,13 +20,9 @@ PyThaiNLP เป็นไลบารีภาษาไพทอนสำหร
20
20
pip install pythainlp
21
21
```
22
22
23
- ## ข่าวสาร
24
-
25
- > คุณสามารถพูดคุยหรือแชทกับทีม PyThaiNLP หรือผู้สนับสนุนคนอื่น ๆ ได้ที่ <a href =" https://matrix.to/#/#thainlp:matrix.org " rel =" noopener " target =" _blank " ><img src =" https://matrix.to/img/matrix-badge.svg " alt =" Chat on Matrix " ></a >
26
-
27
23
| รุ่น | คำอธิบาย | สถานะ |
28
24
| :------:| :--:| :------:|
29
- | [ 5.1.0 ] ( https://github.com/PyThaiNLP/pythainlp/releases ) | Stable | [ Change Log] ( https://github.com/PyThaiNLP/pythainlp/issues/900 ) |
25
+ | [ 5.1.1 ] ( https://github.com/PyThaiNLP/pythainlp/releases ) | Stable | [ Change Log] ( https://github.com/PyThaiNLP/pythainlp/issues/900 ) |
30
26
| [ ` dev ` ] ( https://github.com/PyThaiNLP/pythainlp/tree/dev ) | Release Candidate for 5.2 | [ Change Log] ( https://github.com/PyThaiNLP/pythainlp/issues/1080 ) |
31
27
32
28
ติดตามพวกเราบน [ PyThaiNLP Facebook page] ( https://www.facebook.com/pythainlp/ ) เพื่อรับข่าวสารเพิ่มเติม
Original file line number Diff line number Diff line change 11
11
"""
12
12
import os
13
13
14
- from fairseq .models .transformer import TransformerModel
15
- from sacremoses import MosesTokenizer
14
+ try :
15
+ from fairseq .models .transformer import TransformerModel
16
+ except ImportError :
17
+ raise ImportError ("Not found fairseq! Please install fairseq by pip install fairseq" )
18
+
19
+ try :
20
+ from sacremoses import MosesTokenizer
21
+ except ImportError :
22
+ raise ImportError ("Not found sacremoses! Please install sacremoses by pip install sacremoses" )
16
23
17
24
from pythainlp .corpus import download , get_corpus_path
18
25
Original file line number Diff line number Diff line change
1
+ # -*- coding: utf-8 -*-
2
+ # SPDX-FileCopyrightText: 2016-2025 PyThaiNLP Project
3
+ # SPDX-FileType: SOURCE
4
+ # SPDX-License-Identifier: Apache-2.0
1
5
from transformers import M2M100ForConditionalGeneration
2
6
3
7
from .tokenization_small100 import SMALL100Tokenizer
You can’t perform that action at this time.
0 commit comments