CN115577694A - Intelligent recommendation method for standard writing - Google Patents

Intelligent recommendation method for standard writing Download PDF

Info

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
Application number
CN202211422607.XA
Other languages
Chinese (zh)
Other versions
CN115577694B (en
Inventor
林正平
周育忠
涂亮
王宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China South Power Grid International Co ltd
Original Assignee
China South Power Grid International Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China South Power Grid International Co ltd filed Critical China South Power Grid International Co ltd
Priority to CN202211422607.XA priority Critical patent/CN115577694B/en
Publication of CN115577694A publication Critical patent/CN115577694A/en
Application granted granted Critical
Publication of CN115577694B publication Critical patent/CN115577694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements 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/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy 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

Intelligent recommendation method for standard writing
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,
Figure 171093DEST_PATH_IMAGE001
(1)
in the above-mentioned formula (1),
Figure 100002_DEST_PATH_IMAGE002
is shown as
Figure 557075DEST_PATH_IMAGE003
The one-time ranking value of the input character string is recommended to be compiled;
Figure 100002_DEST_PATH_IMAGE004
is shown as
Figure 805654DEST_PATH_IMAGE003
The number of keywords contained in each recommended writing input character string;
Figure 935284DEST_PATH_IMAGE005
is shown as
Figure 100002_DEST_PATH_IMAGE006
The number of keywords contained in each recommended writing input character string;
Figure 467765DEST_PATH_IMAGE007
representing a total number of recommended composition input strings;
Figure 100002_DEST_PATH_IMAGE008
show that
Figure 759069DEST_PATH_IMAGE006
From 1 to
Figure 760523DEST_PATH_IMAGE007
Substituted in parentheses to obtain an equation satisfying the parenthesis
Figure 693844DEST_PATH_IMAGE006
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 plurality of recommended writing input character strings by using the following formula (2),
Figure 97144DEST_PATH_IMAGE009
(2)
in the above-mentioned formula (2),
Figure 100002_DEST_PATH_IMAGE010
is represented by the second
Figure 559349DEST_PATH_IMAGE003
The recommended writing input character string set with the same primary ranking value of the recommended writing input character strings;
Figure 530323DEST_PATH_IMAGE011
first, the
Figure 100002_DEST_PATH_IMAGE012
The first-time ordering value of the input character string is recommended to be written;
Figure 736176DEST_PATH_IMAGE013
show that
Figure 993982DEST_PATH_IMAGE012
From 1 to
Figure 158247DEST_PATH_IMAGE007
Substituted in parentheses to obtain an equation satisfying the parenthesis
Figure 134294DEST_PATH_IMAGE012
A 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,
Figure 100002_DEST_PATH_IMAGE014
(3)
in the above-mentioned formula (3),
Figure 127526DEST_PATH_IMAGE015
indicating the first order value of the recommended composition input string
Figure 100002_DEST_PATH_IMAGE016
A secondary ranking value of the individual character strings;
Figure 239839DEST_PATH_IMAGE017
indicating the first order value of the recommended composition input string
Figure 309426DEST_PATH_IMAGE016
The 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;
Figure 100002_DEST_PATH_IMAGE018
indicating the first order value of the recommended composition input string
Figure 507189DEST_PATH_IMAGE019
A string length of a string;
Figure 100002_DEST_PATH_IMAGE020
indicating the first order value of the recommended composition input string
Figure 54845DEST_PATH_IMAGE016
A string length of a string;
Figure 37976DEST_PATH_IMAGE021
indicating the first order value of the recommended composition input string
Figure 100002_DEST_PATH_IMAGE022
A string length of a string;
Figure 278464DEST_PATH_IMAGE023
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,
Figure 963523DEST_PATH_IMAGE001
(1)
in the above-mentioned formula (1),
Figure 580450DEST_PATH_IMAGE002
is shown as
Figure 667354DEST_PATH_IMAGE003
The first-time ordering value of the input character string is recommended to be written;
Figure 344323DEST_PATH_IMAGE004
is shown as
Figure 516679DEST_PATH_IMAGE003
The number of keywords contained in each recommended writing input character string;
Figure 920984DEST_PATH_IMAGE005
is shown as
Figure 127974DEST_PATH_IMAGE006
Recommending and writing input character stringThe number of keywords contained in the text;
Figure 975845DEST_PATH_IMAGE007
representing a total number of recommended composition input strings;
Figure 635496DEST_PATH_IMAGE008
show that
Figure 594225DEST_PATH_IMAGE006
From 1 to
Figure 390143DEST_PATH_IMAGE007
Substituted in parentheses to obtain an equation satisfying the parenthesis
Figure 408914DEST_PATH_IMAGE006
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 plurality of recommended writing input character strings by using the following formula (2),
Figure 555862DEST_PATH_IMAGE009
(2)
in the above-mentioned formula (2),
Figure 66084DEST_PATH_IMAGE010
represent and said
Figure 982088DEST_PATH_IMAGE003
The recommended writing input character string set with the same one-time ordering value of the recommended writing input character strings;
Figure 906181DEST_PATH_IMAGE011
first, the
Figure 540425DEST_PATH_IMAGE012
The first-time ordering value of the input character string is recommended to be written;
Figure 840956DEST_PATH_IMAGE013
show that
Figure 877045DEST_PATH_IMAGE012
From 1 to
Figure 972040DEST_PATH_IMAGE007
Substituted in parentheses to obtain an equation satisfying the parenthesis
Figure 93580DEST_PATH_IMAGE012
A 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,
Figure 447070DEST_PATH_IMAGE014
(3)
in the above-mentioned formula (3),
Figure 72086DEST_PATH_IMAGE015
indicating the first order value of the recommended composition input string
Figure 603562DEST_PATH_IMAGE016
A secondary ranking value of the individual character strings;
Figure 946818DEST_PATH_IMAGE017
indicating the first order value of the recommended composition input string
Figure 854732DEST_PATH_IMAGE016
The 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;
Figure 599834DEST_PATH_IMAGE018
indicating the first order value of the recommended composition input string
Figure 302210DEST_PATH_IMAGE019
A string length of a string;
Figure 132763DEST_PATH_IMAGE020
indicating the first order value of the same recommended composition input string
Figure 329520DEST_PATH_IMAGE016
A string length of a string;
Figure 929129DEST_PATH_IMAGE021
indicating the first order value of the recommended composition input string
Figure 802407DEST_PATH_IMAGE022
A string length of each string;
Figure 120256DEST_PATH_IMAGE023
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,
Figure DEST_PATH_IMAGE001
(1)
in the above-mentioned formula (1),
Figure DEST_PATH_IMAGE002
is shown as
Figure DEST_PATH_IMAGE003
The first-time ordering value of the input character string is recommended to be written;
Figure DEST_PATH_IMAGE004
is shown as
Figure 999229DEST_PATH_IMAGE003
The number of keywords contained in each recommended writing input character string;
Figure DEST_PATH_IMAGE005
is shown as
Figure DEST_PATH_IMAGE006
The number of keywords contained in each recommended writing input character string;
Figure DEST_PATH_IMAGE007
representing total of recommended composition input stringsCounting;
Figure DEST_PATH_IMAGE008
show that
Figure 325781DEST_PATH_IMAGE006
From 1 to
Figure 901118DEST_PATH_IMAGE007
Substituted in parentheses to obtain an equation satisfying the parenthesis
Figure 237422DEST_PATH_IMAGE006
The 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),
Figure DEST_PATH_IMAGE009
(2)
in the above-mentioned formula (2),
Figure DEST_PATH_IMAGE010
is represented by the second
Figure 838299DEST_PATH_IMAGE003
The recommended writing input character string set with the same one-time ordering value of the recommended writing input character strings;
Figure DEST_PATH_IMAGE011
first, the
Figure DEST_PATH_IMAGE012
The first-time ordering value of the input character string is recommended to be written;
Figure DEST_PATH_IMAGE013
show that
Figure 5975DEST_PATH_IMAGE012
From 1 to
Figure 502946DEST_PATH_IMAGE007
Substituted in parentheses to obtain an equation satisfying the parenthesis
Figure 60967DEST_PATH_IMAGE012
A 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,
Figure DEST_PATH_IMAGE014
(3)
in the above-mentioned formula (3),
Figure DEST_PATH_IMAGE015
indicating the first order value of the recommended composition input string
Figure DEST_PATH_IMAGE016
A secondary ranking value of the individual character strings;
Figure DEST_PATH_IMAGE017
indicating the first order value of the recommended composition input string
Figure 245960DEST_PATH_IMAGE016
The 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;
Figure DEST_PATH_IMAGE018
indicating the first order value of the same recommended composition input string
Figure DEST_PATH_IMAGE019
A string length of each string;
Figure DEST_PATH_IMAGE020
indicating the first order value of the recommended composition input string
Figure 18875DEST_PATH_IMAGE016
A string length of a string;
Figure DEST_PATH_IMAGE021
indicating the first order value of the recommended composition input string
Figure DEST_PATH_IMAGE022
A string length of a string;
Figure DEST_PATH_IMAGE023
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.
CN202211422607.XA 2022-11-15 2022-11-15 Intelligent recommendation method for standard writing Active CN115577694B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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