SudachiDict-full 20201223.post1__tar.gz → 20251022__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ {
2
+ "version": "20251022",
3
+ "dict_version": "20251022",
4
+ "edition": "full"
5
+ }
@@ -0,0 +1,71 @@
1
+ Metadata-Version: 2.4
2
+ Name: SudachiDict-full
3
+ Version: 20251022
4
+ Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
+ Home-page: https://github.com/WorksApplications/SudachiDict
6
+ Author: Works Applications
7
+ Author-email: sudachi@worksap.co.jp
8
+ License: Apache-2.0
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE-2.0.txt
11
+ Requires-Dist: SudachiPy<0.7,>=0.5
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: license
18
+ Dynamic: license-file
19
+ Dynamic: requires-dist
20
+ Dynamic: summary
21
+
22
+ # Sudachi Dictionary for SudachiPy
23
+
24
+ - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
25
+ - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
26
+
27
+ Managing the dictionary resources as Python packages.
28
+
29
+ - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
30
+ - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
31
+ - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
32
+
33
+ The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
34
+
35
+ The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
36
+
37
+ ## Commands to download and set the dictionaries
38
+
39
+ In SudachiPy v0.5.2 and later, you can specify a dictionary directly from a command line or program.
40
+
41
+ **WARNING: `sudachipy link` is no longer available in SudachiPy v0.5.2 and later.**
42
+
43
+ Please see the following links for more details on the dictionary option.
44
+
45
+ - english
46
+ - [https://github.com/WorksApplications/SudachiPy#dictionary-edition](https://github.com/WorksApplications/SudachiPy#dictionary-edition)
47
+ - japanese
48
+ - [https://github.com/WorksApplications/SudachiPy/blob/develop/docs/tutorial.md#辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/develop/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
49
+
50
+ ### Install
51
+
52
+ ```bash
53
+ pip install sudachidict_core
54
+ ```
55
+
56
+ ```bash
57
+ pip install sudachidict_small
58
+ ```
59
+
60
+ ```bash
61
+ pip install sudachidict_full
62
+ ```
63
+
64
+ ### Dictionary option in SudachiPy before v0.5.2
65
+
66
+ In case you are using SudachiPy before v0.5.2, please visit the old SudachiPy documentation.
67
+
68
+ - english
69
+ - [https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition](https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition)
70
+ - japanese
71
+ - [https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
@@ -0,0 +1,50 @@
1
+ # Sudachi Dictionary for SudachiPy
2
+
3
+ - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
4
+ - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
5
+
6
+ Managing the dictionary resources as Python packages.
7
+
8
+ - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
9
+ - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
10
+ - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
11
+
12
+ The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
13
+
14
+ The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
15
+
16
+ ## Commands to download and set the dictionaries
17
+
18
+ In SudachiPy v0.5.2 and later, you can specify a dictionary directly from a command line or program.
19
+
20
+ **WARNING: `sudachipy link` is no longer available in SudachiPy v0.5.2 and later.**
21
+
22
+ Please see the following links for more details on the dictionary option.
23
+
24
+ - english
25
+ - [https://github.com/WorksApplications/SudachiPy#dictionary-edition](https://github.com/WorksApplications/SudachiPy#dictionary-edition)
26
+ - japanese
27
+ - [https://github.com/WorksApplications/SudachiPy/blob/develop/docs/tutorial.md#辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/develop/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
28
+
29
+ ### Install
30
+
31
+ ```bash
32
+ pip install sudachidict_core
33
+ ```
34
+
35
+ ```bash
36
+ pip install sudachidict_small
37
+ ```
38
+
39
+ ```bash
40
+ pip install sudachidict_full
41
+ ```
42
+
43
+ ### Dictionary option in SudachiPy before v0.5.2
44
+
45
+ In case you are using SudachiPy before v0.5.2, please visit the old SudachiPy documentation.
46
+
47
+ - english
48
+ - [https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition](https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition)
49
+ - japanese
50
+ - [https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
@@ -0,0 +1,71 @@
1
+ Metadata-Version: 2.4
2
+ Name: SudachiDict-full
3
+ Version: 20251022
4
+ Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
+ Home-page: https://github.com/WorksApplications/SudachiDict
6
+ Author: Works Applications
7
+ Author-email: sudachi@worksap.co.jp
8
+ License: Apache-2.0
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE-2.0.txt
11
+ Requires-Dist: SudachiPy<0.7,>=0.5
12
+ Dynamic: author
13
+ Dynamic: author-email
14
+ Dynamic: description
15
+ Dynamic: description-content-type
16
+ Dynamic: home-page
17
+ Dynamic: license
18
+ Dynamic: license-file
19
+ Dynamic: requires-dist
20
+ Dynamic: summary
21
+
22
+ # Sudachi Dictionary for SudachiPy
23
+
24
+ - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
25
+ - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
26
+
27
+ Managing the dictionary resources as Python packages.
28
+
29
+ - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
30
+ - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
31
+ - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
32
+
33
+ The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
34
+
35
+ The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
36
+
37
+ ## Commands to download and set the dictionaries
38
+
39
+ In SudachiPy v0.5.2 and later, you can specify a dictionary directly from a command line or program.
40
+
41
+ **WARNING: `sudachipy link` is no longer available in SudachiPy v0.5.2 and later.**
42
+
43
+ Please see the following links for more details on the dictionary option.
44
+
45
+ - english
46
+ - [https://github.com/WorksApplications/SudachiPy#dictionary-edition](https://github.com/WorksApplications/SudachiPy#dictionary-edition)
47
+ - japanese
48
+ - [https://github.com/WorksApplications/SudachiPy/blob/develop/docs/tutorial.md#辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/develop/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
49
+
50
+ ### Install
51
+
52
+ ```bash
53
+ pip install sudachidict_core
54
+ ```
55
+
56
+ ```bash
57
+ pip install sudachidict_small
58
+ ```
59
+
60
+ ```bash
61
+ pip install sudachidict_full
62
+ ```
63
+
64
+ ### Dictionary option in SudachiPy before v0.5.2
65
+
66
+ In case you are using SudachiPy before v0.5.2, please visit the old SudachiPy documentation.
67
+
68
+ - english
69
+ - [https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition](https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition)
70
+ - japanese
71
+ - [https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%辞書の種類](https://github.com/WorksApplications/SudachiPy/blob/v0.5.1/docs/tutorial.md#%E8%BE%9E%E6%9B%B8%E3%81%AE%E7%A8%AE%E9%A1%9E)
@@ -0,0 +1 @@
1
+ SudachiPy<0.7,>=0.5
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2020 Works Applications Co., Ltd.
1
+ # Copyright (c) 2020-2023 Works Applications Co., Ltd.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -12,14 +12,14 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- import setuptools
16
- import os
17
15
  import json
18
- from logging import getLogger
16
+ import os
17
+ import sys
19
18
  from urllib.parse import urlparse
20
19
  from urllib.request import urlretrieve
21
20
  from zipfile import ZipFile
22
21
 
22
+ import setuptools
23
23
 
24
24
  with open("INFO.json") as fh:
25
25
  dict_info = json.load(fh)
@@ -27,30 +27,27 @@ PKG_VERSION = dict_info["version"]
27
27
  DICT_VERSION = dict_info["dict_version"]
28
28
  DICT_EDITION = dict_info["edition"]
29
29
 
30
- ZIP_URL = "http://sudachi.s3-website-ap-northeast-1.amazonaws.com/sudachidict/"\
31
- "sudachi-dictionary-{}-{}.zip".format(DICT_VERSION, DICT_EDITION)
30
+ ZIP_URL = "https://d2ej7fkh96fzlu.cloudfront.net/sudachidict/" "sudachi-dictionary-{}-{}.zip".format(
31
+ DICT_VERSION, DICT_EDITION
32
+ )
32
33
  ZIP_NAME = urlparse(ZIP_URL).path.split("/")[-1]
33
34
  UNZIP_NAME = "sudachi-dictionary-{}".format(DICT_VERSION)
34
35
  PKG_DIR = "sudachidict_{}".format(DICT_EDITION)
35
36
  RESOURCE_DIR = os.path.join(PKG_DIR, "resources")
36
37
  BINARY_NAME = "system_{}.dic".format(DICT_EDITION)
37
38
 
38
-
39
- logger = getLogger(__name__)
40
-
41
39
  # Download and place the dictionary file
42
40
  if not os.path.exists(RESOURCE_DIR):
43
- logger.warning("Downloading the Sudachi dictionary (It may take a while) ...")
41
+ print("Downloading the binary Sudachi dictionary (it may take some time) ...", file=sys.stderr)
44
42
  _, _msg = urlretrieve(ZIP_URL, ZIP_NAME)
45
43
  with ZipFile(ZIP_NAME) as z:
46
44
  z.extractall()
47
45
  os.rename(UNZIP_NAME, RESOURCE_DIR)
48
- os.rename(os.path.join(RESOURCE_DIR, BINARY_NAME),
49
- os.path.join(RESOURCE_DIR, "system.dic"))
46
+ os.rename(os.path.join(RESOURCE_DIR, BINARY_NAME), os.path.join(RESOURCE_DIR, "system.dic"))
50
47
  os.remove(ZIP_NAME)
51
- logger.warning("... downloaded and placed the dictionary at `{}`.".format(RESOURCE_DIR))
48
+ print("downloaded and extracted dictionary to `{}`.".format(RESOURCE_DIR), file=sys.stderr)
52
49
 
53
- with open("README.md", "r") as fh:
50
+ with open("README.md", "r", encoding="utf-8") as fh:
54
51
  long_description = fh.read()
55
52
 
56
53
  setuptools.setup(
@@ -65,7 +62,5 @@ setuptools.setup(
65
62
  author_email="sudachi@worksap.co.jp",
66
63
  packages=setuptools.find_packages(),
67
64
  package_data={"": ["resources/*"]},
68
- install_requires=[
69
- "SudachiPy~=0.5.0"
70
- ],
65
+ install_requires=["SudachiPy>=0.5,<0.7"],
71
66
  )
@@ -1,5 +0,0 @@
1
- {
2
- "version": "20201223.post1",
3
- "dict_version": "20201223",
4
- "edition": "full"
5
- }
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: SudachiDict-full
3
- Version: 20201223.post1
4
- Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
- Home-page: https://github.com/WorksApplications/SudachiDict
6
- Author: Works Applications
7
- Author-email: sudachi@worksap.co.jp
8
- License: Apache-2.0
9
- Description: # Sudachi Dictionary for SudachiPy
10
-
11
- - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
12
- - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
13
-
14
- Managing the dictionary resources as Python packages.
15
-
16
- - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
17
- - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
18
- - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
19
-
20
- The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
21
-
22
- The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
23
-
24
-
25
- ## Commands to download and set the dictionaries
26
-
27
- ```bash
28
- $ pip install sudachidict_core
29
- ```
30
-
31
- ```bash
32
- $ pip install sudachidict_small
33
- $ sudachipy link -t small
34
- ```
35
-
36
- ```bash
37
- $ pip install sudachidict_full
38
- $ sudachipy link -t full
39
- ```
40
-
41
- Platform: UNKNOWN
42
- Description-Content-Type: text/markdown
@@ -1,31 +0,0 @@
1
- # Sudachi Dictionary for SudachiPy
2
-
3
- - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
4
- - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
5
-
6
- Managing the dictionary resources as Python packages.
7
-
8
- - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
9
- - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
10
- - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
11
-
12
- The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
13
-
14
- The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
15
-
16
-
17
- ## Commands to download and set the dictionaries
18
-
19
- ```bash
20
- $ pip install sudachidict_core
21
- ```
22
-
23
- ```bash
24
- $ pip install sudachidict_small
25
- $ sudachipy link -t small
26
- ```
27
-
28
- ```bash
29
- $ pip install sudachidict_full
30
- $ sudachipy link -t full
31
- ```
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: SudachiDict-full
3
- Version: 20201223.post1
4
- Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
- Home-page: https://github.com/WorksApplications/SudachiDict
6
- Author: Works Applications
7
- Author-email: sudachi@worksap.co.jp
8
- License: Apache-2.0
9
- Description: # Sudachi Dictionary for SudachiPy
10
-
11
- - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
12
- - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
13
-
14
- Managing the dictionary resources as Python packages.
15
-
16
- - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
17
- - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
18
- - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
19
-
20
- The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
21
-
22
- The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
23
-
24
-
25
- ## Commands to download and set the dictionaries
26
-
27
- ```bash
28
- $ pip install sudachidict_core
29
- ```
30
-
31
- ```bash
32
- $ pip install sudachidict_small
33
- $ sudachipy link -t small
34
- ```
35
-
36
- ```bash
37
- $ pip install sudachidict_full
38
- $ sudachipy link -t full
39
- ```
40
-
41
- Platform: UNKNOWN
42
- Description-Content-Type: text/markdown
@@ -1 +0,0 @@
1
- SudachiPy~=0.5.0