Skip to main content

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

Project description

Swamauri Logo

PyPI - Downloads 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

swarmauri_tool_sentencecomplexity-0.7.4.tar.gz (6.9 kB view details)

Uploaded Source

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.4.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.4.tar.gz
Algorithm Hash digest
SHA256 6c0eb1fb46fec1696a3d08a09a697f6298cc9ca91c1208e3d310b5dd16bdc8b2
MD5 0a83fe11de68bfb873c2dcc80ff3811d
BLAKE2b-256 9002a3e815752750b1437c15cf2e7210bf84dc0251e54d9f26c52747530f13f4

See more details on using hashes here.

File details

Details for the file swarmauri_tool_sentencecomplexity-0.7.4-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_tool_sentencecomplexity-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5f87d401f16110fd25fbd5ff7d6ba63e156ded2de505e75b0c82e01dcd380865
MD5 79984d9d7397d2956f4eb4419f883f6c
BLAKE2b-256 9edd1d440db0e5df1845f1cc75cf856a186f089eb8e45bb4116737f3b40da9b2

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