Skip to main content

A package to split sentences into typical segments using OpenAI API

Project description

Typical Phrase Splitter

A Python package that splits sentences into typical segments using OpenAI API.

Installation

To install this package, run:

pip install typical-phrase-splitter

python -m spacy download en_core_web_sm

Command-Line Usage

After installation, you can use the split-phrase command to split sentences into typical segments. The syntax is as follows:

split-phrase "[sentence]" "[your-openai-api-key]"

Optional Flags: -n, --num_queries (Number of times to query the API. Default is 1; if greater than 1, majority voting will be used to determine the typical segments.)

-f, --format (Output format, "json" for structured output with last_atypical_phrase, "list" for a plain list assuming no last_atypical_phrase. Default is "json")

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

typical_phrase_splitter-0.2.9.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

typical_phrase_splitter-0.2.9-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file typical_phrase_splitter-0.2.9.tar.gz.

File metadata

  • Download URL: typical_phrase_splitter-0.2.9.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for typical_phrase_splitter-0.2.9.tar.gz
Algorithm Hash digest
SHA256 3ff10fe989b2234cc1758ae5970a919fd06a103bc1e25dfbdf8ec43dded868c4
MD5 e225ec59f690b516f92f654a34a0595f
BLAKE2b-256 a38026a7c7fbbfb08cd6a7ef28e9c26e3eb7c7ab6b17989baec4e5d4a5f2a5f5

See more details on using hashes here.

File details

Details for the file typical_phrase_splitter-0.2.9-py3-none-any.whl.

File metadata

File hashes

Hashes for typical_phrase_splitter-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 b2302794936f5de26401dc6601f52e7f7e90da3ba73e724aba79d97a232a0836
MD5 92ee121b22cff528a57abb34d9aaea36
BLAKE2b-256 0143bb370bd89804c1d2829227b57145d65822a37e9e351354b654f7eacd9883

See more details on using hashes here.

Supported by

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