CN111177999B - Text box-based text display method and device and computer equipment - Google Patents

Text box-based text display method and device and computer equipment Download PDF

Info

Publication number
CN111177999B
CN111177999B CN201911296422.7A CN201911296422A CN111177999B CN 111177999 B CN111177999 B CN 111177999B CN 201911296422 A CN201911296422 A CN 201911296422A CN 111177999 B CN111177999 B CN 111177999B
Authority
CN
China
Prior art keywords
text
mode
box
text box
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911296422.7A
Other languages
Chinese (zh)
Other versions
CN111177999A (en
Inventor
张秋锐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Saiante Technology Service Co Ltd
Original Assignee
Shenzhen Saiante Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Saiante Technology Service Co Ltd filed Critical Shenzhen Saiante Technology Service Co Ltd
Priority to CN201911296422.7A priority Critical patent/CN111177999B/en
Publication of CN111177999A publication Critical patent/CN111177999A/en
Application granted granted Critical
Publication of CN111177999B publication Critical patent/CN111177999B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a text box-based text display method, a text box-based text display device, computer equipment and a storage medium, wherein the method comprises the following steps of: acquiring an original text in the text box in the first mode; if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text; if the similarity degree value is larger than a preset similarity degree threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode; performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box; presenting the text box in the second mode and the backup text box in the first mode. Thereby saving storage space and avoiding information loss.

Description

Text box-based text display method and device and computer equipment
Technical Field
The present application relates to the field of computers, and in particular, to a text box based text display method and apparatus, a computer device, and a storage medium.
Background
The text box is often used for carrying text information, and for the purpose of saving storage space and the like, the number of characters that the text box can accommodate is generally limited, for example, the number of 11 characters is limited, the number of 1000 characters is limited, and the like. When the number of characters of the input text is large, the text box with the limited number of characters usually prohibits displaying characters exceeding the limited number, so that text truncation, context incompatibility, and even illegal character occurrence may occur (for example, an emoticon is composed of a plurality of characters, and when the emoticon is truncated, the remaining characters are illegal characters). The existing text box is not competent for all the tasks of text presentation.
Disclosure of Invention
The application mainly aims to provide a text box-based text display method, a text box-based text display device, a computer device and a storage medium, and aims to achieve full text display of a text box, save storage space and avoid information loss.
In order to achieve the above object, the present application provides a text box-based text display method, where the text box has a first mode and a second mode, the text box in the first mode can accommodate an unlimited number of characters, and the text box in the second mode can only accommodate characters that do not exceed a first number threshold, including:
acquiring an original text in the text box in the first mode;
counting the number of characters of the original text, and judging whether the number of characters of the original text is greater than a preset second number threshold, wherein the second number threshold is greater than the first number threshold;
if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method, wherein the number of the characters of the pre-stored text is smaller than or equal to the first number threshold;
judging whether the similarity degree value is larger than a preset similarity degree threshold value or not;
if the similarity degree value is larger than a preset similarity threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode;
performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box;
presenting the text box in the second mode and the backup text box in the first mode.
Further, the counting the number of characters of the original text and determining whether the number of characters of the original text is greater than a preset second number threshold, where after the step of determining whether the second number threshold is greater than the first number threshold, the method includes:
if the number of the characters of the original text is not larger than a preset second number threshold, judging whether the number of the characters of the original text is larger than a preset first number threshold;
if the number of the characters of the original text is larger than a preset first number threshold, acquiring the t-th character and the t + 1-th character of the original text, wherein t is equal to the first number threshold;
judging whether the tth character and the t +1 th character are part of a specified composite symbol or not by inquiring a preset composite symbol table, wherein the composite symbol is a symbol formed by sequentially connecting more than two characters;
if the tth character and the t +1 th character are part of a designated composite symbol, judging whether the designated composite symbol is positioned at the tail of the original text;
if the specified composite symbol is positioned at the tail of the original text, deleting the specified composite symbol in the text box, and setting the mode of the text box to be a second mode;
displaying the text box in the second mode.
Further, the step of calculating the similarity degree value between the original text and the pre-stored text according to a preset text similarity degree calculation method includes:
acquiring a first word vector sequence corresponding to the original text by inquiring a preset word vector library, and acquiring a second word vector sequence corresponding to the pre-stored text;
the formula is adopted:
Figure BDA0002320675870000031
calculating the similarity degree value of the original text and a prestored text, wherein Distance (I, R) is the similarity degree value of the original text I and the prestored text R; i is the original text; r is the pre-stored text; i is the number of words with word vectors contained in the original text; the | R | is the number of words with word vectors contained in the pre-stored text; w is a word vector; alpha is a preset amplification coefficient for adjusting cosine similarity between two word vectors; max (α;)cosDis (w, R)) is the maximum value in the cosine similarity of the word vectors corresponding to all the words in the pre-stored character text R and the word vectors in the original character text I.
Further, after the step of determining whether the similarity value is greater than a preset similarity threshold, the method includes:
if the similarity degree value is not greater than a preset similarity threshold value, segmenting the original text into a plurality of original text blocks by adopting a preset segmentation rule, and segmenting the prestored text into a plurality of prestored text blocks;
calculating a block similarity degree value of the original character block and the pre-stored character block according to a preset similarity degree calculation method;
generating a designated character block group consisting of a designated original character block and a designated pre-stored character block, wherein the block similarity degree value between the designated original character block and the designated pre-stored character block is greater than a preset block degree threshold value;
replacing the designated original text block in the text box with the designated pre-stored text block so as to obtain a replaced text box;
counting the number of characters in the replaced text box, and judging whether the number of characters in the replaced text box is smaller than or equal to the first number threshold;
and if the number of the characters in the replaced text box is smaller than or equal to the first number threshold, setting the mode of the text box to be a second mode, and displaying the text box in the second mode.
Further, the step of setting the mode of the text box to the second mode includes:
acquiring a second physical storage address in a preset binary memory, wherein the storage data of the second physical storage address is empty, and the number of characters which can be stored in the second physical storage address is equal to the first number threshold;
and modifying the logical address to point to the second physical storage address, thereby realizing that the mode of the text box is set to be the second mode.
Further, the step of presenting the text box in the second mode and the backup text box in the first mode is preceded by:
acquiring word vectors corresponding to all words of the original text by inquiring a preset word vector library, and acquiring word vectors corresponding to all words of the pre-stored text;
the formula is adopted:
Figure BDA0002320675870000041
calculating the word similarity degree value of the kth word of the original text and the pth word of the pre-stored text, wherein D kp The word similarity degree value is a word similarity degree value, A is a word vector corresponding to the kth word of the original text, B is a word vector corresponding to the pth word of the pre-stored text, ai is a numerical value of the ith partial vector of the word vector A, and Bi is a numerical value of the ith partial vector of the word vector B, wherein the word vector A and the word vector B both have n partial vectors;
according to the formula: d k =MAX(D k1 ,D k2 ,…,D kn ) Calculating to obtain the maximum word similarity degree value D corresponding to the kth word of the original text k And obtaining the maximum word similarity degree value D k The corresponding appointed word of the pre-stored character text;
marking a first association mark on a kth word of the original text, and marking a second association mark on the appointed word of the pre-stored text;
said step of presenting said text box in said second mode and said backup text box in said first mode comprises:
displaying the text box in the second mode and the backup text box in the first mode, and displaying the first association flag and the second association flag.
Further, after the steps of presenting the text box in the second mode and the backup text box in the first mode, and presenting the first associated flag and the second associated flag, the method comprises:
acquiring a modification instruction, wherein the modification instruction is generated by clicking the first association mark or the second association mark;
executing a replacement operation according to the modification instruction, so as to replace the word marked with the first association mark with the word marked with the second association mark;
and deleting the backup text box.
The application provides a text box-based text display device, the text box has first mode and second mode, in the first mode the text box can hold unlimited number of characters, in the second mode the text box can only hold not more than first number threshold's character, include:
an original text acquiring unit, configured to acquire an original text in the text box in the first mode;
a second number threshold judgment unit, configured to count the number of characters of the original text, and judge whether the number of characters of the original text is greater than a preset second number threshold, where the second number threshold is greater than the first number threshold;
a similarity degree value calculation unit, configured to calculate a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method if the number of characters of the original text is greater than a preset second number threshold, where the number of characters of the pre-stored text is less than or equal to the first number threshold;
the similarity degree value judging unit is used for judging whether the similarity degree value is larger than a preset similarity degree threshold value or not;
a pre-stored character text replacing unit, configured to replace the original character text with the pre-stored character text and set the mode of the text box to a second mode if the similarity degree value is greater than a preset similarity threshold value;
a backup text box obtaining unit, configured to perform a copy operation on the text box in the first mode, so as to obtain a backup text box in the first mode, where the backup text box has the original text;
a text box display unit for displaying the text box in the second mode and the backup text box in the first mode.
The present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the above methods when the processor executes the computer program.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any of the above.
The text box-based text display method, the text box-based text display device, the computer equipment and the storage medium acquire original text in the text box in the first mode; judging whether the number of characters of the original text is larger than a preset second number threshold value or not; if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method; if the similarity degree value is larger than a preset similarity degree threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode; performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box; presenting the text box in the second mode and the backup text box in the first mode. Thereby saving storage space and avoiding information loss.
Drawings
Fig. 1 is a schematic flowchart of a text box-based text display method according to an embodiment of the present application;
FIG. 2 is a block diagram of a text box based text display device according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a text box-based text display method, where the text box has a first mode and a second mode, the text box in the first mode can accommodate an unlimited number of characters, and the text box in the second mode can accommodate only characters that do not exceed a first number threshold, including:
acquiring an original text in the text box in the first mode;
counting the number of characters of the original text, and judging whether the number of characters of the original text is larger than a preset second number threshold, wherein the second number threshold is larger than the first number threshold;
if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method, wherein the number of the characters of the pre-stored text is smaller than or equal to the first number threshold;
judging whether the similarity degree value is larger than a preset similarity degree threshold value or not;
if the similarity degree value is larger than a preset similarity threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode;
performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box;
presenting the text box in the second mode and the backup text box in the first mode.
The method comprises the steps of adopting a specific text box to realize text display, wherein the text box is provided with a first mode and a second mode, the text box in the first mode can contain an unlimited number of characters, and the text box in the second mode can only contain characters which do not exceed a first number threshold value. The second mode can be implemented by any method, for example, the storage position of the text box is set to point to a logical address, and then the logical address points to a physical storage address with limited storage capacity; if the switching to the first mode is to be realized, the logical address is pointed to a physical storage address with unlimited storage (i.e. without limiting the storage space), i.e. the text box can be set to the first mode.
As described in step S1 above, the original text in the text box in the first mode is obtained. The original text can be input by any mode, such as manual input word by word or sentence by sentence, or input by copying and pasting. Because the text box is in the first mode, all original text can be accommodated, and the condition of information loss can not occur.
As described in step S2, the number of characters of the original text is counted, and it is determined whether the number of characters of the original text is greater than a preset second number threshold, where the second number threshold is greater than the first number threshold. If the number of the characters of the original text is not greater than the first number threshold, the text box in the second mode is directly adopted, and the original text does not need to be processed again. And if the number of the characters of the original text is between the first number threshold and the second number threshold, the original text is processed again by using a deletion method so as to meet the requirement of the number of the characters. If the number of the characters of the original text is larger than a preset second number threshold, the original text needs to be replaced, and the requirement of the number of the characters can be met.
As described in step S3, if the number of characters of the original text is greater than the preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method, where the number of characters of the pre-stored text is less than or equal to the first number threshold. And the preset text similarity degree calculation method is used for judging whether the original text can be replaced by the pre-stored text. The text similarity degree calculation method may be any method, for example: acquiring a first word vector sequence corresponding to the original text by inquiring a preset word vector library, and acquiring a second word vector sequence corresponding to the pre-stored text; the formula is adopted:
Figure BDA0002320675870000081
calculating the similarity value of the original text and a pre-stored text, wherein Distance (I, R) is the similarity value of the original text I and the pre-stored text R; i is the original text; r is the pre-stored text; i is the number of words with word vectors contained in the original text; the | R | is the number of words with word vectors contained in the pre-stored text; w is a word vector; alpha is a preset amplification coefficient for adjusting the cosine similarity between two word vectors; max (α × cosDis (w, R)) is the direction of all words in the pre-stored text RThe maximum value of the cosine similarity of the quantity and the word vector in the original text I. The pre-stored text is, for example, a text composed of concise words, and is used for replacing the original text with a larger number of words when the similarity value is greater than a preset similarity threshold. The method for acquiring the pre-stored text comprises the following steps: selecting the pre-stored text from a plurality of texts in a preset text database, wherein the pre-stored text satisfies a formula:
Figure BDA0002320675870000082
the word frequency vector of the pre-stored word text is P, K is the word frequency vector of the original word text, pi is the frequency of the ith word in the pre-stored word text, and Ki is the frequency of the ith word in the original word text. The text database is pre-stored with a plurality of texts, and the pre-stored texts preferably consist of concise characters.
As described in step S4, it is determined whether the similarity value is greater than a preset similarity threshold. If the similarity degree value is larger than a preset similarity degree threshold value, the original character text and the prestored character text are indicated to have the same meanings, and therefore, the replacement operation can be executed.
As described in step S5, if the similarity degree value is greater than the preset similarity threshold, the original text is replaced with the pre-stored text, and the mode of the text box is set to the second mode. The number of the characters of the pre-stored word text is smaller than or equal to the first number threshold, so that the pre-stored word text can be completely displayed in a text box of a second mode. Accordingly, the mode of the text box can be set to the second mode without causing information loss.
As described in step S6, a copy operation is performed on the text box in the first mode, so as to obtain a backup text box in the first mode, where the backup text box has the original text therein. In order to further ensure the integrity of the information, the method further performs a copy operation, so as to obtain a backup text box in the first mode, wherein the backup text box has the original text therein. Thereby temporarily retaining the original text.
As described in step S7 above, the text box in the second mode and the backup text box in the first mode are presented. Wherein the text box in the second mode is the text information that is ultimately intended to be presented, and the backup text box in the first mode is the text information for collation. Further, after the step of presenting the text box in the second mode and the backup text box in the first mode, the method further comprises: and receiving a confirmation instruction, and deleting the backup text box in the first mode according to the confirmation instruction. Since the text box of the second mode which is finally intended to be displayed is limited by the number of characters, the method is compatible with common architectures (such as webpage architectures, APPs and the like), and saves storage space on the premise of not losing information.
In one embodiment, after the step S2 of counting the number of characters of the original text and determining whether the number of characters of the original text is greater than a preset second number threshold, the step includes:
s21, if the number of the characters of the original text is not larger than a preset second number threshold, judging whether the number of the characters of the original text is larger than a preset first number threshold;
s22, if the number of the characters of the original text is larger than a preset first number threshold, obtaining the t-th character and the t + 1-th character of the original text, wherein t is equal to the first number threshold;
s23, judging whether the t-th character and the t + 1-th character are part of a specified composite symbol or not by inquiring a preset composite symbol table, wherein the composite symbol is a symbol formed by sequentially connecting more than two characters;
s24, if the t-th character and the t + 1-th character are part of a specified composite symbol, judging whether the specified composite symbol is positioned at the tail of the original text;
s25, if the specified composite symbol is positioned at the tail of the original text, deleting the specified composite symbol in the text box, and setting the mode of the text box to be a second mode;
and S26, displaying the text box in the second mode.
As described above, it is realized to satisfy the character number limit in a manner of deleting the composite symbol. One possibility of the number of the super words in the text box is that a composite symbol (e.g., an emoticon) is present at the end of the text, and the composite symbol refers to a symbol formed by sequentially connecting more than two characters. At this point, only the complex symbol needs to be deleted. Accordingly, the method includes the steps that the t-th character and t +1 characters of the original text are obtained, wherein t is equal to the first quantity threshold value; judging whether the t-th character and the t +1 character are part of a specified composite symbol by querying a composite symbol table; and if the t-th character and the t +1 characters are part of the designated composite symbol and the designated composite symbol is positioned at the tail of the original character text, deleting the designated composite symbol in the text box, setting the mode of the text box to be a second mode, and deleting the redundant whole composite symbol at the tail of the text so as to meet the character number limitation and avoid the occurrence of illegal characters.
In one embodiment, the step S3 of calculating the similarity degree value between the original text and the pre-stored text according to a preset text similarity degree calculation method includes:
s301, acquiring a first word vector sequence corresponding to the original text and a second word vector sequence corresponding to the pre-stored text by inquiring a preset word vector library;
s302, adopting a formula:
Figure BDA0002320675870000101
calculating the similarity degree value of the original text and a prestored text, wherein Distance (I, R) is the similarity degree value of the original text I and the prestored text R; i is the original text; r is the pre-stored text; i is the number of words with word vectors contained in the original text; the | R | is the number of words with word vectors contained in the pre-stored text; w is a word vector; alpha is a preset amplification coefficient for adjusting cosine similarity between two word vectors; max (α × cosDis (w, R)) is the maximum value in the cosine similarity between the word vectors corresponding to all words in the pre-stored text R and the word vectors in the original text I.
As described above, the similarity degree value between the original text and the pre-stored text is calculated according to the preset text similarity degree calculation method. Where a word vector is a vector in which words are mapped into a high-dimensional space, and a word vector library is a collection of word vectors. The word vector library can be obtained by adopting a word vector training tool word2vec training, and can also directly utilize the trained word vectors. Wherein, the calculation formula utilizes a calculation method of cosine similarity. The formula of the cosine similarity is as follows:
Figure BDA0002320675870000111
wherein x is a first word vector; y is a second word vector; n is the dimension of the word vector, xi is the ith partial vector of the first word vector, and yi is the ith partial vector of the first word vector. Thereby yielding cosine similarity. Substituting the cosine similarity calculation method into the calculation formula of the similarity values of the original text and the pre-stored text, and calculating the similarity values of the original text and the pre-stored text.
In one embodiment, after the step S4 of determining whether the similarity degree value is greater than a preset similarity degree threshold, the method includes:
s41, if the similarity degree value is not greater than a preset similarity degree threshold value, segmenting the original text into a plurality of original text blocks and segmenting the prestored text into a plurality of prestored text blocks by adopting a preset segmentation rule;
s42, calculating a block similarity degree value of the original character block and the pre-stored character block according to a preset similarity degree calculation method;
s43, generating a designated character block group consisting of designated original character blocks and designated pre-stored character blocks, wherein the block similarity degree value between the designated original character blocks and the designated pre-stored character blocks is greater than a preset block degree threshold value;
s44, replacing the designated original text block in the text box with the designated pre-stored text block to obtain a replaced text box;
s45, counting the number of the characters in the replaced text box, and judging whether the number of the characters in the replaced text box is smaller than or equal to the first number threshold value;
and S46, if the number of the characters in the replaced text box is smaller than or equal to the first number threshold, setting the mode of the text box to be a second mode, and displaying the text box in the second mode.
As described above, a partial replacement is implemented to meet the character number requirement. And when the similarity degree value is not greater than a preset similarity threshold value, indicating that the original text cannot be directly replaced by the pre-stored text. In this regard, the present application uses the concept of chunking to reduce the number of characters for partial chunking, thereby reducing the total number of characters. The segmentation rule may adopt any rule, for example, a mature segmentation tool, or a segmentation rule using a punctuation mark as a segmentation basis. Calculating a block similarity degree value of the original text block and the pre-stored text block according to a preset similarity degree calculation method, so as to generate a designated text block group consisting of a designated original text block and a designated pre-stored text block, wherein the block similarity degree value between the designated original text block and the designated pre-stored text block is greater than a preset block degree threshold value; replacing the designated original text block in the text box with the designated pre-stored text block so as to obtain a replaced text box; counting the number of characters in the replaced text box, and judging whether the number of characters in the replaced text box is smaller than or equal to the first number threshold; and if the number of the characters in the replaced text box is less than or equal to the first number threshold, displaying the replaced text box. Therefore, partial replacement of the text block is realized, and the final text box in the second mode can not lose information when displaying the text.
In one embodiment, the step S5 of setting the mode of the text box to the second mode includes:
s501, a second physical storage address in a preset binary memory is obtained, wherein the storage data of the second physical storage address is empty, and the number of characters which can be stored in the second physical storage address is equal to the first number threshold;
s502, the logic address is modified to point to the second physical storage address, and therefore the mode of the text box is set to be the second mode.
As described above, setting the mode of the text box to the second mode is achieved. To increase storage density, the text box of the present application is in a first mode, wherein the actual storage location of the data is a predetermined storage address of the multi-state memory. Multi-state memories can store more information because the storage density of multi-state memories is geometrically ascending compared to binary memories. When the text box is in the second mode, if the actual storage location of the text box is also set in the multi-state memory, the storage space is wasted, and the multi-state memory is more expensive, which also results in increased cost. Therefore, the idea of distributed storage is adopted, and the storage position of the text box in the second mode is arranged in the preset binary memory, so that the defects are overcome. Specifically, a second physical memory address in a preset binary memory is obtained, wherein the memory data of the second physical memory address is empty, and the number of characters that can be stored by the second physical memory address is equal to the first number threshold; and modifying the logic address to point to the second physical storage address, so that the mode of the text box is set to be the second mode.
In one embodiment, said step S7 of presenting said text box in said second mode and said backup text box in said first mode is preceded by the steps of:
s61, acquiring word vectors corresponding to all words of the original text by inquiring a preset word vector library, and acquiring word vectors corresponding to all words of the pre-stored text;
s62, adopting a formula:
Figure BDA0002320675870000131
calculating the word similarity degree value of the kth word of the original text and the pth word of the pre-stored text, wherein D kp The word similarity degree value is a word similarity degree value, A is a word vector corresponding to the kth word of the original text, B is a word vector corresponding to the pth word of a prestored text, ai is a numerical value of the ith partial vector of the word vector A, bi is a numerical value of the ith partial vector of the word vector B, and the word vector A and the word vector B both have n partial vectors;
s63, according to a formula: d k =MAX(D k1 ,D k2 ,…,D kn ) Calculating to obtain the maximum word similarity degree value D corresponding to the kth word of the original text k And obtaining the maximum word similarity degree value D k The corresponding appointed word of the pre-stored character text;
s64, marking a first association mark on the kth word of the original text, and marking a second association mark on the appointed word of the pre-stored text;
the step S7 of presenting the text box in the second mode and the backup text box in the first mode includes:
s701, displaying the text box in the second mode and the backup text box in the first mode, and displaying the first associated mark and the second associated mark.
As described above, the association flag is implemented. The text box in the second mode is used for displaying final information, and the backup text box in the first mode is used for displaying contrast information. To make the control clearer, the minimum granularity of the control is refined to a single word. Specifically, the word similarity degree value of the kth word of the original text and the pth word of the pre-stored text is calculated; according to the formula: d k =MAX(D k1 ,D k2 ,…,D kn ) Calculating to obtain the maximum word similarity degree value D corresponding to the kth word of the original text k And obtaining the maximum word similarity degree value D k The corresponding appointed word of the pre-stored character text; and marking a first association mark on the kth word of the original text, and marking a second association mark on the appointed word of the pre-stored text. And then displaying the text box in the second mode and the backup text box in the first mode, and displaying the first association mark and the second association mark. Therefore, the words with the first association marks correspond to the words with the second association marks, a user can directly know the reason for replacement by reading the association marks, and then make an instruction whether the text box in the second mode is appropriate or not, so that the integrity of information is further ensured.
In one embodiment, after the step S701 of presenting the text box in the second mode and the backup text box in the first mode, and presenting the first associated mark and the second associated mark, the method comprises:
s7011, acquiring a modification instruction, wherein the modification instruction is generated by clicking the first association mark or the second association mark;
s7012, executing a replacing operation according to the modifying instruction, so that the word marked with the first association mark is replaced by the word marked with the second association mark;
s7013, deleting the backup text box.
As described above, deletion of the backup text box is realized, and the storage space is saved in such a manner that only the text box in the second mode is displayed. Wherein, since the first associated mark and the second associated mark represent associated words, the user can click on the first associated mark or the second associated mark to generate and input the modification instruction. And executing a replacement operation according to the modification instruction, so that the word marked with the first associated mark is replaced by the word marked with the second associated mark, and the word which is considered by the user to be inaccurate in replacement is replaced again, so that the specified word in the text box is replaced by the corresponding word in the original text, and the defect of partial semantic distortion caused by all replacement is overcome. Therefore, the obtained text box in the second mode can reserve the semantics of the original text to the maximum extent and obtain the approval of the user, and therefore, the backup text box is deleted to save the storage space.
The text box-based text display method comprises the steps of obtaining original text in a text box in a first mode; judging whether the number of characters of the original text is larger than a preset second number threshold value or not; if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method; if the similarity degree value is larger than a preset similarity threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode; performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box; presenting the text box in the second mode and the backup text box in the first mode. Thereby saving storage space and avoiding information loss.
Referring to fig. 2, an embodiment of the present application provides a text box-based text display apparatus, where the text box has a first mode and a second mode, the text box in the first mode can accommodate an unlimited number of characters, and the text box in the second mode can accommodate only characters that do not exceed a first number threshold, including:
an original text acquiring unit 10, configured to acquire an original text in the text box in the first mode;
a second number threshold judgment unit 20, configured to count the number of characters of the original text, and judge whether the number of characters of the original text is greater than a preset second number threshold, where the second number threshold is greater than the first number threshold;
a similarity degree value calculating unit 30, configured to calculate a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculating method if the number of characters of the original text is greater than a preset second number threshold, where the number of characters of the pre-stored text is less than or equal to the first number threshold;
a similarity degree value determination unit 40, configured to determine whether the similarity degree value is greater than a preset similarity degree threshold;
a pre-stored text replacing unit 50, configured to replace the original text with the pre-stored text if the similarity degree value is greater than a preset similarity threshold, and set the mode of the text box to a second mode;
a backup text box obtaining unit 60, configured to perform a copy operation on the text box in the first mode, so as to obtain a backup text box in the first mode, where the backup text box has the original text therein;
a text box displaying unit 70, configured to display the text box in the second mode and the backup text box in the first mode.
The operations performed by the above units are respectively corresponding to the steps of the text-box-based text display method of the foregoing embodiment one by one, and are not described herein again.
In one embodiment, the apparatus comprises:
a first number threshold judgment unit, configured to judge whether the number of characters of the original text is greater than a preset first number threshold if the number of characters of the original text is not greater than a preset second number threshold;
a tth character obtaining unit, configured to obtain a tth character and a t +1 th character of the original text if the number of characters of the original text is greater than a preset first number threshold, where t is equal to the first number threshold;
a designated composite symbol judgment unit, configured to judge whether the t-th character and the t + 1-th character are part of a designated composite symbol by querying a preset composite symbol table, where the composite symbol is a symbol formed by sequentially connecting more than two characters;
an end judging unit, configured to judge whether the specified composite symbol is at the end of the original text if the tth character and the t +1 th character are part of the specified composite symbol;
a specified composite symbol deleting unit, configured to delete the specified composite symbol in the text box if the specified composite symbol is located at the end of the original text, and set the mode of the text box to a second mode;
a second mode text box display unit for displaying the text box in the second mode.
The operations performed by the above units are respectively corresponding to the steps of the text-box-based text display method of the foregoing embodiment one by one, and are not described herein again.
In one embodiment, the similarity degree value calculation unit 30 includes:
a word vector sequence generating subunit, configured to obtain a first word vector sequence corresponding to the original text by querying a preset word vector library, and obtain a second word vector sequence corresponding to the pre-stored text;
the text similarity calculation subunit is used for adopting a formula:
Figure BDA0002320675870000171
calculating the similarity degree value of the original text and a prestored text, wherein Distance (I, R) is the similarity degree value of the original text I and the prestored text R; i is the original text; r is the pre-stored text; i is the number of words with word vectors contained in the original text; the | R | is the number of words with word vectors contained in the pre-stored character text; w is a word vector; alpha is a preset amplification coefficient for adjusting cosine similarity between two word vectors; max (α × cosDis (w, R)) is the maximum value in the cosine similarity between the word vectors corresponding to all words in the pre-stored text R and the word vectors in the original text I.
The operations performed by the subunits are respectively corresponding to the steps of the text-box-based text display method in the foregoing embodiment one by one, and are not described herein again.
In one embodiment, the apparatus comprises:
a segmentation unit, configured to segment the original text into a plurality of original text blocks and segment the pre-stored text into a plurality of pre-stored text blocks by using a preset segmentation rule if the similarity value is not greater than a preset similarity threshold value;
a block similarity degree value calculation unit for calculating a block similarity degree value between the original text block and the pre-stored text block according to a preset similarity degree calculation method;
the system comprises a designated character block group acquisition unit, a character block group acquisition unit and a character block group acquisition unit, wherein the designated character block group acquisition unit is used for generating a designated character block group consisting of a designated original character block and a designated pre-stored character block, and the block similarity degree value between the designated original character block and the designated pre-stored character block is greater than a preset block degree threshold value;
the replaced text box acquisition unit is used for replacing the specified original text block in the text box with the specified pre-stored text block so as to obtain a replaced text box;
the character number counting unit is used for counting the number of the characters in the replaced text box and judging whether the number of the characters in the replaced text box is smaller than or equal to the first number threshold value or not;
and the mode setting and displaying unit is used for setting the mode of the text box to be the second mode and displaying the text box in the second mode if the number of the characters in the replaced text box is smaller than or equal to the first number threshold.
The operations performed by the above units are in one-to-one correspondence with the steps of the text box-based text display method in the foregoing embodiment, and are not described herein again.
In one embodiment, the storage location of the text box points to a preset logical address, and when the text box is in the first mode, the logical address points to a first physical storage address, which is a storage address of a preset multi-state memory, and the pre-stored text replacement unit 50 includes:
a second physical storage address obtaining subunit, configured to obtain a second physical storage address in a preset binary memory, where storage data of the second physical storage address is empty, and the number of characters that can be stored by the second physical storage address is equal to the first number threshold;
and the logical address modification subunit is used for modifying the logical address to point to the second physical storage address, so that the mode of the text box is set to be the second mode.
The operations performed by the sub-units correspond to the steps of the text-box-based text display method in the foregoing embodiment one by one, which is not described herein again.
In one embodiment, the apparatus comprises:
a word vector library query unit, configured to obtain a word vector corresponding to each word of the original text by querying a preset word vector library, and obtain a word vector corresponding to each word of the pre-stored text;
a word similarity value calculation unit for employing the formula:
Figure BDA0002320675870000181
calculating the word similarity degree value of the kth word of the original text and the pth word of the pre-stored text, wherein D kp The word similarity degree value is a word similarity degree value, A is a word vector corresponding to the kth word of the original text, B is a word vector corresponding to the pth word of a prestored text, ai is a numerical value of the ith partial vector of the word vector A, bi is a numerical value of the ith partial vector of the word vector B, and the word vector A and the word vector B both have n partial vectors;
maximum word similarity degree value D k A calculation unit for, according to the formula: d k =MAX(D k1 ,D k2 ,…,D kn ) Calculating to obtain the maximum word similarity degree value D corresponding to the kth word of the original text k And obtaining the maximum word similarity degree value D k The corresponding appointed word of the pre-stored character text;
the first association mark labeling unit is used for labeling a first association mark on the kth word of the original text and labeling a second association mark on the appointed word of the pre-stored text;
the text box display unit 70 includes:
a text box display subunit, configured to display the text box in the second mode and the backup text box in the first mode, and display the first association flag and the second association flag.
The operations respectively performed by the units and the sub-units correspond to the steps of the text-box-based text display method of the foregoing embodiment one by one, and are not described herein again.
In one embodiment, the apparatus comprises:
a modification instruction acquisition unit, configured to acquire a modification instruction, where the modification instruction is generated by clicking the first association flag or the second association flag;
a replacement operation unit for performing a replacement operation according to the modification instruction, thereby replacing the word marked with the first association flag with the word marked with the second association flag;
and the backup text box deleting unit is used for deleting the backup text box.
The operations performed by the above units are respectively corresponding to the steps of the text-box-based text display method of the foregoing embodiment one by one, and are not described herein again.
The text box-based text display device acquires original text in the text box in the first mode; judging whether the number of characters of the original text is larger than a preset second number threshold value or not; if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method; if the similarity degree value is larger than a preset similarity threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode; performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box; presenting the text box in the second mode and the backup text box in the first mode. Thereby saving storage space and avoiding information loss.
Referring to fig. 3, an embodiment of the present invention further provides a computer device, where the computer device may be a server, and an internal structure of the computer device may be as shown in the figure. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer designed processor is used to provide computational and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for storing data used by the text box-based text display method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a text box based text presentation method.
The processor executes the text box-based text display method, wherein the steps of the method are in one-to-one correspondence with the steps of the text box-based text display method of the foregoing embodiment, and are not described herein again.
It will be understood by those skilled in the art that the structures shown in the drawings are only block diagrams of some of the structures associated with the embodiments of the present application and do not constitute a limitation on the computer apparatus to which the embodiments of the present application may be applied.
The computer equipment acquires an original text in the text box in the first mode; judging whether the number of characters of the original text is larger than a preset second number threshold value or not; if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method; if the similarity degree value is larger than a preset similarity threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode; performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box; presenting the text box in the second mode and the backup text box in the first mode. Thereby saving storage space and avoiding information loss.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for displaying text based on a text box is implemented, where the steps included in the method correspond to the steps of executing the method for displaying text based on a text box in the foregoing embodiment one by one, and are not described herein again.
The computer-readable storage medium of the application acquires original text of characters in the text box in the first mode; judging whether the number of characters of the original text is larger than a preset second number threshold value or not; if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method; if the similarity degree value is larger than a preset similarity threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode; performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box; presenting the text box in the second mode and the backup text box in the first mode. Thereby saving storage space and avoiding information loss.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of another identical element in a process, apparatus, article, or method comprising the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (10)

1. A method of text-box based textual presentation, the text box having a first mode and a second mode, the text box in the first mode capable of accommodating an unlimited number of characters, the text box in the second mode capable of accommodating only characters not exceeding a first number threshold, comprising:
acquiring an original text in the text box in the first mode;
counting the number of characters of the original text, and judging whether the number of characters of the original text is larger than a preset second number threshold, wherein the second number threshold is larger than the first number threshold;
if the number of the characters of the original text is larger than a preset second number threshold, calculating a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method, wherein the number of the characters of the pre-stored text is smaller than or equal to the first number threshold;
judging whether the similarity degree value is larger than a preset similarity degree threshold value or not;
if the similarity degree value is larger than a preset similarity threshold value, replacing the original text with the pre-stored text, and setting the mode of the text box as a second mode;
performing a copy operation on the text box in the first mode, thereby obtaining a backup text box in the first mode, wherein the original text is in the backup text box;
presenting the text box in the second mode and the backup text box in the first mode;
and receiving a confirmation instruction, and deleting the backup text box in the first mode according to the confirmation instruction.
2. The text-box-based text-text presentation method according to claim 1, wherein the step of counting the number of characters of the original text and determining whether the number of characters of the original text is greater than a preset second number threshold, wherein the step of counting the number of characters of the original text is greater than the first number threshold includes:
if the number of the characters of the original text is not larger than a preset second number threshold, judging whether the number of the characters of the original text is larger than a preset first number threshold;
if the number of the characters of the original text is larger than a preset first number threshold, acquiring the t-th character and the t + 1-th character of the original text, wherein t is equal to the first number threshold;
judging whether the tth character and the t +1 th character are part of a specified composite symbol or not by inquiring a preset composite symbol table, wherein the composite symbol is a symbol formed by sequentially connecting more than two characters;
if the tth character and the t +1 th character are part of a designated composite symbol, judging whether the designated composite symbol is positioned at the tail of the original text;
if the specified composite symbol is positioned at the tail of the original text, deleting the specified composite symbol in the text box, and setting the mode of the text box to be a second mode;
presenting the text box in the second mode.
3. The text-box-based text presentation method according to claim 1, wherein the step of calculating the similarity value between the original text and the pre-stored text according to a preset text similarity calculation method comprises:
acquiring a first word vector sequence corresponding to the original text by querying a preset word vector library, and acquiring a second word vector sequence corresponding to the pre-stored text;
the formula is adopted:
Figure QLYQS_1
calculating the similarity degree value of the original text and a prestored text, wherein Distance (I, R) is the similarity degree value of the original text I and the prestored text R; i is the original text; r is the pre-stored text; i is the number of words with word vectors contained in the original text; the | R | is the number of words with word vectors contained in the pre-stored text; w is a word vector; alpha is presetAdjusting the amplification factor of cosine similarity between two word vectors;
Figure QLYQS_2
calculating the maximum value of the cosine similarity between the word vectors corresponding to all words in the pre-stored character text R and the word vectors in the original character text I.
4. The text-box-based text presentation method according to claim 1, wherein the step of determining whether the similarity value is greater than a preset similarity threshold value comprises:
if the similarity degree value is not greater than a preset similarity threshold value, segmenting the original text into a plurality of original text blocks and segmenting the pre-stored text into a plurality of pre-stored text blocks by adopting a preset segmentation rule;
calculating a block similarity degree value of the original character block and the pre-stored character block according to a preset similarity degree calculation method;
generating a designated character block group consisting of a designated original character block and a designated pre-stored character block, wherein the block similarity degree value between the designated original character block and the designated pre-stored character block is greater than a preset block degree threshold value;
replacing the designated original text block in the text box with the designated pre-stored text block so as to obtain a replaced text box;
counting the number of characters in the replaced text box, and judging whether the number of characters in the replaced text box is smaller than or equal to the first number threshold;
and if the number of the characters in the replaced text box is smaller than or equal to the first number threshold, setting the mode of the text box to be a second mode, and displaying the text box in the second mode.
5. The text-box-based text presentation method according to claim 1, wherein the storage location of the text box points to a preset logical address, the logical address points to a first physical storage address when the text box is in a first mode, the first physical storage address is a preset storage address of a multi-state memory, and the step of setting the mode of the text box to a second mode comprises:
acquiring a second physical storage address in a preset binary memory, wherein the storage data of the second physical storage address is empty, and the number of characters which can be stored in the second physical storage address is equal to the first number threshold;
and modifying the logical address to point to the second physical storage address, thereby realizing that the mode of the text box is set to be the second mode.
6. The text-box based text presentation method of claim 1, wherein said step of presenting the text box in the second mode and the backup text box in the first mode is preceded by the steps of:
acquiring word vectors corresponding to all words of the original text by inquiring a preset word vector library, and acquiring word vectors corresponding to all words of the pre-stored text;
the formula is adopted:
Figure QLYQS_3
calculating the word similarity degree value of the kth word of the original text and the pth word of the pre-stored text, wherein D kp The word similarity degree value is a word similarity degree value, A is a word vector corresponding to the kth word of the original text, B is a word vector corresponding to the pth word of a prestored text, ai is a numerical value of the ith partial vector of the word vector A, bi is a numerical value of the ith partial vector of the word vector B, and the word vector A and the word vector B both have n partial vectors;
according to the formula: d k =MAX(D k1 ,D k2 ,…,D kn ) Calculating to obtain the maximum word similarity degree value D corresponding to the kth word of the original text k And obtaining the maximum word similarity degree value D k The corresponding appointed word of the pre-stored character text;
marking a first association mark on a kth word of the original text, and marking a second association mark on the appointed word of the pre-stored text;
said step of presenting said text box in said second mode and said backup text box in said first mode comprises:
displaying the text box in the second mode and the backup text box in the first mode, and displaying the first association flag and the second association flag.
7. The text-box based text presentation method of claim 6, wherein the steps of presenting the text box in the second mode and the backup text box in the first mode and presenting the first associated indicia and the second associated indicia are followed by:
acquiring a modification instruction, wherein the modification instruction is generated by clicking the first association mark or the second association mark;
executing a replacement operation according to the modification instruction, so as to replace the word marked with the first association mark with the word marked with the second association mark;
and deleting the backup text box.
8. A text box-based textual presentation device, the text box having a first mode and a second mode, the text box in the first mode capable of accommodating an unlimited number of characters, the text box in the second mode capable of accommodating only characters not exceeding a first number threshold, comprising:
an original text acquiring unit, configured to acquire an original text in the text box in the first mode;
a second number threshold judgment unit, configured to count the number of characters of the original text, and judge whether the number of characters of the original text is greater than a preset second number threshold, where the second number threshold is greater than the first number threshold;
a similarity degree value calculation unit, configured to calculate a similarity degree value between the original text and a pre-stored text according to a preset text similarity degree calculation method if the number of characters of the original text is greater than a preset second number threshold, where the number of characters of the pre-stored text is less than or equal to the first number threshold;
the similarity degree value judging unit is used for judging whether the similarity degree value is larger than a preset similarity degree threshold value or not;
a pre-stored character text replacing unit, configured to replace the original character text with the pre-stored character text and set the mode of the text box to a second mode if the similarity degree value is greater than a preset similarity threshold value;
a backup text box obtaining unit, configured to perform a copy operation on the text box in the first mode, so as to obtain a backup text box in the first mode, where the backup text box has the original text;
a text box display unit for displaying the text box in the second mode and the backup text box in the first mode;
and receiving a confirmation instruction, and deleting the backup text box in the first mode according to the confirmation instruction.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program performs the steps of the method according to any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911296422.7A 2019-12-16 2019-12-16 Text box-based text display method and device and computer equipment Active CN111177999B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911296422.7A CN111177999B (en) 2019-12-16 2019-12-16 Text box-based text display method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911296422.7A CN111177999B (en) 2019-12-16 2019-12-16 Text box-based text display method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN111177999A CN111177999A (en) 2020-05-19
CN111177999B true CN111177999B (en) 2023-04-11

Family

ID=70657365

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911296422.7A Active CN111177999B (en) 2019-12-16 2019-12-16 Text box-based text display method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN111177999B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116631550B (en) * 2023-07-26 2023-11-28 深圳爱递医药科技有限公司 Data management and logic checking method for clinical trial and medical system thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981852A (en) * 2012-11-15 2013-03-20 北京奇虎科技有限公司 Long text submission method and device thereof
CN107590113A (en) * 2016-07-08 2018-01-16 珠海金山办公软件有限公司 A kind of method and device of lantern slide exhibition prompt text
CN107992457A (en) * 2017-12-01 2018-05-04 深圳乐信软件技术有限公司 A kind of information conversion method, device, terminal device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102981852A (en) * 2012-11-15 2013-03-20 北京奇虎科技有限公司 Long text submission method and device thereof
CN107590113A (en) * 2016-07-08 2018-01-16 珠海金山办公软件有限公司 A kind of method and device of lantern slide exhibition prompt text
CN107992457A (en) * 2017-12-01 2018-05-04 深圳乐信软件技术有限公司 A kind of information conversion method, device, terminal device and storage medium

Also Published As

Publication number Publication date
CN111177999A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN110674319B (en) Label determining method, device, computer equipment and storage medium
CN108959271B (en) Description text generation method and device, computer equipment and readable storage medium
CN103455475B (en) Composition method, equipment and system
CN113536735B (en) Text marking method, system and storage medium based on keywords
CN110046637B (en) Training method, device and equipment for contract paragraph annotation model
CN113449528B (en) Address element extraction method and device, computer equipment and storage medium
CN112286934A (en) Database table importing method, device, equipment and medium
CN113177411A (en) Training method of named entity recognition model and named entity recognition method
CN111177999B (en) Text box-based text display method and device and computer equipment
CN108595437B (en) Text query error correction method and device, computer equipment and storage medium
CN109063155B (en) Language model parameter determination method and device and computer equipment
CN112765976A (en) Text similarity calculation method, device and equipment and storage medium
CN111382569B (en) Method and device for identifying entity in dialogue corpus and computer equipment
CN116226681A (en) Text similarity judging method and device, computer equipment and storage medium
CN112016292B (en) Method and device for setting article interception point and computer equipment
CN114461672A (en) Data retrieval method and device, computer equipment and storage medium
CN113032523B (en) Extraction method and device of triple information, electronic equipment and storage medium
CN114692573A (en) Text structuring method, apparatus, computer device, medium, and product
CN116795872A (en) Data query method, device, computer equipment and storage medium
CN112364620B (en) Text similarity judging method and device and computer equipment
CN114169331A (en) Address resolution method, device, computer equipment and storage medium
CN113761858A (en) Form data processing method and device, computer equipment and storage medium
CN112463791A (en) Nuclear power station document data acquisition method and device, computer equipment and storage medium
CN111190576B (en) Character recognition-based component set display method and device and computer equipment
CN112347738B (en) Bidirectional encoder characterization quantity model optimization method and device based on referee document

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210202

Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Applicant after: Shenzhen saiante Technology Service Co.,Ltd.

Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An International Smart City Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant