Skip to content

Commit 7123515

Browse files
committed
Try install just default features
1 parent 85c5fde commit 7123515

21 files changed

+43
-30
lines changed

.github/workflows/unittest-macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Install PyThaiNLP
6363
shell: bash -l {0}
6464
run: |
65-
python -m pip install .[icu,isa,thai2fit,translate,textaugment,wordnet,generate,nlpo3,thai_nner,wsd]
65+
python -m pip install .
6666
python -m nltk.downloader omw-1.4
6767
- name: Test
6868
shell: bash -l {0}

.github/workflows/unittest-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
python -m pip install "https://github.com/cgohlke/pyicu-build/releases/download/v2.14/PyICU-2.14-cp39-cp39-win_amd64.whl"
5050
- name: Install PyTorch
5151
shell: powershell
52-
run: |
53-
python -m pip install http://download.pytorch.org/whl/cpu/torch-2.5.1%2Bcpu-cp39-cp39-win_amd64.whl
52+
run: python -m pip install torch
53+
# python -m pip install http://download.pytorch.org/whl/cpu/torch-2.5.1%2Bcpu-cp39-cp39-win_amd64.whl
5454
# get pip wheel link from http://download.pytorch.org/whl/torch/
5555
# - name: Install dependencies
5656
# shell: powershell
@@ -61,7 +61,7 @@ jobs:
6161
- name: Install PyThaiNLP
6262
shell: powershell
6363
run: |
64-
python -m pip install .[icu,isa,thai2fit,translate,textaugment,wordnet,generate,nlpo3,thai_nner,wsd]
64+
python -m pip install .
6565
python -m nltk.downloader omw-1.4
6666
- name: Test
6767
shell: powershell

.github/workflows/unitttest-ubuntu.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
python -m pip install coverage coveralls pytest
3838
- name: Install PyTorch
3939
run: |
40-
python -m pip install http://download.pytorch.org/whl/cpu/torch-2.5.1%2Bcpu-cp39-cp39-linux_x86_64.whl
40+
python -m pip install torch
41+
# python -m pip install http://download.pytorch.org/whl/cpu/torch-2.5.1%2Bcpu-cp39-cp39-linux_x86_64.whl
4142
# get pip wheel link from http://download.pytorch.org/whl/torch/
4243
# - name: Install dependencies
4344
# env:
@@ -46,7 +47,7 @@ jobs:
4647
# python -m pip install -r docker_requirements.txt
4748
- name: Install PyThaiNLP
4849
run: |
49-
python -m pip install .[icu,isa,thai2fit,translate,textaugment,wordnet,generate,nlpo3,thai_nner,wsd]
50+
python -m pip install .
5051
python -m nltk.downloader omw-1.4
5152
- name: Test
5253
env:

tests/test_ancient.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
33
# SPDX-License-Identifier: Apache-2.0
44
import unittest
5+
56
from pythainlp.ancient import aksonhan_to_current
67

78

tests/test_augment.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
import unittest
6+
67
import nltk
8+
79
from pythainlp.augment import WordNetAug
8-
from pythainlp.augment.wordnet import postype2wordnet
10+
911
# from pythainlp.augment.lm import Thai2transformersAug
1012
# from pythainlp.augment.lm.phayathaibert import ThaiTextAugmenter
13+
from pythainlp.augment.word2vec import LTW2VAug
1114
from pythainlp.augment.word2vec.bpemb_wv import BPEmbAug
12-
from pythainlp.augment.word2vec import (
13-
LTW2VAug
14-
)
15+
from pythainlp.augment.wordnet import postype2wordnet
1516

1617

1718
class TestTextaugmentPackage(unittest.TestCase):

tests/test_benchmarks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import numpy as np
88
import yaml
9+
910
from pythainlp.benchmarks import word_tokenization
1011

1112
with open("./tests/data/sentences.yml", "r", encoding="utf8") as stream:

tests/test_classify.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
import unittest
6+
67
from pythainlp.classify import GzipModel
78

89

tests/test_coref.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
import unittest
6+
67
from pythainlp.coref import coreference_resolution
78

89

tests/test_el.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
import unittest
6+
67
from pythainlp.el import EntityLinker
78

89

tests/test_generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import unittest
66

7-
from pythainlp.generate import Unigram, Bigram, Trigram
7+
from pythainlp.generate import Bigram, Trigram, Unigram
88
from pythainlp.generate.thai2fit import gen_sentence
99

1010

0 commit comments

Comments
 (0)