Batch-encodes multiple texts into a batchSize, maxLength tensor.
batchSize, maxLength
List<List<double>> encodeBatch(List<String> texts) { return texts.map((t) => encodeAsTensor(t)[0]).toList(); }