package com.ankurm.classicml; import java.util.List; /** The one contract every contender implements, so the harness measures them identically. */ public interface TextClassifier { String name(); void train(List train); /** The category, or {@code null} when the model has no basis to answer (counted as wrong by {@link Metrics}). */ Category predict(String text); }