Toolbox for Japanese text.
Project description
Shikaku (詩客)
Toolbox for Japanese text.
Example
from shikaku import load_aozorabunko, TextModel, WordCloud
import matplotlib.pyplot as plt
# Aozora Bunko, author_id = 35, work_id = 1567 ==> Run, Melos!
text = load_aozorabunko(35, 1567)
# Text generator using Markov chains.
model = TextModel()
model.fit(text)
result = model.generate()
print(result)
# Word cloud.
wc = WordCloud()
wc.fit(text)
result = wc.generate()
result.to_file("wc.png")
# Visualize Markov chains (preliminary).
model = TextModel(state_size=1)
model.fit("吾輩は猫である。名前はまだない。")
model.plot()
plt.savefig("model.png")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shikaku-0.2.4.tar.gz.
File metadata
- Download URL: shikaku-0.2.4.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15dd54445f5f5a5bf715efa6ba80545f44dd7581bff923bc3ec238fe40e0a8b0
|
|
| MD5 |
62c951259ab47ffa7e14c94a377aa613
|
|
| BLAKE2b-256 |
05141410a896c8890fed84a9715ffd4e037f7e92b199c7d466dd08d9a6e785e6
|
Provenance
The following attestation bundles were made for shikaku-0.2.4.tar.gz:
Publisher:
release.yml on tueda/shikaku
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shikaku-0.2.4.tar.gz -
Subject digest:
15dd54445f5f5a5bf715efa6ba80545f44dd7581bff923bc3ec238fe40e0a8b0 - Sigstore transparency entry: 685568246
- Sigstore integration time:
-
Permalink:
tueda/shikaku@01eec88b5996efc64afae111fd27209451da72e9 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/tueda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@01eec88b5996efc64afae111fd27209451da72e9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file shikaku-0.2.4-py3-none-any.whl.
File metadata
- Download URL: shikaku-0.2.4-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f76eb1146a5951a7dbe5f67d03833cdf30e36b47cc32e31c86adf2747fc5dcd
|
|
| MD5 |
30893feee1eedf9ae6938c47992ec094
|
|
| BLAKE2b-256 |
a2e702e7792e60c5f9b2fc2d550fc09d05d1b0fe85a17e7fb583172778fb840e
|
Provenance
The following attestation bundles were made for shikaku-0.2.4-py3-none-any.whl:
Publisher:
release.yml on tueda/shikaku
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
shikaku-0.2.4-py3-none-any.whl -
Subject digest:
9f76eb1146a5951a7dbe5f67d03833cdf30e36b47cc32e31c86adf2747fc5dcd - Sigstore transparency entry: 685568247
- Sigstore integration time:
-
Permalink:
tueda/shikaku@01eec88b5996efc64afae111fd27209451da72e9 -
Branch / Tag:
refs/tags/0.2.4 - Owner: https://github.com/tueda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@01eec88b5996efc64afae111fd27209451da72e9 -
Trigger Event:
push
-
Statement type: