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.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

haikus-0.3.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: haikus-0.3.0.tar.gz
  • Upload date:
  • Size: 3.1 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.0.tar.gz
Algorithm Hash digest
SHA256 35dc0039beab738d0175573c45b598e5ba5c26f9f412e9d71c377760880c27a4
MD5 1d87ca47926a2c95d7a34ab69baaa15e
BLAKE2b-256 e05033b60685ae3c673c6d87bdab9b7f96820d6e859f042dc0099a96b04794ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: haikus-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d63aef3b3bbdd03cd6370a15b0a20a851e7818508596cc1614108e7f2c61e45
MD5 90e33ac5fb3746a4c11b9b2cd751617a
BLAKE2b-256 12e370c34c02472d200f11d74dc53cb38ac8ef809f2555f450fe3c1dee9028bb

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