Adaptive Classifier
A flexible, adaptive classification system that allows for dynamic addition of new classes and continuous learning from examples.
Usage
pip install adaptive-classifier
from adaptive_classifier import AdaptiveClassifier
classifier = AdaptiveClassifier.from_pretrained("adaptive-classifier/model-name")
texts = [
"The product works great!",
"Terrible experience",
"Neutral about this purchase"
]
labels = ["positive", "negative", "neutral"]
classifier.add_examples(texts, labels)
predictions = classifier.predict("This is amazing!")
print(predictions)