Skip to main content

A Python package for analyzing haikus.

Project description

haikus

haikusは、与えられた俳句から季語を識別し、その俳句の形式と構造を分析するPythonモジュールです。 機能

季語の識別: 俳句に含まれる季語を識別します。
俳句の形式分析: 与えられた俳句が伝統的な5-7-5の構造を持つかどうかを分析します。

使用方法

まず、モジュールをインポートします:

python

from haikus import haikus

次に、分析したい俳句をリスト形式で関数に渡します:

python

user_haiku = ["古池", "蛙飛び込む", "水の音"] result = haikus(user_haiku) print(result)

依存関係

PyKakasi: 日本語テキストのカナ変換に使用されます。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haikus-0.3.6.tar.gz (94.7 kB view details)

Uploaded Source

Built Distribution

haikus-0.3.6-py3-none-any.whl (97.6 kB view details)

Uploaded Python 3

File details

Details for the file haikus-0.3.6.tar.gz.

File metadata

  • Download URL: haikus-0.3.6.tar.gz
  • Upload date:
  • Size: 94.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for haikus-0.3.6.tar.gz
Algorithm Hash digest
SHA256 80a33173fa038f391ab17fe7f5d646be42595c6b856f1d684a4f1eb410b72d28
MD5 7d2cd68e4896f8fa6e0a2defb752a916
BLAKE2b-256 6690585f73a4d8571faa912635bd97cb59b182a2c62a59e17e6a824a7172a536

See more details on using hashes here.

File details

Details for the file haikus-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: haikus-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 97.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for haikus-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f02704183b7d35c51108c7dd09e89aeeefb22644f348bca38b742685104ee8a5
MD5 7ccecd13c1688caf8d62eb518750ad88
BLAKE2b-256 606c6ab6e3b52d197ec008734b7cfe471ef764b6e5f3894d3457bfb5f8afea80

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page