BM25Encoder Objects

class BM25Encoder(TfidfEncoder)

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.