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.10.tar.gz (7.6 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.10-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for typical_phrase_splitter-0.2.10.tar.gz
Algorithm Hash digest
SHA256 9bcb31c480cf6219303372109f6922d201c1a63f9675e940ce78666f2b0ed513
MD5 2cd1108f1f7357e666172dc10645b39f
BLAKE2b-256 8c60e2d9d69be0a252d3d999564c83e75836b5c5b04d601b22a08eee2aa53e69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typical_phrase_splitter-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2b10ab51b2c9ddffdb126262e20c5dc3acfffb647b88aa91585458a4fd224c91
MD5 469f027e85e9a2eb49563128b1d07075
BLAKE2b-256 f01698fd2c50f4d68ad4bd4b3eb667eb9779b04213dc7c119057f597cf8d546d

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