Skip to main content

This repository includes an example of a First Class Swarmauri Example.

Project description

Swamauri Logo

PyPI - Downloads GitHub Hits PyPI - Python Version PyPI - License PyPI - swarmauri_tool_sentencecomplexity


Swarmauri Tool Sentencecomplexity

A tool for evaluating sentence complexity based on average sentence length and the number of clauses.

Installation

pip install swarmauri_tool_sentencecomplexity

Usage

The SentenceComplexityTool analyzes text and returns metrics about sentence complexity.

from swarmauri.tools.sentencecomplexity import SentenceComplexityTool

# Initialize the tool
tool = SentenceComplexityTool()

# Analyze text
text = "This is a simple sentence. This is another sentence, with a clause."
result = tool(text)

print(result)
# Output: {
#     'average_sentence_length': 7.5,
#     'average_clauses_per_sentence': 1.5
# }

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

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

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

File details

Details for the file swarmauri_tool_sentencecomplexity-0.7.1.dev1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.1.dev1.tar.gz
Algorithm Hash digest
SHA256 6b6dd009d66b6c5ec67ac1cbbe6b82eda9acb2c0800e19858d0bcaf69a7100b7
MD5 b4bbf9ef324638ccfebc1ba22a370455
BLAKE2b-256 44e66d026ed19e43f4764334d029e0918e82279cadd8ead0b025304804a1b314

See more details on using hashes here.

File details

Details for the file swarmauri_tool_sentencecomplexity-0.7.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 1538aa53d011bbac7db02a33b0d70c09437fe1f32fc03e41bd288596dcba45a9
MD5 0eec84e169311d1f1e0ca9bb6964a4e0
BLAKE2b-256 9f7140cd4e4ed02f2a713ed45d4424854beeffa154cbb7f1c9e2b8c17d96d60b

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