Client Referenceencoders
semantic_router.encoders.tfidf
TfidfEncoder Objects
class TfidfEncoder(SparseEncoder, FittableMixin)fit
def fit(routes: List[Route])Trains the encoder weights on the provided routes.
Arguments:
routes(List[Route]): List of routes to train the encoder on.