polodealvarado/late_interaction
027
Zero-Shot Text Classification — late_interaction
ColBERT-style token-level MaxSim scoring for fine-grained alignment.
This model encodes texts and candidate labels into a shared embedding space using BERT, enabling classification into arbitrary categories without retraining for new labels.
Training Details
Dataset
Trained on polodealvarado/zeroshot-classification.
Evaluation Results
Usage
from models.late_interaction import LateInteractionModel
model = LateInteractionModel.from_pretrained("polodealvarado/late_interaction")
predictions = model.predict(
texts=["The stock market crashed yesterday."],
labels=[["Finance", "Sports", "Biology", "Economy"]],
)
print(predictions)
# [{"text": "...", "scores": {"Finance": 0.98, "Economy": 0.85, ...}}]