What Are Encoders?

Encoders translate text-based labels (like intents and slot types) into numerical values that the model can work with. This process standardizes the inputs and outputs, ensuring consistency across training, evaluation, and inference.

  1. Intent Label Encoder:

  2. Slot Label Encoder:

Steps in the Encoding Process

Take a close look at the fit_encoders function in dataset.py. It performs the following steps:

  1. Load the Ontology:

  2. Fit the Intent Label Encoder:

  3. Generate BIO Tags for Slots:

Done? Proceed with Our Dataset .