TEXT DATA INFERENCE METHOD AND APPARATUS, STORAGE MEDIUM, AND ELECTRONIC DEVICE
案件概要
出願人
Tencent Technology (Shenzhen) Company Limited
発明者
Peng MENG; Hengfeng TIAN
IPC分類
CPC分類
The present disclosure discloses a text data inference method and apparatus, a storage medium, and an electronic device. The method includes the following operations: acquiring initial token sequences corresponding to N pieces of text data, N being an integer greater than 1, and one token in each initial token sequence characterizing one character in corresponding text data; concatenating N initial token sequences into a concatenated token sequence; and performing inference on the concatenated token sequence to obtain N reply token sequences, the N reply token sequences being configured for generating reply data of the N pieces of text data, and a starting token in each reply token sequence being obtained by: performing, in the concatenated token sequence, inference on tokens belonging to the same initial token sequence.
原文(中国語)
The present disclosure discloses a text data inference method and apparatus, a storage medium, and an electronic device. The method includes the following operations: acquiring initial token sequences corresponding to N pieces of text data, N being an integer greater than 1, and one token in each initial token sequence characterizing one character in corresponding text data; concatenating N initial token sequences into a concatenated token sequence; and performing inference on the concatenated token sequence to obtain N reply token sequences, the N reply token sequences being configured for generating reply data of the N pieces of text data, and a starting token in each reply token sequence being obtained by: performing, in the concatenated token sequence, inference on tokens belonging to the same initial token sequence.
外部リソース