batchDecode method

List<String> batchDecode(
  1. List<List<int>> batchIds, {
  2. bool skipSpecialTokens = true,
})

Batch decode: decode multiple sequences.

Implementation

List<String> batchDecode(List<List<int>> batchIds,
    {bool skipSpecialTokens = true}) {
  return batchIds
      .map((ids) => decode(ids, skipSpecialTokens: skipSpecialTokens))
      .toList();
}