首页>
外国专利>
TEXT SIMILARITY ACQUISITION METHOD AND APPARATUS, AND ELECTRONIC DEVICE AND COMPUTER-READABLE STORAGE MEDIUM
TEXT SIMILARITY ACQUISITION METHOD AND APPARATUS, AND ELECTRONIC DEVICE AND COMPUTER-READABLE STORAGE MEDIUM
展开▼
机译:文本相似性采集方法和装置,以及电子设备和计算机可读存储介质
展开▼
页面导航
摘要
著录项
相似文献
摘要
A text similarity acquisition method and apparatus, and an electronic device and a computer-readable storage medium, relating to the field of machine learning. The method comprises: splicing two texts to be subjected to similarity comparison so as to form a spliced text, wherein the two texts respectively form a first text segment and a second text segment in the spliced text (210); performing character segmentation and vectorization processing on the spliced text to acquire a character vector of each character in the spliced text (220); for each character in the spliced text, calculating and acquiring a feature vector of each character using the character vector of each character, wherein the feature vector of each character represents a similar feature of each character to the spliced text (230); and calculating the similarity between the first text segment and the second text segment using the feature vector of each character in the first text segment and the feature vector of each character in the second text segment, and acquiring a similarity value representing the similarity between the first text segment and the second text segment (240). By using the method, the acquisition accuracy of text similarity can be improved.
展开▼