SudachiDict-full 20200722__tar.gz → 20200722.post2__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.

Potentially problematic release.


This version of SudachiDict-full might be problematic. Click here for more details.

@@ -0,0 +1,5 @@
1
+ {
2
+ "version": "20200722.post2",
3
+ "dict_version": "20200722",
4
+ "edition": "full"
5
+ }
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.1
2
+ Name: SudachiDict-full
3
+ Version: 20200722.post2
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
+
12
+ # Sudachi Dictionary for SudachiPy
13
+
14
+ - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
15
+ - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
16
+
17
+ Managing the dictionary resources as Python packages.
18
+
19
+ - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
20
+ - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
21
+ - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
22
+
23
+ The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
24
+
25
+ The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
26
+
27
+ ## Commands to download and set the dictionaries
28
+
29
+ In SudachiPy v0.5.2 and later, you can specify a dictionary directly from a command line or program.
30
+
31
+ **WARNING: `sudachipy link` is no longer available in SudachiPy v0.5.2 and later.**
32
+
33
+ Please see the following links for more details on the dictionary option.
34
+
35
+ - english
36
+ - [https://github.com/WorksApplications/SudachiPy#dictionary-edition](https://github.com/WorksApplications/SudachiPy#dictionary-edition)
37
+ - japanese
38
+ - [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)
39
+
40
+ ### Install
41
+
42
+ ```bash
43
+ pip install sudachidict_core
44
+ ```
45
+
46
+ ```bash
47
+ pip install sudachidict_small
48
+ ```
49
+
50
+ ```bash
51
+ pip install sudachidict_full
52
+ ```
53
+
54
+ ### Dictionary option in SudachiPy before v0.5.2
55
+
56
+ In case you are using SudachiPy before v0.5.2, please visit the old SudachiPy documentation.
57
+
58
+ - english
59
+ - [https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition](https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition)
60
+ - japanese
61
+ - [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,61 @@
1
+ Metadata-Version: 2.1
2
+ Name: SudachiDict-full
3
+ Version: 20200722.post2
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
+
12
+ # Sudachi Dictionary for SudachiPy
13
+
14
+ - [WorksApplications/SudachiDict](https://github.com/WorksApplications/SudachiDict)
15
+ - [WorksApplications/SudachiPy](https://github.com/WorksApplications/SudachiPy)
16
+
17
+ Managing the dictionary resources as Python packages.
18
+
19
+ - [SudachiDict-small · PyPI](https://pypi.org/project/SudachiDict-small/)
20
+ - [SudachiDict-core · PyPI](https://pypi.org/project/SudachiDict-core/)
21
+ - [SudachiDict-full · PyPI](https://pypi.org/project/SudachiDict-full/)
22
+
23
+ The dictionary files are not included in the packages; It will be downloaded upon installation (the procedure in `setup.py`).
24
+
25
+ The version (e.g., `20200330`) and the edition (`small`, `core`, or `full`) is specified in `INFO.json`.
26
+
27
+ ## Commands to download and set the dictionaries
28
+
29
+ In SudachiPy v0.5.2 and later, you can specify a dictionary directly from a command line or program.
30
+
31
+ **WARNING: `sudachipy link` is no longer available in SudachiPy v0.5.2 and later.**
32
+
33
+ Please see the following links for more details on the dictionary option.
34
+
35
+ - english
36
+ - [https://github.com/WorksApplications/SudachiPy#dictionary-edition](https://github.com/WorksApplications/SudachiPy#dictionary-edition)
37
+ - japanese
38
+ - [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)
39
+
40
+ ### Install
41
+
42
+ ```bash
43
+ pip install sudachidict_core
44
+ ```
45
+
46
+ ```bash
47
+ pip install sudachidict_small
48
+ ```
49
+
50
+ ```bash
51
+ pip install sudachidict_full
52
+ ```
53
+
54
+ ### Dictionary option in SudachiPy before v0.5.2
55
+
56
+ In case you are using SudachiPy before v0.5.2, please visit the old SudachiPy documentation.
57
+
58
+ - english
59
+ - [https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition](https://github.com/WorksApplications/SudachiPy/tree/v0.5.1#dictionary-edition)
60
+ - japanese
61
+ - [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.
@@ -15,19 +15,18 @@
15
15
  import setuptools
16
16
  import os
17
17
  import json
18
- from logging import getLogger
18
+ import sys
19
19
  from urllib.parse import urlparse
20
20
  from urllib.request import urlretrieve
21
21
  from zipfile import ZipFile
22
22
 
23
-
24
23
  with open("INFO.json") as fh:
25
24
  dict_info = json.load(fh)
26
- DICT_VERSION = dict_info["version"]
25
+ PKG_VERSION = dict_info["version"]
26
+ DICT_VERSION = dict_info["dict_version"]
27
27
  DICT_EDITION = dict_info["edition"]
28
28
 
29
- ZIP_URL = "https://object-storage.tyo2.conoha.io/v1/"\
30
- "nc_2520839e1f9641b08211a5c85243124a/sudachi/"\
29
+ ZIP_URL = "https://d2ej7fkh96fzlu.cloudfront.net/sudachidict/" \
31
30
  "sudachi-dictionary-{}-{}.zip".format(DICT_VERSION, DICT_EDITION)
32
31
  ZIP_NAME = urlparse(ZIP_URL).path.split("/")[-1]
33
32
  UNZIP_NAME = "sudachi-dictionary-{}".format(DICT_VERSION)
@@ -35,12 +34,9 @@ PKG_DIR = "sudachidict_{}".format(DICT_EDITION)
35
34
  RESOURCE_DIR = os.path.join(PKG_DIR, "resources")
36
35
  BINARY_NAME = "system_{}.dic".format(DICT_EDITION)
37
36
 
38
-
39
- logger = getLogger(__name__)
40
-
41
37
  # Download and place the dictionary file
42
38
  if not os.path.exists(RESOURCE_DIR):
43
- logger.warning("Downloading the Sudachi dictionary (It may take a while) ...")
39
+ print("Downloading the binary Sudachi dictionary (it may take some time) ...", file=sys.stderr)
44
40
  _, _msg = urlretrieve(ZIP_URL, ZIP_NAME)
45
41
  with ZipFile(ZIP_NAME) as z:
46
42
  z.extractall()
@@ -48,24 +44,24 @@ if not os.path.exists(RESOURCE_DIR):
48
44
  os.rename(os.path.join(RESOURCE_DIR, BINARY_NAME),
49
45
  os.path.join(RESOURCE_DIR, "system.dic"))
50
46
  os.remove(ZIP_NAME)
51
- logger.warning("... downloaded and placed the dictionary at `{}`.".format(RESOURCE_DIR))
47
+ print("downloaded and extracted dictionary to `{}`.".format(RESOURCE_DIR), file=sys.stderr)
52
48
 
53
- with open("README.md", "r") as fh:
49
+ with open("README.md", "r", encoding="utf-8") as fh:
54
50
  long_description = fh.read()
55
51
 
56
52
  setuptools.setup(
57
53
  name="SudachiDict-{}".format(DICT_EDITION),
58
- version=DICT_VERSION,
54
+ version=PKG_VERSION,
59
55
  description="Sudachi Dictionary for SudachiPy - {} Edition".format(DICT_EDITION.title()),
60
56
  long_description=long_description,
61
57
  long_description_content_type="text/markdown",
62
58
  url="https://github.com/WorksApplications/SudachiDict",
63
59
  license="Apache-2.0",
64
60
  author="Works Applications",
65
- author_email="hisamoto_s@worksap.co.jp",
61
+ author_email="sudachi@worksap.co.jp",
66
62
  packages=setuptools.find_packages(),
67
63
  package_data={"": ["resources/*"]},
68
64
  install_requires=[
69
- "SudachiPy~=0.4.4"
65
+ "SudachiPy>=0.5,<0.7"
70
66
  ],
71
67
  )
@@ -1,4 +0,0 @@
1
- {
2
- "version": "20200722",
3
- "edition": "full"
4
- }
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: SudachiDict-full
3
- Version: 20200722
4
- Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
- Home-page: https://github.com/WorksApplications/SudachiDict
6
- Author: Works Applications
7
- Author-email: hisamoto_s@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: 20200722
4
- Summary: Sudachi Dictionary for SudachiPy - Full Edition
5
- Home-page: https://github.com/WorksApplications/SudachiDict
6
- Author: Works Applications
7
- Author-email: hisamoto_s@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.4.4