From bae08a5323211aa6f3bd86ff0f914a48dc280cfe Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Mon, 16 Nov 2020 15:53:43 +0700 Subject: [PATCH 1/4] Update setup.py --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3befb9020..117fc9928 100644 --- a/setup.py +++ b/setup.py @@ -96,7 +96,7 @@ "sentenceseg_crfcut.model", "stopwords_th.txt", "syllables_th.txt", - "thailand_provinces_th.txt", + "thailand_provinces_th.csv", "tnc_freq.txt", "ttc_freq.txt", "wordnet_th.db", @@ -104,6 +104,7 @@ "words_th_thai2fit_201810.txt", ], }, + include_package_data = True, install_requires=requirements, extras_require=extras, license="Apache Software License 2.0", From 119b8478485c28acafda81ee21ff04a5f7013055 Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Mon, 16 Nov 2020 15:55:20 +0700 Subject: [PATCH 2/4] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 117fc9928..b47a4ad13 100644 --- a/setup.py +++ b/setup.py @@ -104,7 +104,7 @@ "words_th_thai2fit_201810.txt", ], }, - include_package_data = True, + include_package_data=True, install_requires=requirements, extras_require=extras, license="Apache Software License 2.0", From 496703c53ff89600e89b801578ecaf7b59120e78 Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Mon, 16 Nov 2020 16:00:56 +0700 Subject: [PATCH 3/4] Change package_data in setup.py --- setup.py | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/setup.py b/setup.py index b47a4ad13..e2b0893eb 100644 --- a/setup.py +++ b/setup.py @@ -82,26 +82,8 @@ test_suite="tests", python_requires=">=3.6", package_data={ - "pythainlp.corpus": [ - "corpus_license.md", - "countries_th.txt", - "etcc.txt", - "negations_th.txt", - "person_names_female_th.txt", - "person_names_male_th.txt", - "pos_orchid_perceptron.pkl", - "pos_orchid_unigram.json", - "pos_ud_perceptron.pkl", - "pos_ud_unigram.json", - "sentenceseg_crfcut.model", - "stopwords_th.txt", - "syllables_th.txt", - "thailand_provinces_th.csv", - "tnc_freq.txt", - "ttc_freq.txt", - "wordnet_th.db", - "words_th.txt", - "words_th_thai2fit_201810.txt", + "pythainlp": [ + "corpus/*", ], }, include_package_data=True, From 957575197815b03536ceb0aad60c4ce580cb433b Mon Sep 17 00:00:00 2001 From: Wannaphong Phatthiyaphaibun Date: Mon, 16 Nov 2020 16:12:29 +0700 Subject: [PATCH 4/4] Fix GitHub CI Test --- .github/workflows/pythainlp-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pythainlp-test.yml b/.github/workflows/pythainlp-test.yml index d397665f9..8b185a2b0 100644 --- a/.github/workflows/pythainlp-test.yml +++ b/.github/workflows/pythainlp-test.yml @@ -23,6 +23,7 @@ jobs: run: | python -m pip install --upgrade pip pytest wheel flake8 if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install tensorflow==2.1.0 pip install torch==1.5.0 torchvision==0.6.0 -f https://download.pytorch.org/whl/torch_stable.html pip install .[full] pip install deepcut coverage coveralls