Patent ID: 11966455
Assignee: BOE TECHNOLOGY GROUP CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 10:
11. An electronic device, wherein the electronic device comprises a memory, a processor and a computer program that is stored in the memory and is executable on the processor, and the processor, when executing the computer program, performs the following operations:
parsing a content image, to obtain a target text in a text format;
according to a line break in the target text, partitioning the target text into a plurality of text sections; and
according to a first data-volume threshold, partitioning sequentially the plurality of text sections into a plurality of text-to-be-predicted sets, wherein a data volume of a last one text section in each of the text-to-be-predicted sets is greater than a second data-volume threshold wherein the plurality of text-to-be-predicted sets are used to be inputted into a semantic identification model to be used for semantic identification;
wherein the operation performed by the processor of according to a first data-volume threshold, partitioning sequentially the plurality of text sections into a plurality of text-to-be-predicted sets comprises:
creating an original text set
reading through the plurality of text sections, adding the text sections that have been read through currently into the original text set, till a data volume of the original text set obtained after the addition is greater than the first data-volume threshold, and using the original text set obtained after the addition as a candidate text set;
on the condition that a data volume of a last one text section in the candidate text set is greater than the second data-volume threshold, using the candidate text set as a text-to-be-predicted set;
on the condition that a data volume of a last one text section in the candidate text set is less than or equal to the second data-volume threshold, taking out the last one text section from the candidate text set, to use the candidate text set obtained after the taking-out as a text-to-be-predicted set; and
on the condition that a remaining text section exists, partitioning sequentially the remaining text section into the text-to-be-predicted sets.