# US 2020/0394356 A1 · Text information processing method, device and terminal

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2020/0394356 A1
- Document ID: US20200394356A1
- Status: Published application
- Kind: A1
- Application number: 17/004,720
- Filed: 2020-08-27
- Published: 2020-12-17
- Earliest claimed: 2018-02-27
- Assignees: Beijing Dajia Internet Information Technology Co., Ltd.
- Applicants: Beijing Dajia Internet Information Technology Co., Ltd.
- Inventors: Zhiwei Zhang; Fan Yang
- Web page: https://patentgrep.com/patent/US20200394356A1

## CPC

- G06F 40/129: Handling non-Latin characters, e.g. kana-to-kanji conversion
- G06F 16/3343: {using phonetics}
- G06F 40/242: Dictionaries
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06N 3/02: Neural networks
- G06N 3/04: Architecture, e.g. interconnection topology
- G06V 10/82: using neural networks
- H04L 9/0643: {Hash functions, e.g. MD5, SHA, HMAC or f9 MAC}
- G06V 30/10: Character recognition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A text information processing method, device and terminal, wherein the method comprises: determining a pinyin character string corresponding to text information; using an N-tuple algorithm to convert the pinyin character string into a string set that comprises a plurality of character string elements; determining an index and the occurrence number, in a total string set, of each character string element in the string set; generating a pinyin hash vector corresponding to the text information according to the index and occurrence number corresponding to each character string element; and processing the pinyin hash vector by means of an embedded neural network to obtain continuous features corresponding to the text information.

## Claims

### Claim 1

A method for processing text information, wherein the method comprises:
determining a first pinyin string corresponding to text information;
determining a first string set based on the first pinyin string, wherein the first string set comprises a plurality of first string elements;
determining an index and an occurrence number of each first string element in a total string set;
generating a pinyin hash vector based on the index and the occurrence number; and
determining continuous features of the text information based on the pinyin hash vector and an embedded neural network.

### Claim 2 (depends on 1)

The method according to claim 1, wherein said determining the first string set, comprises:
determining the first string set by using a sliding window algorithm based on the first pinyin string, wherein the sliding window algorithm comprises a preset step length and a window size.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the method further comprise:
determining second pinyin strings of words in a dictionary;
generating a second string element by adding placeholders before and after a second pinyin string for each of the words respectively;
determining a second string set based on the second string element; and
generating the total string set by uniting second string sets.

### Claim 4 (depends on 1)

The method according to claim 1, wherein said generating a pinyin hash vector, comprises:
generating a zero vector, wherein a dimension of the zero vector is equal to that of the total string set;
determining a dimension of the index in the zero vector;
generating the pinyin hash vector by adjusting a numerical value of the dimension as the occurrence number.

### Claim 5

A terminal, comprising a memory, a processor and a program for processing text information, wherein the program is stored on the memory, the processor is configured to execute the program to implement followings;
determining a first pinyin string corresponding to text information;
determining a first string set based on the first pinyin string, wherein the first string set comprises a plurality of first string elements;
determining an index and an occurrence number, in a total string set, of each first string element;
generating a pinyin hash vector based on the index and the occurrence number; and
determining continuous features of the text information based on the pinyin hash vector and an embedded neural network.

### Claim 6 (depends on 5)

The terminal according to claim 5, wherein the processor is configured to execute the program to determine the first string set by:
determining the first string set by using a sliding window algorithm based on the first pinyin string, wherein the sliding window algorithm comprises a preset step length and a window size.

### Claim 7 (depends on 5)

The terminal according to claim 5, wherein the processor is configured to execute the program to generate the total string set by:
determining second pinyin strings of words in a dictionary;
generating a second string element by adding placeholders before and after a second pinyin string for each of the words respectively;
determining a second string set based on the second string element; and
generating the total string set by uniting second string sets.

### Claim 8 (depends on 5)

The terminal according to claim 5, wherein the processor is configured to execute the program to generate a pinyin hash vector by:
generating a zero vector, wherein a dimension of the zero vector is equal to that of the total string set,
determining a dimension, in the zero vector, of the index,
generating the pinyin hash vector by adjusting a numerical value of the dimension as the occurrence number.

### Claim 9

A computer readable storage medium, wherein the computer readable storage medium stores a program for processing text information, the program comprising sets of instructions for:
determining a first pinyin string corresponding to text information;
determining a first string set based on the first pinyin string, wherein the first string set comprises a plurality of first string elements;
determining an index and an occurrence number of each first string element in a total string set;
generating a pinyin hash vector based on the index and the occurrence number; and
determining continuous features of the text information based on the pinyin hash vector and an embedded neural network.

### Claim 10 (depends on 9)

The computer readable storage medium according to claim 9, wherein said determining the first string set, comprises:
determining the first string set by using a sliding window algorithm based on the first pinyin string, wherein the sliding window algorithm comprises a preset step length and a window size.

### Claim 11 (depends on 9)

The computer readable storage medium according to claim 9, wherein the program further comprises a set of instructions for:
determining second pinyin strings of words in a dictionary;
generating a second string element by adding placeholders before and after a second pinyin string for each of the words respectively;
determining a second string set based on the second string element; and
generating the total string set by uniting second string sets.

### Claim 12 (depends on 9)

The computer readable storage medium according to claim 9, wherein said generating a pinyin hash vector, comprises:
generating a zero vector, wherein a dimension of the zero vector is equal to that of the total string set;
determining a dimension of the index in the zero vector;
generating the pinyin hash vector by adjusting a numerical value of the dimension as the occurrence number.
