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.12.tar.gz (7.7 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.12-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for typical_phrase_splitter-0.2.12.tar.gz
Algorithm Hash digest
SHA256 da4668a458e478cd8a62ca4972fa4ad1fc1cbfd03c97a43631f61b6ba7a1afec
MD5 5e7826464264bee86d91377d9aa0a78d
BLAKE2b-256 9a9d572d0d3c1061d5cd339207fe21e56e6cb99fdef8c9872f61b679f0111f6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for typical_phrase_splitter-0.2.12-py3-none-any.whl
Algorithm Hash digest
SHA256 29d00f3ee929107931cad96903881651f71f433a2ad3d0ae55895f46933397eb
MD5 6ac50c44040ec2e29bf3603a5e670e6a
BLAKE2b-256 ebbf17d1543ccaa1d5ac1880e9f9dc85f933f99d0829a7e5a24d0a55d2fae3be

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