CN115577694B - Intelligent recommendation method for standard writing - Google Patents
Intelligent recommendation method for standard writing Download PDFInfo
- Publication number
- CN115577694B CN115577694B CN202211422607.XA CN202211422607A CN115577694B CN 115577694 B CN115577694 B CN 115577694B CN 202211422607 A CN202211422607 A CN 202211422607A CN 115577694 B CN115577694 B CN 115577694B
- Authority
- CN
- China
- Prior art keywords
- writing
- document
- user
- character string
- recommended
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/335—Filtering based on additional data, e.g. user or group profiles
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
- G06F3/0237—Character input methods using prediction or retrieval techniques
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
The invention provides an intelligent recommending method for standard writing, which takes a document writing sub-database matched with a user as a reference, recommends a proper document template for the user, and provides a plurality of recommended writing input character strings for the user in the writing process, so that the proper character strings are recommended for the user according to writing habits of the user, reliable recommending function is provided for the user to input the character strings for the document template, the workload of document writing is reduced, and the efficiency of document writing is improved.
Description
Technical Field
The invention relates to the technical field of document editing, in particular to an intelligent recommendation method for standard writing.
Background
In daily office, a large number of documents of different types are required to be written, the writing of the documents is usually realized based on a manual writing mode, and each document has unique writing requirements, so that a writer is required to write and input document contents again for each document in the writing process, the writer is required to consume more manpower and time to carry out corresponding writing work, and therefore the workload of writing the documents is increased and the efficiency of writing the documents is reduced. The current document writing mode cannot recommend proper character strings to writers according to writing habits of writers, so that the writers need to spend considerable time searching proper character strings.
Disclosure of Invention
Aiming at the defects existing in the prior art, the invention provides an intelligent recommendation method for standard writing, which selects a matched document writing sub-database according to a document writing request from a user terminal, provides a proper document template based on the selected document writing sub-database, and searches for a plurality of recommended writing input character strings from the document writing sub-database according to character information input by a user in the writing process of the document template; according to the selection result of the user for recommending and writing the input character string, the document writing sub-database is updated, the document template which has completed the editing operation is checked and corrected, and then the document template is stored in the specific storage space of the user terminal.
The invention provides an intelligent recommendation method for standard writing, which comprises the following steps:
step S1, acquiring a document writing request from a user terminal, and selecting a matched document writing sub-database from a cloud database according to the document writing request; selecting a matched document template from the document writing sub-database according to the document writing request, and returning the document template to the user terminal;
step S2, detecting the writing process of the document template on the user terminal so as to obtain character information input by a user on the document template; analyzing and processing the character information, searching in the document writing sub-database according to the analysis and processing result, and obtaining a plurality of recommended writing input character strings;
step S3, according to the selection result of the user on the recommended writing input character string, carrying out data update on the document writing sub-database; judging whether the user finishes the editing operation of the document template, so as to switch the editing state of the document template;
s4, after checking and correcting the document template with the editing operation completed, carrying out identification processing on the document template; and saving the document template to a specific storage space of the user terminal.
Further, in the step S1, obtaining a document writing request from a user terminal, and selecting a matched document writing sub-database from a cloud database according to the document writing request specifically includes:
acquiring a document writing request from a user terminal, and extracting terminal identity information of the user terminal from the document writing request;
selecting a document writing sub-database matched with the user terminal from a cloud database according to the terminal identity information; wherein, the document writing sub-database stores all document writing history record information of the user terminal;
and judging whether the user terminal has the authority to use the document writing sub-database or not according to the user account information of the current login of the user terminal.
Further, in the step S1, selecting a matching document template from the document writing sub-database according to the document writing request, and returning the document template to the user terminal specifically includes:
when the user terminal has the authority to use the document writing sub-database, extracting the document format information which is required to be written currently by the user from the document writing request;
selecting a document template which is consistent with the document format information and has the highest historical use frequency from a document template set of the document writing sub-database according to the document format information; and then directly returning the document template to the user terminal.
Further, in the step S2, detecting a writing process of the document template on the user terminal, so as to obtain character information input by the user on the document template specifically includes:
and determining a character input program used in the writing process of the user on the document template through the user terminal, and detecting the character input program so as to obtain character information input by the user on the document template.
Further, in the step S2, the character information is analyzed and processed, and according to the result of the analysis and processing, searching is performed in the document writing sub-database, so as to obtain a plurality of recommended writing input character strings, which specifically includes:
carrying out corpus recognition processing on the character information so as to obtain keyword information corresponding to the character information;
performing fuzzy search in a user document writing habit character string set of the document writing sub-database by taking the keyword information as a search word so as to obtain a plurality of recommended writing input character strings; the user document writing habit character string set comprises character strings used to be used by the user in the history document writing process.
Further, in the step S2, performing fuzzy search in the user document writing habit string set of the document writing sub-database by using the keyword information as a search term, so as to obtain a plurality of recommended writing input strings specifically includes:
step S201, using the following formula (1), sorting the plurality of recommended writing input character strings once according to the number of keywords contained in the plurality of recommended writing input character strings,
in the above-mentioned formula (1),indicate->A primary ranking value of each recommended writing input character string; />Indicate->The number of keywords contained in the input character string is recommended to be written; />Indicate->The number of keywords contained in the input character string is recommended to be written; />Representing the total number of recommended writing input character strings; />The representation will->The value of (2) is from 1 to +.>Substituted into brackets to obtain ++>The number of values;
step S202, finding the recommended writing input character strings with the same primary sorting value according to the corresponding primary sorting values of the recommended writing input character strings by using the following formula (2),
in the above-mentioned formula (2),representation and said->A recommendation writing input character string set with the same primary ranking value of each recommendation writing input character string; />First->A primary ranking value of each recommended writing input character string;the representation will->The value of (2) is from 1 to +.>Substituted into brackets to obtain ++>A set of values;
obtaining a recommendation writing input character string set with the same primary ranking value of each recommendation writing input character string by utilizing the step S202, and if the number of elements in the recommendation writing input character string set with the same primary ranking value of the recommendation writing input character string is greater than 1, continuing to perform the following step S203 to perform secondary ranking;
step S203, using the following formula (3), according to the character string length of the recommended writing input character string with the same primary ranking value and the searched sequence of the character string during fuzzy search, performing secondary ranking on the recommended writing input character string with the same primary ranking value,
in the above-mentioned formula (3),the first +.>Secondary ordering of stringsA value; />The first +.>The searched sequence value of the character strings in fuzzy search, wherein the sequence value of the first searched character string is 1, the sequence value of the second searched character string is 2, and the like; />The first +.>The string length of the individual strings; />The first +.>The string length of the individual strings; />The first +.>The string length of the individual strings; />The number of the recommended writing input character strings with the same primary sorting value is represented;
and firstly, sorting each character string according to a primary sorting value, sorting the character strings with the same primary sorting value according to a secondary sorting value if the character strings with the same primary sorting value are encountered in the primary sorting process, wherein the character strings with the same primary sorting value are arranged at the front ends of the character strings with the same primary sorting value, and the character strings with the same primary sorting value are arranged at the rear ends of the character strings with the same primary sorting value, so that sorting of all recommended writing input character strings is completed, and then the character strings are sequentially displayed at a user terminal according to the sorting order.
Further, in the step S3, according to the selection result of the user on the recommended writing input character string, the data updating of the document writing sub-database specifically includes:
determining a recommendation writing input character string finally selected by the user from the plurality of recommendation writing input character strings, and updating user writing habit information of a corresponding character string in the user document writing habit character string set according to the finally selected recommendation writing input character string; the user writing habit information comprises writing and using times of the user on the character string.
Further, in the step S3, determining whether the user completes the editing operation on the document template, thereby switching the editing state of the document template specifically includes:
judging whether the user renames and saves the document template through the user terminal, if so, determining that the user has completed editing operation on the document template; if not, determining that the user is not complete with the editing operation of the document template;
when the user has completed editing operation on the document template, switching the document template to a read-only state;
and when the user does not complete the editing operation on the document template, keeping the current editable state of the document template unchanged.
Further, in the step S4, after the document template having completed the editing operation is subjected to the inspection processing and the correction processing, the document template is subjected to the identification processing; the storing the document template in the specific storage space of the user terminal specifically comprises:
performing text grammar and mispronounced word detection processing on the document template with the editing operation completed, performing grammar and mispronounced word correction processing on the text sub-data to be edited according to the text grammar and mispronounced word detection processing result, and adding the user account information to the document template to serve as identification information of the document template;
and then saving the document template to a specific storage space of the user terminal, which corresponds to the user account information.
Compared with the prior art, the intelligent recommendation method for standard writing selects a matched document writing sub-database according to a document writing request from a user terminal, provides a proper document template based on the selected document writing sub-database, and searches a plurality of recommendation writing input character strings from the document writing sub-database according to character information input by a user in the document template writing process; according to the selection result of the user for recommending and writing the input character string, the document writing sub-database is updated, the document template which has completed the editing operation is checked and corrected, and then the document template is stored in the specific storage space of the user terminal.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a standard writing intelligent recommendation method provided by the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a standard writing intelligent recommendation method according to an embodiment of the present invention is shown. The standard writing intelligent recommendation method comprises the following steps:
step S1, acquiring a document writing request from a user terminal, and selecting a matched document writing sub-database from a cloud database according to the document writing request; selecting a matched document template from the document writing sub-database according to the document writing request, and returning the document template to the user terminal;
step S2, detecting the writing process of the document template on the user terminal so as to obtain character information input by a user on the document template; analyzing and processing the character information, searching in the document writing sub-database according to the analysis and processing result, and obtaining a plurality of recommended writing input character strings;
step S3, according to the selection result of the user on the recommended writing input character string, carrying out data update on the document writing sub-database; judging whether the user finishes the editing operation of the document template so as to switch the editing state of the document template;
s4, after checking and correcting the document template with the editing operation completed, carrying out identification processing on the document template; and saving the document template to a specific storage space of the user terminal.
The beneficial effects of the technical scheme are as follows: according to the intelligent recommendation method for standard writing, a matched document writing sub-database is selected according to a document writing request from a user terminal, a proper document template is provided based on the selected document writing sub-database, and in the process of writing the document template, a plurality of recommendation writing input character strings are searched from the document writing sub-database according to character information input by a user; according to the selection result of the user for recommending and writing the input character string, the document writing sub-database is updated, the document template which has completed the editing operation is checked and corrected, and then the document template is stored in the specific storage space of the user terminal.
Preferably, in the step S1, obtaining a document writing request from a user terminal, and selecting a matched document writing sub-database from a cloud database according to the document writing request specifically includes:
acquiring a document writing request from a user terminal, and extracting terminal identity information of the user terminal from the document writing request;
selecting a document writing sub-database matched with the user terminal from a cloud database according to the terminal identity information; wherein, the document writing sub-database stores all document writing history record information of the user terminal;
and judging whether the user terminal has the authority to write the sub-database by using the document according to the user account information of the current login of the user terminal.
The beneficial effects of the technical scheme are as follows: the user terminals such as the computer can allow different users to log in and use, each user has corresponding document writing history record information in the process of using the user terminal, and the sub-databases are written according to the corresponding documents of each user. Through the method, the document writing request from the user terminal is selected from the cloud database, and the matched document writing sub-database is convenient for recommending character information conforming to writing habits of users in the actual document editing process.
Preferably, in the step S1, selecting a matching document template from the document writing sub-database according to the document writing request, and returning the document template to the user terminal specifically includes:
when the user terminal has the authority to use the document writing sub-database, extracting the document format information which is required to be written currently by the user from the document writing request;
selecting a document template which is consistent with the document format information and has the highest historical use frequency from a document template set of the document writing sub-database according to the document format information; and then the document template is directly returned to the user terminal.
The beneficial effects of the technical scheme are as follows: by the method, the document template with the proper document format can be selected according to the document writing habit of the user, and the compatibility of the document template to the writing habit of the user is ensured.
Preferably, in the step S2, the writing process of the document template on the user terminal is detected, so as to obtain character information input by the user on the document template specifically includes:
and determining a character input program used in the process of writing the document template by the user through the user terminal, and detecting the character input program so as to obtain character information input by the user on the document template.
The beneficial effects of the technical scheme are as follows: by the mode, the character input program used in the writing process of the user is detected, so that the character information input by the user on the document template can be accurately obtained, and a reliable basis is provided for recommending proper writing input character strings subsequently.
Preferably, in the step S2, the character information is analyzed and processed, and according to a result of the analysis and processing, searching is performed in the document writing sub-database, so as to obtain a plurality of recommended writing input character strings specifically including:
carrying out corpus recognition processing on the character information so as to obtain keyword information corresponding to the character information;
the keyword information is used as a search word, fuzzy search is carried out in a user document writing habit character string set of the document writing sub-database, and a plurality of recommendation writing input character strings are obtained; the user document writing habit character string set comprises character strings used to by the user in the history document writing process.
The beneficial effects of the technical scheme are as follows: through the mode, corpus recognition processing is carried out on the character information, and matched keyword information is obtained; and then, the keyword information is used as a reference surface to perform fuzzy search on the user document writing habit character string set of the document writing sub-database, so that a plurality of recommended writing input character strings can be quickly and accurately obtained, and accurate character strings for selection are provided for the user writing the document.
Preferably, in the step S2, the fuzzy search is performed in the user document writing habit string set of the document writing sub-database by using the keyword information as a search term, so as to obtain a plurality of recommended writing input strings specifically including:
step S201, using the following formula (1), sorting the plurality of recommended writing input character strings once according to the number of keywords contained in the plurality of recommended writing input character strings,
in the above-mentioned formula (1),indicate->A primary ranking value of each recommended writing input character string; />Indicate->The number of keywords contained in the input character string is recommended to be written; />Indicate->The number of keywords contained in the input character string is recommended to be written; />Representing the total number of recommended writing input character strings; />The representation will->The value of (2) is from 1 to +.>Substituted into brackets to obtain ++>The number of values;
step S202, finding the recommended writing input character strings with the same primary sorting value according to the corresponding primary sorting values of the recommended writing input character strings by using the following formula (2),
in the above-mentioned formula (2),representation and said->A recommendation writing input character string set with the same primary ranking value of each recommendation writing input character string; />First->A primary ranking value of each recommended writing input character string;the representation will->The value of (2) is from 1 to +.>Substituted into brackets to obtain ++>A set of values;
obtaining a recommendation writing input character string set with the same primary ranking value of each recommendation writing input character string by utilizing the step S202, and if the number of elements in the recommendation writing input character string set with the same primary ranking value of the recommendation writing input character string is greater than 1, continuing to perform the following step S203 to perform secondary ranking;
step S203, using the following formula (3), according to the character string length of the recommended writing input character string with the same primary ranking value and the searched sequence of the character string during fuzzy search, performing secondary ranking on the recommended writing input character string with the same primary ranking value,
in the above-mentioned formula (3),the first +.>Secondary ranking values of the individual strings; />The first +.>The searched sequence value of the character strings in fuzzy search, wherein the sequence value of the first searched character string is 1, the sequence value of the second searched character string is 2, and the like; />The first +.>The string length of the individual strings; />The first +.>The string length of the individual strings; />The first +.>The string length of the individual strings; />The number of the recommended writing input character strings with the same primary sorting value is represented;
and firstly, sorting each character string according to a primary sorting value, sorting the character strings with the same primary sorting value according to a secondary sorting value if the character strings with the same primary sorting value are encountered in the primary sorting process, wherein the character strings with the same primary sorting value are arranged at the front ends of the character strings with the same primary sorting value, and the character strings with the same primary sorting value are arranged at the rear ends of the character strings with the same primary sorting value, so that sorting of all recommended writing input character strings is completed, and then the character strings are sequentially displayed at a user terminal according to the sorting order.
The beneficial effects of the technical scheme are as follows: by utilizing the formula (1), the plurality of recommended writing input character strings are ordered once according to the number of keywords contained in the plurality of recommended writing input character strings, so that the character strings with more keywords are preferentially displayed and output, and convenience is brought to a user for selection; then, according to the corresponding primary ordering values of a plurality of recommended writing input character strings, the recommended writing input character strings with the same primary ordering values are found out by utilizing the formula (2), so that the recommended writing input character strings with the same primary ordering values are intelligently and automatically screened out, and the screening efficiency of the system is improved; and finally, performing secondary sorting on the recommended writing input character strings with the same primary sorting value according to the character string length of the recommended writing input character strings with the same primary sorting value and the searched sequence of the character strings during fuzzy searching by utilizing the formula (3), and further performing non-repeated and non-overlapping sorting on the recommended writing input character strings with the same primary sorting value by utilizing the secondary sorting value to ensure the stable and normal operation of the system.
Preferably, in the step S3, according to a result of selection of the recommended writing input character string by the user, the updating of the data of the document writing sub-database specifically includes:
determining a recommendation writing input character string finally selected by the user from the plurality of recommendation writing input character strings, and updating user writing habit information of a corresponding character string in the user document writing habit character string set according to the finally selected recommendation writing input character string; the user writing habit information comprises writing and using times of the user on the character string.
The beneficial effects of the technical scheme are as follows: by the method, the user document writing habit character string set can be correspondingly updated according to the real-time writing condition of the user on the document template, so that the user document writing habit character string set can be ensured to record the latest writing habit of the user in time, and the accuracy of writing recommendation is further improved.
Preferably, in the step S3, determining whether the user completes the editing operation on the document template, thereby switching the editing state of the document template specifically includes:
judging whether the user renames and saves the document template through the user terminal, if so, determining that the user has completed editing operation on the document template; if not, determining that the user is not complete with the editing operation of the document template;
when the user has completed editing operation on the document template, switching the document template to a read-only state;
when the user does not complete the editing operation of the document template, the document template is kept unchanged in the current editable state.
The beneficial effects of the technical scheme are as follows: by the method, the data security of the document template with the editing operation completed can be ensured.
Preferably, in the step S4, after the document template for which the editing operation has been completed is subjected to the inspection process and the correction process, the document template is subjected to the identification process; the storing the document template in the specific storage space of the user terminal specifically comprises:
performing text grammar and mispronounced word detection processing on the document template with the editing operation completed, performing grammar and mispronounced word correction processing on the text sub-data to be edited according to the text grammar and mispronounced word detection processing result, and adding the user account information to the document template to serve as identification information of the document template;
and then saving the document template to a specific storage space of the user terminal, which corresponds to the user account information.
The beneficial effects of the technical scheme are as follows: by the method, the correctness and the preservation reliability of the document content of the document template with the editing operation completed can be ensured, and the document template can be conveniently and quickly searched and found in the follow-up process.
According to the content of the embodiment, the intelligent recommendation method for standard writing selects a matched document writing sub-database according to a document writing request from a user terminal, provides a proper document template based on the selected document writing sub-database, and searches a plurality of recommendation writing input character strings from the document writing sub-database according to character information input by a user in the document template writing process; according to the selection result of the user for recommending and writing the input character string, the document writing sub-database is updated, the document template which has completed the editing operation is checked and corrected, and then the document template is stored in the specific storage space of the user terminal.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (4)
1. The standard writing intelligent recommendation method is characterized by comprising the following steps of:
step S1, acquiring a document writing request from a user terminal, and selecting a matched document writing sub-database from a cloud database according to the document writing request; selecting a matched document template from the document writing sub-database according to the document writing request, and returning the document template to the user terminal;
step S2, detecting the writing process of the document template on the user terminal so as to obtain character information input by a user on the document template; analyzing and processing the character information, searching in the document writing sub-database according to the analysis and processing result, and obtaining a plurality of recommended writing input character strings;
step S3, according to the selection result of the user on the recommended writing input character string, carrying out data update on the document writing sub-database; judging whether the user finishes the editing operation of the document template, so as to switch the editing state of the document template;
s4, after checking and correcting the document template with the editing operation completed, carrying out identification processing on the document template; storing the document template into a specific storage space of the user terminal;
in the step S1, obtaining a document writing request from a user terminal, and selecting a matched document writing sub-database from a cloud database according to the document writing request specifically includes:
acquiring a document writing request from a user terminal, and extracting terminal identity information of the user terminal from the document writing request;
selecting a document writing sub-database matched with the user terminal from a cloud database according to the terminal identity information; wherein, the document writing sub-database stores all document writing history record information of the user terminal;
judging whether the user terminal has the authority to use the document writing sub-database or not according to the user account information of the current login of the user terminal;
in the step S1, selecting a matched document template from the document writing sub-database according to the document writing request, and returning the document template to the user terminal specifically includes:
when the user terminal has the authority to use the document writing sub-database, extracting the document format information which is required to be written currently by the user from the document writing request;
selecting a document template which is consistent with the document format information and has the highest historical use frequency from a document template set of the document writing sub-database according to the document format information; returning the document template to the user terminal directly;
in the step S2, detecting a writing process of the document template on the user terminal, so as to obtain character information input by the user on the document template specifically includes:
determining a character input program used in the process of writing the document template by the user through the user terminal, and detecting the character input program so as to obtain character information input by the user on the document template;
in the step S2, the character information is analyzed and processed, and according to the result of the analysis and processing, searching is performed in the document writing sub-database, so as to obtain a plurality of recommended writing input character strings specifically includes:
carrying out corpus recognition processing on the character information so as to obtain keyword information corresponding to the character information;
performing fuzzy search in a user document writing habit character string set of the document writing sub-database by taking the keyword information as a search word so as to obtain a plurality of recommended writing input character strings; the user document writing habit character string set comprises character strings used to be used by the user in the history document writing process;
in the step S2, fuzzy search is performed in the user document writing habit string set of the document writing sub-database by using the keyword information as a search term, so as to obtain a plurality of recommended writing input strings specifically including:
step S201, using the following formula (1), sorting the plurality of recommended writing input character strings once according to the number of keywords contained in the plurality of recommended writing input character strings,
in the above formula (1), Q (k) represents a first order value of the kth recommended writing input character string; w (k) represents the number of keywords contained in the kth recommended writing input character string; m (e) represents the number of keywords contained in the e-th recommended writing input character string; n represents the total number of recommended writing input character strings;the number of e values satisfying the formula in brackets is obtained by substituting the value of e from 1 to n in brackets;
step S202, finding the recommended writing input character strings with the same primary sorting value according to the corresponding primary sorting values of the recommended writing input character strings by using the following formula (2),
in the above formula (2), W (k) represents a recommended writing input string set having the same primary ranking value as the kth recommended writing input string; q (d) the d-th recommended write primary ranking value of the input string;substituting the value of d from 1 to n into brackets to obtain a set of d values satisfying the formula in brackets;
obtaining a recommendation writing input character string set with the same primary ranking value of each recommendation writing input character string by utilizing the step S202, and if the number of elements in the recommendation writing input character string set with the same primary ranking value of the recommendation writing input character string is greater than 1, continuing to perform the following step S203 to perform secondary ranking;
step S203, using the following formula (3), according to the character string length of the recommended writing input character string with the same primary ranking value and the searched sequence of the character string during fuzzy search, performing secondary ranking on the recommended writing input character string with the same primary ranking value,
in the above formula (3), G (x) represents a secondary ranking value of an xth character string in the recommended write input character string having the same primary ranking value; s (x) represents the searched sequence value of the x-th character string in the recommended writing input character strings with the same one-time sequence value in fuzzy search, wherein the sequence value of the first searched character string is 1, the sequence value of the second searched character string is 2, and the like; l (a) represents the character string length of the a-th character string in the recommended writing input character string with the same one-time ordering value; l (x) represents the string length of the x-th string in the recommended writing input strings with the same sorting value at a time; l (i) represents the character string length of the ith character string in the recommended writing input character strings with the same primary ranking value; g represents the number of recommended writing input character strings with the same primary sorting value;
and firstly, sorting each character string according to a primary sorting value, sorting the character strings with the same primary sorting value according to a secondary sorting value if the character strings with the same primary sorting value are encountered in the primary sorting process, wherein the character strings with the same primary sorting value are arranged at the front ends of the character strings with the same primary sorting value, and the character strings with the same primary sorting value are arranged at the rear ends of the character strings with the same primary sorting value, so that sorting of all recommended writing input character strings is completed, and then the character strings are sequentially displayed at a user terminal according to the sorting order.
2. The standard written intelligent recommendation method of claim 1, wherein: in the step S3, according to the selection result of the user on the recommended writing input character string, the data updating of the document writing sub-database specifically includes:
determining a recommendation writing input character string finally selected by the user from the plurality of recommendation writing input character strings, and updating user writing habit information of a corresponding character string in the user document writing habit character string set according to the finally selected recommendation writing input character string; the user writing habit information comprises writing and using times of the user on the character string.
3. The standard written intelligent recommendation method of claim 2, wherein: in the step S3, determining whether the user completes the editing operation on the document template, so as to switch the editing state of the document template specifically includes:
judging whether the user renames and saves the document template through the user terminal, if so, determining that the user has completed editing operation on the document template; if not, determining that the user is not complete with the editing operation of the document template;
when the user has completed editing operation on the document template, switching the document template to a read-only state;
and when the user does not complete the editing operation on the document template, keeping the current editable state of the document template unchanged.
4. The standard written intelligent recommendation method of claim 3, wherein: in the step S4, after checking and correcting the document template with the editing operation completed, carrying out identification processing on the document template; the storing the document template in the specific storage space of the user terminal specifically comprises:
performing text grammar and mispronounced word detection processing on the document template with the editing operation, performing grammar and mispronounced word correction processing on the document template with the editing operation according to the text grammar and mispronounced word detection processing result, and adding the user account information to the document template to serve as identification information of the document template;
and then saving the document template to a specific storage space of the user terminal, which corresponds to the user account information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211422607.XA CN115577694B (en) | 2022-11-15 | 2022-11-15 | Intelligent recommendation method for standard writing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211422607.XA CN115577694B (en) | 2022-11-15 | 2022-11-15 | Intelligent recommendation method for standard writing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115577694A CN115577694A (en) | 2023-01-06 |
CN115577694B true CN115577694B (en) | 2023-05-30 |
Family
ID=84588186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211422607.XA Active CN115577694B (en) | 2022-11-15 | 2022-11-15 | Intelligent recommendation method for standard writing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115577694B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116090416B (en) * | 2023-04-10 | 2023-06-27 | 中国电子技术标准化研究院 | Standard writing method, system, equipment and medium based on standard knowledge graph |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100709237B1 (en) * | 2005-10-25 | 2007-04-19 | 전한구 | Method for processing character string |
CN101334774B (en) * | 2007-06-29 | 2013-08-14 | 北京搜狗科技发展有限公司 | Character input method and input method system |
CN106371624B (en) * | 2016-09-23 | 2019-03-19 | 百度在线网络技术(北京)有限公司 | It is a kind of for provide input candidate item method, apparatus and input equipment |
CN112711937B (en) * | 2021-01-18 | 2022-06-24 | 腾讯科技(深圳)有限公司 | Template recommendation method, device, equipment and storage medium |
CN113408262A (en) * | 2021-08-16 | 2021-09-17 | 中国电子科技集团公司第十五研究所 | Document online editing and generating system, method, device and storage medium |
CN114153963A (en) * | 2021-11-30 | 2022-03-08 | 北京达佳互联信息技术有限公司 | Document recommendation method and device, computer equipment and medium |
-
2022
- 2022-11-15 CN CN202211422607.XA patent/CN115577694B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115577694A (en) | 2023-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108460014B (en) | Enterprise entity identification method and device, computer equipment and storage medium | |
CN109800407B (en) | Intention recognition method and device, computer equipment and storage medium | |
CN109726274B (en) | Question generation method, device and storage medium | |
CN109344230B (en) | Code library file generation, code search, coupling, optimization and migration method | |
CN110705302B (en) | Named entity identification method, electronic equipment and computer storage medium | |
CN107861753B (en) | APP generation index, retrieval method and system and readable storage medium | |
JP4860903B2 (en) | How to automatically index documents | |
US11651014B2 (en) | Source code retrieval | |
CN111292751B (en) | Semantic analysis method and device, voice interaction method and device, and electronic equipment | |
CN109522397B (en) | Information processing method and device | |
CN114036930A (en) | Text error correction method, device, equipment and computer readable medium | |
CN115577694B (en) | Intelligent recommendation method for standard writing | |
CN111783467A (en) | Enterprise name identification method and device | |
CN102033866A (en) | Method and system for checking chemical name | |
US20110229036A1 (en) | Method and apparatus for text and error profiling of historical documents | |
CN112052154A (en) | Test case processing method and device | |
US11797551B2 (en) | Document retrieval apparatus, document retrieval system, document retrieval program, and document retrieval method | |
CN106959960B (en) | Data acquisition method and device | |
CN111597400A (en) | Computer retrieval system and method based on way-finding algorithm | |
CN111368547A (en) | Entity identification method, device, equipment and storage medium based on semantic analysis | |
CN111639160A (en) | Domain identification method, interaction method, electronic device and storage medium | |
CN116418705A (en) | Network asset identification method, system, terminal and medium based on machine learning | |
CN112447173A (en) | Voice interaction method and device and computer storage medium | |
CN113609864B (en) | Text semantic recognition processing system and method based on industrial control system | |
US6963865B2 (en) | Method system and program product for data searching |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |