CN115577694A - Intelligent recommendation method for standard writing - Google Patents
Intelligent recommendation method for standard writing Download PDFInfo
- Publication number
- CN115577694A CN115577694A CN202211422607.XA CN202211422607A CN115577694A CN 115577694 A CN115577694 A CN 115577694A CN 202211422607 A CN202211422607 A CN 202211422607A CN 115577694 A CN115577694 A CN 115577694A
- Authority
- CN
- China
- Prior art keywords
- document
- writing
- user
- recommended
- document template
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 72
- 238000012163 sequencing technique Methods 0.000 claims description 56
- 238000012545 processing Methods 0.000 claims description 21
- 238000001514 detection method Methods 0.000 claims description 6
- 238000012937 correction Methods 0.000 claims description 5
- 230000009286 beneficial effect Effects 0.000 description 9
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- Document Processing Apparatus (AREA)
Abstract
The invention provides a standard writing intelligent recommendation method, which takes a document writing sub-database matched with a user as a reference, recommends a proper document template to 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 to the user according to the writing habits of the user, a reliable recommendation function is provided for the user to input the character strings to the document template, the workload of writing the document is reduced, and the efficiency of writing the document is improved.
Description
Technical Field
The invention relates to the technical field of document editing, in particular to an intelligent recommendation method for standard compiling.
Background
In daily office, a large number of different types of documents are required to be written, the writing of the documents is usually realized based on a manual writing mode, and each document has a unique writing requirement, so that a writer is required to write and input the content of each document again in the writing process, and the writer needs to consume more manpower and time to perform corresponding writing work, thereby increasing the workload of writing the documents and reducing the efficiency of writing the documents. The current document writing mode cannot recommend a proper character string to a writer according to the writing habit of the writer, so that the writer needs to spend considerable time for searching the proper character string.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a standard compiling intelligent recommendation method, which selects a matched document compiling sub-database according to a document compiling request from a user terminal, provides a proper document template on the basis of the selected document compiling sub-database, and searches a plurality of recommended compiling input character strings from the document compiling sub-database according to character information input by a user in the process of compiling the document template; according to the method, the appropriate document template is recommended to the user on the basis of the document compiling sub-database matched with the user, and a plurality of recommended compiling input character strings are provided for the user in the compiling process, so that the appropriate character strings are recommended to the user according to the compiling habit of the user, a reliable recommending function is provided for the user to input the character strings of the document template, the work load of document compiling is reduced, and the efficiency of document compiling is improved.
The invention provides an intelligent recommendation method for standard writing, which comprises the following steps:
the method comprises the following steps that S1, a document compiling request from a user terminal is obtained, and a matched document compiling sub-database is selected from a cloud database according to the document compiling request; then according to the document compiling request, selecting a matched document template from the document compiling sub-database, and returning the document template to the user terminal;
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, and searching in the document writing sub-database according to the analysis and processing result so as to obtain a plurality of recommended writing input character strings;
s3, updating data of the document compiling sub-database according to a selection result of the user on the recommended compiling input character string; judging whether the user finishes the editing operation on the document template so as to switch the editing state of the document template;
s4, after checking and correcting the document template which is edited, identifying the document template; and then the document template is stored in a specific storage space of the user terminal.
Further, in step S1, acquiring a document writing request from a user terminal, and selecting a matching document writing sub-database from a cloud database according to the document writing request specifically includes:
acquiring a document compiling request from a user terminal, and extracting terminal identity information of the user terminal from the document compiling request;
selecting a document compiling sub-database matched with the user terminal from a cloud database according to the terminal identity information; the document writing sub-database stores all document writing history information of the user terminal;
and judging whether the user terminal has the authority of writing the sub-database by using the document or not according to the user account information currently logged in by the user terminal.
Further, 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 of using the document to compile the sub-database, extracting document format information which needs to be compiled currently by a user from the document compiling request;
according to the document format information, 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; and directly returning the document template to the user terminal.
Further, in 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 process of writing the document template by the user through the user terminal, and detecting the character input program so as to obtain the character information input on the document template by the user.
Further, in the step S2, analyzing the character information, and searching in the document writing sub-database according to a result of the analysis, so as to obtain a plurality of recommended writing input character strings specifically includes:
performing corpus identification processing on the character information 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 by the user in a 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 with 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),is shown asThe one-time ranking value of the input character string is recommended to be compiled;is shown asThe number of keywords contained in each recommended writing input character string;is shown asThe number of keywords contained in each recommended writing input character string;representing a total number of recommended composition input strings;show thatFrom 1 toSubstituted in parentheses to obtain an equation satisfying the parenthesisThe 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 plurality of recommended writing input character strings by using the following formula (2),
in the above-mentioned formula (2),is represented by the secondThe recommended writing input character string set with the same primary ranking value of the recommended writing input character strings;first, theThe first-time ordering value of the input character string is recommended to be written;show thatFrom 1 toSubstituted in parentheses to obtain an equation satisfying the parenthesisA set of values;
obtaining a recommended writing input character string set with each recommended writing input character string having the same primary ranking value by using the step S202, and if the number of elements in the recommended writing input character string set with each recommended writing input character string having the same primary ranking value is more than 1, continuing to perform secondary ranking in the following step S203;
step S203, using the following formula (3), according to the length of the character string of the recommended writing input character string with the same primary sorting value and the searched sequence of the character string during fuzzy search, performing secondary sorting on the recommended writing input character string with the same primary sorting value,
in the above-mentioned formula (3),indicating the first order value of the recommended composition input stringA secondary ranking value of the individual character strings;indicating the first order value of the recommended composition input stringThe sequence value of the searched character strings during fuzzy search is 1, the sequence value of the searched character string is 2, and so on;indicating the first order value of the recommended composition input stringA string length of a string;indicating the first order value of the recommended composition input stringA string length of a string;indicating the first order value of the recommended composition input stringA string length of a string;representing the number of recommended writing input character strings with the same one-time ranking value;
the method comprises the steps of firstly sequencing each character string according to a primary sequencing value, sequencing the character strings with the same primary sequencing value according to a secondary sequencing value if the character strings with the same primary sequencing value are encountered in the primary sequencing process, sequencing the character strings with the same primary sequencing value according to the secondary sequencing value, sequencing the character strings with the same secondary sequencing value with the large secondary sequencing value at the front ends of the character strings with the same primary sequencing value, sequencing the character strings with the small numerical value at the rear ends of the character strings with the same primary sequencing value, finishing sequencing all recommended compiling input character strings, and sequentially displaying the character strings on a user terminal according to the sequencing sequence.
Further, in step S3, updating the data of the document composition sub-database according to the selection result of the user on the recommended composition input character string specifically includes:
determining a recommended writing input character string finally selected by the user from the plurality of recommended 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 recommended writing input character string; the user writing habit information comprises writing use 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, so as to switch the editing state of the document template specifically includes:
judging whether the user renames and stores the document template through the user terminal, and if so, determining that the user finishes editing the document template; if not, determining that the user does not finish editing the document template;
when the user finishes editing the document template, switching the document template to a read-only state;
and when the user does not finish 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 that has been edited is subjected to inspection processing and correction processing, the document template is subjected to identification processing; then, the step of saving the document template to the specific storage space of the user terminal specifically includes:
performing text grammar and wrongly written character detection processing on the document template which is edited, performing grammar and wrongly written character correction processing on the text subdata to be edited according to the text grammar and wrongly written character detection processing result, and adding the user account information to the document template to be used as the identification information of the document template;
and then storing the document template to a specific storage space of the user terminal corresponding to the user account information.
Compared with the prior art, the standard writing intelligent recommendation method selects the 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 recommended writing input character strings from the document writing sub-database according to character information input by a user in the process of writing the document template; according to the method, the appropriate document template is recommended to the user on the basis of the document compiling sub-database matched with the user, and a plurality of recommended compiling input character strings are provided for the user in the compiling process, so that the appropriate character strings are recommended to the user according to the compiling habit of the user, a reliable recommending function is provided for the user to input the character strings of the document template, the work load of document compiling is reduced, and the efficiency of document compiling is improved.
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 hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a standard written intelligent recommendation method provided by the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a schematic flow chart of a standard-written intelligent recommendation method according to an embodiment of the present invention is shown. The intelligent recommendation method written by the standard comprises the following steps:
s1, acquiring a document compiling request from a user terminal, and selecting a matched document compiling sub-database from a cloud database according to the document compiling request; then according to the document compiling request, selecting a matched document template from the document compiling sub-database, and returning the document template to the user terminal;
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 the character information, and searching in the document compiling sub-database according to the analysis and processing result so as to obtain a plurality of recommended compiling input character strings;
s3, updating data of the document compiling sub-database according to a selection result of the user on the recommended compiling input character string; judging whether the user finishes the editing operation on the document template so as to switch the editing state of the document template;
s4, after checking and correcting the document template which is edited, identifying the document template; and then the document template is stored in a specific storage space of the user terminal.
The beneficial effects of the above technical scheme are: the intelligent recommendation method of 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 recommended writing input character strings from the document writing sub-database according to character information input by a user in the process of writing the document template; according to the method, the appropriate document template is recommended to the user on the basis of the document compiling sub-database matched with the user, and a plurality of recommended compiling input character strings are provided for the user in the compiling process, so that the appropriate character strings are recommended to the user according to the compiling habit of the user, a reliable recommending function is provided for the user to input the character strings of the document template, the work load of document compiling is reduced, and the efficiency of document compiling is improved.
Preferably, in step S1, obtaining a document writing request from a user terminal, and selecting a matching document writing sub-database from the cloud database according to the document writing request specifically includes:
acquiring a document compiling request from a user terminal, and extracting terminal identity information of the user terminal from the document compiling request;
selecting a document compiling 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 information of the user terminal;
and judging whether the user terminal has the authority of writing the sub-database by using the document or not according to the current login user account information of the user terminal.
The beneficial effects of the above technical scheme are: the computer user terminal can allow different users to log in for use, corresponding document writing history information exists in the process that each user uses the user terminal, and the sub-database is written according to the corresponding document of each user. By the method, the matched document writing sub-database is selected from the cloud database for the document writing request from the user terminal, so that character information conforming to the writing habit of the user can be recommended to the user in the actual document editing process.
Preferably, in 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 of using the document to write the sub-database, extracting document format information which needs to be written by a user at present from the document writing request;
according to the document format information, 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; and directly returning the document template to the user terminal.
The beneficial effects of the above technical scheme are: 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 step S2, detecting the writing process of the document template on the user terminal, so as to obtain the 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 the character information input on the document template by the user.
The beneficial effects of the above technical scheme are: by the method, 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 subsequently recommending proper writing input character strings.
Preferably, in step S2, analyzing the character information, and searching in the document composition sub-database according to a result of the analysis, so as to obtain a plurality of recommended composition input character strings specifically includes:
performing corpus identification processing on the character information to obtain keyword information corresponding to the character information;
taking the keyword information as a search word, and carrying out fuzzy search in a user document writing habit character string set of the document writing sub-database so as to obtain a plurality of recommended writing input character strings; wherein, the user document writing habit character string set comprises character strings used by the user in the history document writing process.
The beneficial effects of the above technical scheme are: by the method, corpus identification processing is carried out on the character information to obtain matched keyword information; and then, by taking the keyword information as a reference surface, fuzzy search is carried out on the user document writing habit character string set of the document writing sub-database, a plurality of recommended writing input character strings can be quickly and accurately obtained, and accurate optional character strings are provided for the user to write the document.
Preferably, in the step S2, the step of 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 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),is shown asThe first-time ordering value of the input character string is recommended to be written;is shown asThe number of keywords contained in each recommended writing input character string;is shown asRecommending and writing input character stringThe number of keywords contained in the text;representing a total number of recommended composition input strings;show thatFrom 1 toSubstituted in parentheses to obtain an equation satisfying the parenthesisThe 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 plurality of recommended writing input character strings by using the following formula (2),
in the above-mentioned formula (2),represent and saidThe recommended writing input character string set with the same one-time ordering value of the recommended writing input character strings;first, theThe first-time ordering value of the input character string is recommended to be written;show thatFrom 1 toSubstituted in parentheses to obtain an equation satisfying the parenthesisA set of values;
obtaining a recommended writing input character string set with each recommended writing input character string having the same primary ranking value by using the step S202, and if the number of elements in the recommended writing input character string set with the recommended writing input character string having the same primary ranking value is more than 1, continuing to perform secondary ranking in the following step S203;
step S203, using the following formula (3), according to the length of the character string of the recommended writing input character string with the same primary sorting value and the searched sequence of the character string during fuzzy search, performing secondary sorting on the recommended writing input character string with the same primary sorting value,
in the above-mentioned formula (3),indicating the first order value of the recommended composition input stringA secondary ranking value of the individual character strings;indicating the first order value of the recommended composition input stringThe sequence value of the searched character strings during fuzzy search is 1, the sequence value of the searched character string is 2, and so on;indicating the first order value of the recommended composition input stringA string length of a string;indicating the first order value of the same recommended composition input stringA string length of a string;indicating the first order value of the recommended composition input stringA string length of each string;representing the number of recommended writing input character strings with the same one-time ranking value;
the method comprises the steps of firstly sequencing each character string according to a primary sequencing value, sequencing the character strings with the same primary sequencing value according to a secondary sequencing value if the character strings with the same primary sequencing value are encountered in the primary sequencing process, sequencing the character strings with the same primary sequencing value according to the secondary sequencing value, sequencing the character strings with the same secondary sequencing value with the large secondary sequencing value at the front ends of the character strings with the same primary sequencing value, sequencing the character strings with the same secondary sequencing value with the small secondary sequencing value at the rear ends of the character strings with the same primary sequencing value, thereby completing the sequencing of all recommended writing input character strings, and then sequentially displaying the character strings at a user terminal according to the sequencing sequence.
The beneficial effects of the above technical scheme are: by utilizing the formula (1), the recommended writing input character strings are sorted for one time according to the number of the keywords contained in the recommended writing input character strings, so that the character strings containing more keywords are preferentially displayed and output, and the selection of a user is facilitated; then, by using the formula (2), the recommended writing input character strings with the same one-time ranking value are found according to the corresponding one-time ranking values of the recommended writing input character strings, and the recommended writing input character strings with the same one-time ranking value are intelligently and automatically screened out, so that 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 in the fuzzy search by using 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 using the secondary sorting value to ensure stable and normal operation of the system.
Preferably, in step S3, updating the data of the document composition sub-database according to the selection result of the user on the recommended composition input character string specifically includes:
determining a recommended writing input character string finally selected by the user from the plurality of recommended 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 recommended writing input character string; the user writing habit information comprises writing use times of the character string by the user.
The beneficial effects of the above technical scheme are: by the method, the user document writing habit string set can be correspondingly updated according to the real-time writing condition of the user on the document template, the latest writing habit of the user can be timely recorded by the user document writing habit string set, 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, 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 finishes editing the document template; if not, determining that the user does not finish editing the document template;
when the user finishes the editing operation of 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 document template unchanged in the current editable state.
The beneficial effects of the above technical scheme are: 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 having completed the editing operation is subjected to the checking process and the correcting process, the document template is subjected to the identification process; then, the step of saving the document template to the specific storage space of the user terminal specifically includes:
performing text grammar and wrongly-written character detection processing on the document template which is edited, performing grammar and wrongly-written character correction processing on the text subdata to be edited according to the result of the text grammar and wrongly-written character detection processing, and adding the user account information to the document template to be used as the identification information of the document template;
and then storing the document template into a specific storage space of the user terminal corresponding to the user account information.
The beneficial effects of the above technical scheme are: by the method, the correctness and the storage reliability of the document content of the document template which is edited can be ensured, and the document template can be conveniently, quickly and accurately inquired and found in the follow-up process.
According to the content of the embodiment, the standard-writing intelligent recommendation method selects the matched document writing sub-database according to the document writing request from the user terminal, provides a proper document template on the basis of the selected document writing sub-database, and searches a plurality of recommended writing input character strings from the document writing sub-database according to the character information input by the user in the process of writing the document template; according to the method, the appropriate document template is recommended to the user on the basis of the document compiling sub-database matched with the user, and a plurality of recommended compiling input character strings are provided for the user in the compiling process, so that the appropriate character strings are recommended to the user according to the compiling habit of the user, a reliable recommending function is provided for the user to input the character strings of the document template, the work load of document compiling is reduced, and the efficiency of document compiling is improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (9)
1. The intelligent recommendation method written in the standard is characterized by comprising the following steps:
the method comprises the following steps that S1, a document compiling request from a user terminal is obtained, and a matched document compiling sub-database is selected from a cloud database according to the document compiling request; then according to the document compiling request, selecting a matched document template from the document compiling sub-database, and returning the document template to the user terminal;
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, and searching in the document writing sub-database according to the analysis and processing result so as to obtain a plurality of recommended writing input character strings;
s3, updating data of the document compiling sub-database according to a selection result of the user on the recommended compiling input character string; judging whether the user finishes the editing operation on the document template or not so as to switch the editing state of the document template;
s4, after the document template which is edited is checked and corrected, the document template is identified; and then the document template is stored in a specific storage space of the user terminal.
2. The standard written intelligent recommendation method of claim 1, wherein:
in step S1, obtaining a document writing request from a user terminal, and selecting a matching document writing sub-database from a cloud database according to the document writing request specifically includes:
acquiring a document compiling request from a user terminal, and extracting terminal identity information of the user terminal from the document compiling request;
selecting a document compiling sub-database matched with the user terminal from a cloud database according to the terminal identity information; the document writing sub-database stores all document writing history information of the user terminal;
and judging whether the user terminal has the authority of writing the sub-database by using the document or not according to the user account information currently logged in by the user terminal.
3. The standard written intelligent recommendation method of claim 2, wherein:
in step S1, selecting a matched document template from the document compiling sub-database according to the document compiling request, and returning the document template to the user terminal specifically includes:
when the user terminal has the authority of using the document to write the sub-database, extracting document format information which needs to be written by a user at present from the document writing request;
according to the document format information, 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; and directly returning the document template to the user terminal.
4. The standard written intelligent recommendation method of claim 3, wherein:
in step S2, detecting the writing process of the document template on the user terminal, so as to obtain the 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 the character information input on the document template by the user.
5. The standard-written intelligent recommendation method of claim 4, wherein:
in the step S2, analyzing the character information, and searching in the document authoring sub-database according to a result of the analysis, so as to obtain a plurality of recommended authoring input character strings specifically include:
performing corpus identification processing on the character information 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 by the user in a history document writing process.
6. The standard-written intelligent recommendation method of claim 5, wherein:
in the step S2, performing fuzzy search in the user document writing habit character 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 character strings specifically include:
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),is shown asThe first-time ordering value of the input character string is recommended to be written;is shown asThe number of keywords contained in each recommended writing input character string;is shown asThe number of keywords contained in each recommended writing input character string;representing total of recommended composition input stringsCounting;show thatFrom 1 toSubstituted in parentheses to obtain an equation satisfying the parenthesisThe number of values;
step S202, finding the recommended writing input character strings with the same primary ranking value according to the corresponding primary ranking values of the plurality of recommended writing input character strings by using the following formula (2),
in the above-mentioned formula (2),is represented by the secondThe recommended writing input character string set with the same one-time ordering value of the recommended writing input character strings;first, theThe first-time ordering value of the input character string is recommended to be written;show thatFrom 1 toSubstituted in parentheses to obtain an equation satisfying the parenthesisA set of values;
obtaining a recommended writing input character string set with each recommended writing input character string having the same primary ranking value by using the step S202, and if the number of elements in the recommended writing input character string set with the recommended writing input character string having the same primary ranking value is more than 1, continuing to perform secondary ranking in the following step S203;
step S203, using the following formula (3), according to the length of the character string of the recommended writing input character string with the same primary sorting value and the searched sequence of the character string during fuzzy search, performing secondary sorting on the recommended writing input character string with the same primary sorting value,
in the above-mentioned formula (3),indicating the first order value of the recommended composition input stringA secondary ranking value of the individual character strings;indicating the first order value of the recommended composition input stringThe sequence value of the searched character strings during fuzzy search is 1, the sequence value of the searched character string is 2, and so on;indicating the first order value of the same recommended composition input stringA string length of each string;indicating the first order value of the recommended composition input stringA string length of a string;indicating the first order value of the recommended composition input stringA string length of a string;representing the number of recommended writing input character strings with the same one-time ranking value;
the method comprises the steps of firstly sequencing each character string according to a primary sequencing value, sequencing the character strings with the same primary sequencing value according to a secondary sequencing value if the character strings with the same primary sequencing value are encountered in the primary sequencing process, sequencing the character strings with the same primary sequencing value according to the secondary sequencing value, sequencing the character strings with the same secondary sequencing value with the large secondary sequencing value at the front ends of the character strings with the same primary sequencing value, sequencing the character strings with the small numerical value at the rear ends of the character strings with the same primary sequencing value, finishing sequencing all recommended compiling input character strings, and sequentially displaying the character strings on a user terminal according to the sequencing sequence.
7. The standard-written intelligent recommendation method of claim 5, wherein:
in the step S3, updating the data of the document composition sub-database according to the selection result of the user on the recommended composition input character string specifically includes:
determining a recommended writing input character string finally selected by the user from the plurality of recommended 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 recommended writing input character string; the user writing habit information comprises writing use times of the user on the character string.
8. The standard-written intelligent recommendation method of claim 7, 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, and if so, determining that the user finishes editing the document template; if not, determining that the user does not finish editing the document template;
when the user finishes editing the document template, switching the document template to a read-only state;
and when the user does not finish the editing operation on the document template, keeping the document template in the current editable state.
9. The standard-written intelligent recommendation method of claim 8, wherein:
in the step S4, after the document template that has completed the editing operation is subjected to the checking process and the correction process, the document template is subjected to the identification process; then, the step of saving the document template to the specific storage space of the user terminal specifically includes:
performing text grammar and wrongly written characters detection processing on a document template which is edited, performing grammar and wrongly written characters correction processing on the document template according to a text grammar and wrongly written characters detection processing result, and adding the user account information to the document template to be used as identification information of the document template; and then storing the document template to a specific storage space of the user terminal corresponding 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 true CN115577694A (en) | 2023-01-06 |
CN115577694B 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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116090416A (en) * | 2023-04-10 | 2023-05-09 | 中国电子技术标准化研究院 | Standard writing method, system, equipment and medium based on standard knowledge graph |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100709237B1 (en) * | 2005-10-25 | 2007-04-19 | 전한구 | Method for processing character string |
CN101334774A (en) * | 2007-06-29 | 2008-12-31 | 北京搜狗科技发展有限公司 | Character input method and input method system |
CN106371624A (en) * | 2016-09-23 | 2017-02-01 | 百度在线网络技术(北京)有限公司 | Method and device for providing input candidate item |
CN112711937A (en) * | 2021-01-18 | 2021-04-27 | 腾讯科技(深圳)有限公司 | 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
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100709237B1 (en) * | 2005-10-25 | 2007-04-19 | 전한구 | Method for processing character string |
CN101334774A (en) * | 2007-06-29 | 2008-12-31 | 北京搜狗科技发展有限公司 | Character input method and input method system |
CN106371624A (en) * | 2016-09-23 | 2017-02-01 | 百度在线网络技术(北京)有限公司 | Method and device for providing input candidate item |
CN112711937A (en) * | 2021-01-18 | 2021-04-27 | 腾讯科技(深圳)有限公司 | 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 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116090416A (en) * | 2023-04-10 | 2023-05-09 | 中国电子技术标准化研究院 | Standard writing method, system, equipment and medium based on standard knowledge graph |
Also Published As
Publication number | Publication date |
---|---|
CN115577694B (en) | 2023-05-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108460014B (en) | Enterprise entity identification method and device, computer equipment and storage medium | |
CN109543022B (en) | Text error correction method and device | |
JP5274259B2 (en) | System and method for searching and matching data having ideographic content | |
CN112446351B (en) | Intelligent identification method for medical bills | |
US9141691B2 (en) | Method for automatically indexing documents | |
CN110705302B (en) | Named entity identification method, electronic equipment and computer storage medium | |
US20110202545A1 (en) | Information extraction device and information extraction system | |
CN102314452B (en) | A kind of method and system of being undertaken navigating by input method platform | |
CN104239565B (en) | A kind of name automatic prompt method based on academics search | |
CN105608113B (en) | Judge the method and device of POI data in text | |
CN109063171B (en) | Resource matching method based on semantics | |
CN110381115B (en) | Information pushing method and device, computer readable storage medium and computer equipment | |
CN112988962B (en) | Text error correction method and device, electronic equipment and storage medium | |
CN111369294B (en) | Software cost estimation method and device | |
CN107463711A (en) | A kind of tag match method and device of data | |
CN111444718A (en) | Insurance product demand document processing method and device and electronic equipment | |
CN115577694B (en) | Intelligent recommendation method for standard writing | |
CN108153728B (en) | Keyword determination method and device | |
CN111783467A (en) | Enterprise name identification method and device | |
CN102033866A (en) | Method and system for checking chemical name | |
CN110232160B (en) | Method and device for detecting interest point transition event and storage medium | |
CN113609864B (en) | Text semantic recognition processing system and method based on industrial control system | |
Dejean | Extracting structured data from unstructured document with incomplete resources | |
CN111723296B (en) | Search processing method and device and computer equipment | |
CN111581950B (en) | Method for determining synonym names and method for establishing knowledge base of synonym names |
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 |