Skip to content

m-ah07/text-analysis-service-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Text Analysis Service (Python)

A Python-based service for performing advanced text analysis, including:

  • Counting words, characters, and sentences.
  • Identifying the most frequent words.
  • Supporting customizable options like excluding stopwords.

πŸš€ Features

  • Word Count: Count the total words in the text.
  • Character Count: Count characters with or without spaces.
  • Sentence Count: Count the number of sentences in the text.
  • Frequent Words: Identify the top frequent words in the text.

πŸ”§ Installation

Clone the repository:

git clone https://github.com/m-ah07/text-analysis-service-python.git

πŸ“– Usage

Here's how to use the service:

from src.text_analyzer import TextAnalyzer

text = "This is an example text for analysis."
analyzer = TextAnalyzer(text)

print("Word count:", analyzer.count_words())
print("Character count:", analyzer.count_characters())
print("Sentence count:", analyzer.count_sentences())
print("Frequent words:", analyzer.find_frequent_words())

πŸ“‚ Directory Structure

text-analysis-service-python/
β”œβ”€β”€ examples/
β”‚   └── example.py
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ __init__.py
β”‚   └── text_analyzer.py
β”œβ”€β”€ LICENSE
β”œβ”€β”€ .gitignore
└── README.md

🀝 Contributing

Feel free to fork this repository and submit pull requests to enhance functionality or add features.

🌟 Show Your Support

If you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!

Releases

No releases published

Packages

No packages published

Languages