haikusは、与えられた俳句から季語を識別し、その俳句の形式と構造を分析するPythonモジュールです。
機能
季語の識別: 俳句に含まれる季語を識別します。
俳句の形式分析: 与えられた文字列がどのような種類の詩であるか判別します
使用方法
まず、モジュールをインポートします:
from haikus import haikus
次に、分析したい俳句をリスト形式で関数に渡します:
user_haiku = ["古池", "蛙飛び込む", "水の音"]
#入力配列は3項目or5項目がサポートされます
result = haikus(user_haiku)
print(result)
{'kigo': ['蛙'],
'yomi': ['ふるいけや', 'かえるとびこむ', 'みずのおと'],
'type': 'haiku',
'len': [0, 0, 0]}
このような形で
- 季語(配列)
- 俳句の読み(配列)
- 俳句の種類(俳句or川柳or短歌or自由律俳句)
- 既定文字数の過不足 字足らず、字余り(配列) が出力されます。
依存関係
PyKakasi: 日本語テキストのカナ変換に使用されます。
ライセンス
このプロジェクトは、季語検索によって使用された季語リストを含みます。この季語リストは、Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) ライセンスの下で提供されています。 クレジット https://jpsearch.go.jp/database/irc04 季語リストの原作者:国際日本文化研究センター
ライセンス
この季語リストは、以下の条件に従って使用されています:
表示:あなたは適切なクレジットを表示し、ライセンスへのリンクを提供し、変更があった場合はその旨を示さなければなりません。これらの条件は合理的な方法で行われるべきですが、ライセンス提供者によって提案された方法であることを意味するものではありません。
継承:あなたがこの素材をリミックス、変形、またはビルドアップする場合、あなたの貢献はオリジナルのライセンスと同じCC BY-SA 4.0 ライセンスの下で配布されなければなりません。
このライセンスの全文と情報は、次のリンクで確認できます:https://creativecommons.org/licenses/by-sa/4.0/
Metadata
Release files for haikus 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| haikus-0.3.8.tar.gz | 96.5 kB | Without provenance | Details for haikus-0.3.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| haikus-0.3.8-py3-none-any.whl | Python 3 | none | any | Details for haikus-0.3.8-py3-none-any.whl |
Total release size: 195.0 kB
Release files / haikus-0.3.8.tar.gz
| Download URL | haikus-0.3.8.tar.gz |
|---|---|
| Size | 96.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e59cf8bfae8faa51965a9b39d60aa511e68f053a53a1fd956e391e26dbb796e
|
|
BLAKE2b-256 checksum How to use checksums |
7ac22309ca1210318e3fc66007d0c8b1c3f959d9b3432d17a8b17a55fc6e145a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Release files / haikus-0.3.8-py3-none-any.whl
| Download URL | haikus-0.3.8-py3-none-any.whl |
|---|---|
| Size | 98.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc5566b062db047a8128db38a32be4195fcc84482f0f279dad34d825c5ee1799
|
|
BLAKE2b-256 checksum How to use checksums |
eb2189a60826a8973ba43bb24ed3747f26fa93467586bb79703670140901120e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.12
|
Security for haikus 0.3.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.