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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file typical_phrase_splitter-0.2.14.tar.gz.
File metadata
- Download URL: typical_phrase_splitter-0.2.14.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e9da2e3910eef5f9b791e9b1321a58d7ca5d2cb29b7a6349b6b5b38627c05ed
|
|
| MD5 |
7ef6e4e8b6a613769cece9354a3145b4
|
|
| BLAKE2b-256 |
e89a64dbe68f4bd1e808470923cd410015ecb61ac49ace2ed4c60251b1a761ab
|
File details
Details for the file typical_phrase_splitter-0.2.14-py3-none-any.whl.
File metadata
- Download URL: typical_phrase_splitter-0.2.14-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd1b15addb3752a89a70486aaf6504a6cc53ca683c4a42119825217bd9392301
|
|
| MD5 |
6d521dab4f1df236df09415d3032e1f4
|
|
| BLAKE2b-256 |
a18525defa783590085402e85b3653411a2f88e6e396363cb64503e3452a12f5
|