# US 2025/0209264 A1 · Text processing method and apparatus, electronic device, and storage medium

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

- Number: US 2025/0209264 A1
- Document ID: US20250209264A1
- Status: Published application
- Kind: A1
- Application number: 18/920,816
- Filed: 2024-10-18
- Published: 2025-06-26
- Earliest claimed: 2023-12-25
- Assignees: Beijing Youzhuju Network Technology Co., Ltd.
- Applicants: Beijing Youzhuju Network Technology Co., Ltd.
- Inventors: Xiaoya CHEN; Huiying LIN; Qiang LU; Weicheng FU
- Web page: https://patentgrep.com/patent/US20250209264A1

## CPC

- G06F 40/237: Lexical tools
- G06F 40/242: Dictionaries
- G06F 40/247: Thesauruses; Synonyms
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 40/58: Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A text processing method and apparatus, an electronic device, and a storage medium are provided. The text processing method includes: obtaining a first text to be processed; determining a target keyword based on the first text; displaying a first graphical user interface, displaying the first text in a first display region of the first graphical user interface, and displaying the target keyword in a second display region of the first graphical user interface; and importing the target keyword currently displayed in the second display region into a target lexicon.

## Claims

### Claim 1

A text processing method, comprising:
obtaining a first text to be processed;
determining a target keyword based on the first text;
displaying a first graphical user interface, displaying the first text in a first display region of the first graphical user interface, and displaying the target keyword in a second display region of the first graphical user interface; and
importing the target keyword currently displayed in the second display region into a target lexicon.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the target keyword is highlighted in the first text displayed in the first display region.

### Claim 3 (depends on 1)

The method according to claim 1, further comprising:
obtaining a translation corresponding to the target keyword; and
the displaying the target keyword in the second display region of the first graphical user interface comprises: displaying the target keyword and the translation corresponding to the target keyword in the second display region.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the importing the target keyword currently displayed in the second display region into a target lexicon comprises:
storing the target keyword currently displayed in the second display region into a first lexicon; and/or
storing the target keyword currently displayed in the second display region and the translation corresponding to the target keyword into a second lexicon;
wherein the first lexicon comprises a lexicon used for speech recognition; and the second lexicon comprises a lexicon used for storing translation terminologies.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the displaying the target keyword in the second display region of the first graphical user interface comprises:
sequentially displaying target keywords in the second display region based on a positional relationship between the target keywords in the first text.

### Claim 6 (depends on 1)

The method according to claim 1, further comprising:
updating the target keyword displayed in the second display region in response to an input of a user.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the determining a target keyword based on the first text comprises:
constructing a target instruction for a target language model based on the first text; and
inputting the target instruction into the target language model to obtain the target keyword.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the constructing a target instruction for a target language model based on the first text comprises:
in response to a total number of characters in a current first text exceeding a first threshold N, determining a first target text based on a last target symbol in first N characters in the current first text, wherein N is a positive integer; and
constructing an instruction for the target language model based on the first target text.

### Claim 9

An electronic device, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store a program code, and the at least one processor is configured to call the program code stored in the memory to enable the electronic device to:
obtain a first text to be processed;
determine a target keyword based on the first text;
display a first graphical user interface, display the first text in a first display region of the first graphical user interface, and display the target keyword in a second display region of the first graphical user interface; and
import the target keyword currently displayed in the second display region into a target lexicon.

### Claim 10

A non-transitory computer storage medium, storing a program code,
wherein when the program code is executed by a computer device, the computer device is caused to:
obtain a first text to be processed;
determine a target keyword based on the first text;
display a first graphical user interface, display the first text in a first display region of the first graphical user interface, and display the target keyword in a second display region of the first graphical user interface; and
import the target keyword currently displayed in the second display region into a target lexicon.

### Claim 11 (depends on 9)

The electronic device according to claim 9, wherein the target keyword is highlighted in the first text displayed in the first display region.

### Claim 12 (depends on 9)

The electronic device according to claim 9, wherein the electronic device is further enabled to:
obtain a translation corresponding to the target keyword; and
displaying the target keyword and the translation corresponding to the target keyword in the second display region.

### Claim 13 (depends on 12)

The electronic device according to claim 12, wherein the electronic device is further enabled to:
store the target keyword currently displayed in the second display region into a first lexicon; and/or
store the target keyword currently displayed in the second display region and the translation corresponding to the target keyword into a second lexicon;
wherein the first lexicon comprises a lexicon used for speech recognition; and the second lexicon comprises a lexicon used for storing translation terminologies.

### Claim 14 (depends on 9)

The electronic device according to claim 9, wherein the electronic device is further enabled to:
sequentially display target keywords in the second display region based on a positional relationship between the target keywords in the first text.

### Claim 15 (depends on 9)

The electronic device according to claim 9, wherein the electronic device is further enabled to:
update the target keyword displayed in the second display region in response to an input of a user.

### Claim 16 (depends on 9)

The electronic device according to claim 9, wherein the electronic device is further enabled to:
construct a target instruction for a target language model based on the first text; and
input the target instruction into the target language model to obtain the target keyword.

### Claim 17 (depends on 16)

The electronic device according to claim 16, wherein the electronic device is further enabled to:
in response to a total number of characters in a current first text exceeding a first threshold N, determine a first target text based on a last target symbol in first N characters in the current first text, wherein N is a positive integer; and
construct an instruction for the target language model based on the first target text.
