Metadata-Version: 2.4
Name: textsimilarityplus
Version: 0.1.0
Summary: A simple ML package to compute text similarity using TF-IDF
Author: Devam Shah
License: MIT
License-File: LICENSE
Keywords: machine-learning,nlp,text-similarity
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: scikit-learn>=1.0
Description-Content-Type: text/markdown

# textsimilarity

A simple ML package to compute text similarity using TF-IDF.

## Installation
```bash
pip install textsimilarity
```

## Usage
```python
from textsimilarity import compute_similarity, rank_by_similarity

# Compare two texts
score = compute_similarity("Machine learning is great", "I love AI and machine learning")
print(score)

# Rank documents by similarity to a query
docs = [
    "Python is great for data science",
    "I play football",
    "Machine learning is amazing"
]
print(rank_by_similarity("I love Python and machine learning", docs))
```
