Movatterモバイル変換


[0]ホーム

URL:


CN115577694A - Intelligent recommendation method for standard writing - Google Patents

Intelligent recommendation method for standard writing
Download PDF

Info

Publication number
CN115577694A
CN115577694ACN202211422607.XACN202211422607ACN115577694ACN 115577694 ACN115577694 ACN 115577694ACN 202211422607 ACN202211422607 ACN 202211422607ACN 115577694 ACN115577694 ACN 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 ltdfiledCriticalChina South Power Grid International Co ltd
Priority to CN202211422607.XApriorityCriticalpatent/CN115577694B/en
Publication of CN115577694ApublicationCriticalpatent/CN115577694A/en
Application grantedgrantedCritical
Publication of CN115577694BpublicationCriticalpatent/CN115577694B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了标准编写的智能推荐方法,其以用户匹配的文档编写子数据库为基准,向用户推荐合适的文档模板,以及在编写过程中为用户提供若干推荐编写输入字符串,这样根据用户的编写习惯,向用户推荐合适的字符串,为用户对文档模板进行字符串输入提供可靠的推荐功能,减小文档编写的工作量和提高文档编写的效率。

Figure 202211422607

The invention provides an intelligent recommendation method for standard writing, which recommends suitable document templates to users based on the document writing sub-database matched by users, and provides several recommended writing input strings for users during the writing process, so that according to the user's Writing habits, recommending appropriate strings to users, providing reliable recommendation functions for users to input strings in document templates, reducing the workload of document writing and improving the efficiency of document writing.

Figure 202211422607

Description

Translated fromChinese
标准编写的智能推荐方法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 writing.

背景技术Background technique

在日常办公中需进行大量不同类型文档的编写,而对文档的编写通常是基于人工编写的方式来实现,并且每个文档具有独特的编写要求,这样需要编写人员在编写过程中对每个文档重新进行文档内容的编写输入,使得编写人员需要耗费较多的人力和时间进行相应的编写工作,从而增加文档编写的工作量和降低文档编写的效率。目前的文档编写方式无法根据编写人员的编写习惯,向编写人员推荐合适的字符串,使得编写人员需要额外花费相当的时间进行合适字符串的查找。In daily office work, it is necessary to write a large number of different types of documents, and the writing of documents is usually realized based on manual writing, and each document has unique writing requirements, which requires the writer to be careful about each document during the writing process. Writing and inputting the content of the document again requires the writer to spend more manpower and time on the corresponding writing work, thereby increasing the workload of document writing and reducing the efficiency of document writing. The current document writing method cannot recommend suitable strings to the writers according to the writing habits of the writers, so that the writers need to spend a considerable amount of time searching for suitable strings.

发明内容Contents of the invention

针对现有技术存在的缺陷,本发明提供标准编写的智能推荐方法,其根据来自用户终端的文档编写请求,选择相匹配的文档编写子数据库,并以选择的文档编写子数据库为基础,提供合适的文档模板,以及在对文档模板编写过程中,根据用户输入的字符信息,从文档编写子数据库中搜索得到若干推荐编写输入字符串;根据用户对推荐编写输入字符串的选择结果,对文档编写子数据库进行更新,还对已完成编辑操作的文档模板进行检查处理和修正处理,再将文档模板保存至用户终端的特定存储空间,上述方法以用户匹配的文档编写子数据库为基准,向用户推荐合适的文档模板,以及在编写过程中为用户提供若干推荐编写输入字符串,这样根据用户的编写习惯,向用户推荐合适的字符串,为用户对文档模板进行字符串输入提供可靠的推荐功能,减小文档编写的工作量和提高文档编写的效率。Aiming at the defects existing in the prior art, the present invention provides an intelligent recommendation method for standard writing, which selects a matching document writing sub-database according to a document writing request from a user terminal, and provides a suitable document writing sub-database based on the selected document writing sub-database. document template, and in the process of writing the document template, according to the character information input by the user, a number of recommended writing input strings are searched from the document writing sub-database; according to the selection result of the user for the recommended writing input string, the document writing The sub-database is updated, and the document template that has completed the editing operation is checked and corrected, and then the document template is saved to the specific storage space of the user terminal. Appropriate document templates, and provide users with several recommended input strings during the writing process, so that according to the user's writing habits, recommend suitable strings to users, and provide reliable recommendation functions for users to input strings in document templates, Reduce the workload of document writing and improve the efficiency of document writing.

本发明提供标准编写的智能推荐方法,其包括如下步骤:The present invention provides an intelligent recommendation method for standard writing, which includes the following steps:

步骤S1,获取来自用户终端的文档编写请求,根据所述文档编写请求,从云端数据库中选择相匹配的文档编写子数据库;再根据所述文档编写请求,从所述文档编写子数据库中,选择相匹配的文档模板,并将所述文档模板返回至所述用户终端;Step S1, obtain a document writing request from the user terminal, select a matching document writing sub-database from the cloud database according to the document writing request, and then select from the document writing sub-database according to the document writing request Matching document templates, and returning the document templates to the user terminal;

步骤S2,对所述文档模板在所述用户终端上的编写过程进行检测,以此获得用户在所述文档模板上输入的字符信息;对所述字符信息进行分析处理,并根据分析处理的结果,在所述文档编写子数据库中进行搜索,以此获得若干推荐编写输入字符串;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; analyzing and processing the character information, and according to the result of the analysis and processing , searching in the document writing sub-database to obtain several recommended writing input strings;

步骤S3,根据所述用户对所述推荐编写输入字符串的选择结果,对所述文档编写子数据库进行数据更新;判断所述用户是否完成对所述文档模板的编辑操作,以此切换所述文档模板的编辑状态;Step S3: update the document writing sub-database according to the user's selection of the recommended writing input string; judge whether the user has finished editing the document template, so as to switch the The editing status of the document template;

步骤S4,对已完成编辑操作的文档模板进行检查处理和修正处理后,对所述文档模板进行标识处理;再将所述文档模板保存至所述用户终端的特定存储空间。Step S4, after checking and correcting the document template that has been edited, performing identification processing on the document template; and then saving the document template to a specific storage space of the user terminal.

进一步,在所述步骤S1中,获取来自用户终端的文档编写请求,根据所述文档编写请求,从云端数据库中选择相匹配的文档编写子数据库具体包括:Further, in the step S1, the document writing request from the user terminal is obtained, and according to the document writing request, selecting a matching document writing sub-database from the cloud database specifically includes:

获取来自用户终端的文档编写请求,从所述文档编写请求中提取得到所述用户终端的终端身份信息;Obtaining a document writing request from a user terminal, and extracting terminal identity information of the user terminal from the document writing request;

根据所述终端身份信息,从云端数据库中选择出与所述用户终端相匹配的文档编写子数据库;其中,所述文档编写子数据库存储有所述用户终端的所有文档编写历史记录信息;According to the terminal identity information, select a document writing sub-database matching the user terminal from the cloud database; wherein, the document writing sub-database stores all document writing history information of the user terminal;

根据所述用户终端当前登录的用户账号信息,判断所述用户终端是否具备使用所述文档编写子数据库的权限。According to the user account information currently logged in by the user terminal, it is judged whether the user terminal has the authority to use the document writing sub-database.

进一步,在所述步骤S1中,根据所述文档编写请求,从所述文档编写子数据库中,选择相匹配的文档模板,并将所述文档模板返回至所述用户终端具体包括:Further, in the step S1, according to the document writing request, selecting a matching document template from the document writing sub-database, and returning the document template to the user terminal specifically includes:

当所述用户终端具备使用所述文档编写子数据库的权限时,从所述文档编写请求中提取得到用户当前需要编写的文档格式信息;When the user terminal has the authority to use the document writing sub-database, extract the document format information that the user currently needs to write from the document writing request;

根据所述文档格式信息,从所述文档编写子数据库的文档模板集合中,选择与所述文档格式信息相一致并且具有最高历史使用频率的文档模板;再将所述文档模板直接返回至所述用户终端。According to the document format information, from the document template collection of the document writing sub-database, select the document template that is consistent with the document format information and has the highest historical use frequency; then directly returns the document template to the user terminal.

进一步,在所述步骤S2中,对所述文档模板在所述用户终端上的编写过程进行检测,以此获得用户在所述文档模板上输入的字符信息具体包括:Further, in the 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:

确定所述用户通过所述用户终端对所述文档模板进行编写过程中所使用字符输入程序,并对所述字符输入程序进行检测,以此获得所述用户在所述文档模板上输入的字符信息。determining the character input program used by the user in the process of writing the document template through the user terminal, and detecting the character input program, so as to obtain character information input by the user on the document template .

进一步,在所述步骤S2中,对所述字符信息进行分析处理,并根据分析处理的结果,在所述文档编写子数据库中进行搜索,以此获得若干推荐编写输入字符串具体包括:Further, in the step S2, the character information is analyzed and processed, and according to the result of the analysis and processing, a search is performed in the document writing sub-database to obtain several recommended writing input strings, specifically including:

对所述字符信息进行语料识别处理,从而得到与所述字符信息相对应的关键词信息;performing corpus recognition processing on the character information, so as to obtain keyword information corresponding to the character information;

以所述关键词信息为检索词,在所述文档编写子数据库的用户文档编写习惯字符串集合中进行模糊搜索,以此获得若干推荐编写输入字符串;其中,所述用户文档编写习惯字符串集合包括所述用户在历史文档编写过程中习惯使用的字符串。Using the keyword information as a search term, perform a fuzzy search in the user document writing habit string set of the document writing sub-database to obtain several recommended input strings for writing; wherein, the user document writing habit string The set includes character strings that the user is accustomed to use in the process of writing historical documents.

进一步,在所述步骤S2中,以所述关键词信息为检索词,在所述文档编写子数据库的用户文档编写习惯字符串集合中进行模糊搜索,以此获得若干推荐编写输入字符串具体包括:Further, in the step S2, using the keyword information as a search term, a fuzzy search is performed in the user document writing habit string set of the document writing sub-database, so as to obtain several recommended writing input strings, specifically including :

步骤S201,利用下面公式(1),根据所述若干推荐编写输入字符串中包含的关键词个数对所述若干推荐编写输入字符串进行一次排序,Step S201, use the following formula (1) to sort the several recommended writing input strings according to the number of keywords contained in the several recommended writing input strings,

Figure 171093DEST_PATH_IMAGE001
(1)
Figure 171093DEST_PATH_IMAGE001
(1)

在上述公式(1)中 ,

Figure 100002_DEST_PATH_IMAGE002
表示第
Figure 557075DEST_PATH_IMAGE003
个推荐编写输入字符串的一次排序值;
Figure 100002_DEST_PATH_IMAGE004
表示第
Figure 805654DEST_PATH_IMAGE003
个推荐编写输入字符串中包含的关键词个数;
Figure 935284DEST_PATH_IMAGE005
表示第
Figure 100002_DEST_PATH_IMAGE006
个推荐编写输入字符串中包含的关键词个数;
Figure 467765DEST_PATH_IMAGE007
表示推荐编写输入字符串的总个数;
Figure 100002_DEST_PATH_IMAGE008
表示将
Figure 759069DEST_PATH_IMAGE006
的值从1取值到
Figure 760523DEST_PATH_IMAGE007
代入到括号内得到满足括号内算式的
Figure 693844DEST_PATH_IMAGE006
值的个数;In the above formula (1),
Figure 100002_DEST_PATH_IMAGE002
Indicates the first
Figure 557075DEST_PATH_IMAGE003
recommended to write a sorted value of the input string;
Figure 100002_DEST_PATH_IMAGE004
Indicates the first
Figure 805654DEST_PATH_IMAGE003
The number of keywords contained in a recommended writing input string;
Figure 935284DEST_PATH_IMAGE005
Indicates the first
Figure 100002_DEST_PATH_IMAGE006
The number of keywords contained in a recommended writing input string;
Figure 467765DEST_PATH_IMAGE007
Indicates the total number of recommended input strings;
Figure 100002_DEST_PATH_IMAGE008
express will
Figure 759069DEST_PATH_IMAGE006
The value ranges from 1 to
Figure 760523DEST_PATH_IMAGE007
Substituting into the brackets to get the formula that satisfies the brackets
Figure 693844DEST_PATH_IMAGE006
the number of values;

步骤S202,利用下面公式(2),根据所述若干推荐编写输入字符串的对应一次排序值找到一次排序值相同的推荐编写输入字符串,Step S202, using the following formula (2), according to the corresponding primary ranking values of the several recommended writing input strings, find the recommended writing input strings with the same primary ranking value,

Figure 97144DEST_PATH_IMAGE009
(2)
Figure 97144DEST_PATH_IMAGE009
(2)

在上述公式(2)中,

Figure 100002_DEST_PATH_IMAGE010
表示与所述第
Figure 559349DEST_PATH_IMAGE003
个推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合;
Figure 530323DEST_PATH_IMAGE011
Figure 100002_DEST_PATH_IMAGE012
个推荐编写输入字符串的一次排序值;
Figure 736176DEST_PATH_IMAGE013
表示将
Figure 993982DEST_PATH_IMAGE012
的值从1取值到
Figure 158247DEST_PATH_IMAGE007
代入到括号内得到满足括号内算式的
Figure 134294DEST_PATH_IMAGE012
值的集合;In the above formula (2),
Figure 100002_DEST_PATH_IMAGE010
Indicates that with the said
Figure 559349DEST_PATH_IMAGE003
A set of recommended writing input strings with the same primary ranking value;
Figure 530323DEST_PATH_IMAGE011
No.
Figure 100002_DEST_PATH_IMAGE012
recommended to write a sorted value of the input string;
Figure 736176DEST_PATH_IMAGE013
express will
Figure 993982DEST_PATH_IMAGE012
The value ranges from 1 to
Figure 158247DEST_PATH_IMAGE007
Substituting into the brackets to get the formula that satisfies the brackets
Figure 134294DEST_PATH_IMAGE012
collection of values;

利用所述步骤S202得到每个推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合,若所述推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合内的元素个数大于1个,则继续进行下面步骤S203进行二次排序;Use the step S202 to obtain a recommended writing input string set with the same primary ranking value for each recommended writing input string, if the recommended writing input strings have the same primary ranking value in the recommended writing input string set If the number of elements is greater than 1, proceed to the following step S203 for secondary sorting;

步骤S203,利用下面公式(3),根据所述一次排序值相同的推荐编写输入字符串的字符串长度以及其字符串在模糊搜索时被搜索到的先后顺序,对一次排序值相同的推荐编写输入字符串进行二次排序,Step S203, using the following formula (3), according to the length of the input string and the order in which the strings are searched in the fuzzy search, write the recommendation with the same ranking value according to the length of the input string The input string is sorted twice,

Figure 100002_DEST_PATH_IMAGE014
(3)
Figure 100002_DEST_PATH_IMAGE014
(3)

在上述公式(3)中,

Figure 127526DEST_PATH_IMAGE015
表示一次排序值相同的推荐编写输入字符串中的第
Figure 100002_DEST_PATH_IMAGE016
个字符串的二次排序值;
Figure 239839DEST_PATH_IMAGE017
表示一次排序值相同的推荐编写输入字符串中的第
Figure 309426DEST_PATH_IMAGE016
个字符串在模糊搜索时被搜索到的先后顺序值,其中,第一个被搜索到的字符串的先后顺序值为1,第二个被搜索到的字符串的先后顺序值为2,以此类推;
Figure 100002_DEST_PATH_IMAGE018
表示一次排序值相同的推荐编写输入字符串中的第
Figure 507189DEST_PATH_IMAGE019
个字符串的字符串长度;
Figure 100002_DEST_PATH_IMAGE020
表示一次排序值相同的推荐编写输入字符串中的第
Figure 54845DEST_PATH_IMAGE016
个字符串的字符串长度;
Figure 37976DEST_PATH_IMAGE021
表示一次排序值相同的推荐编写输入字符串中的第
Figure 100002_DEST_PATH_IMAGE022
个字符串的字符串长度;
Figure 278464DEST_PATH_IMAGE023
表示一次排序值相同的推荐编写输入字符串的个数;In the above formula (3),
Figure 127526DEST_PATH_IMAGE015
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 100002_DEST_PATH_IMAGE016
The secondary sort value of a string;
Figure 239839DEST_PATH_IMAGE017
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 309426DEST_PATH_IMAGE016
The sequence values of the strings searched in the fuzzy search, where the sequence value of the first string to be searched is 1, the sequence value of the second string to be searched is 2, and and so on;
Figure 100002_DEST_PATH_IMAGE018
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 507189DEST_PATH_IMAGE019
The string length of strings;
Figure 100002_DEST_PATH_IMAGE020
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 54845DEST_PATH_IMAGE016
The string length of strings;
Figure 37976DEST_PATH_IMAGE021
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 100002_DEST_PATH_IMAGE022
The string length of strings;
Figure 278464DEST_PATH_IMAGE023
Indicates the number of recommended input strings with the same sort value at one time;

先按照一次排序值对每个字符串进行排序,一次排序值数值大的排列在前数值小的排列在后,一次排序的过程中若遇到一次排序值数值相同的字符串则按照二次排序值对一次排序值数值相同的字符串进行排序,二次排序值数值大的排列在其余一次排序值数值相同的字符串的前端,数值小的排列在其余一次排序值数值相同的字符串的后端,从而完成对所有推荐编写输入字符串的排序,再按照所述排序顺序依次显示在用户终端。First sort each string according to the primary sorting value, the one with the larger value of the primary sorting value is arranged first, and the one with the smaller value is arranged at the end. Value sorts the strings with the same value in the primary sorting value, and the strings with the larger value in the secondary sorting value are arranged at the front of the other strings with the same value in the primary sorting value, and the strings with the smaller value are arranged in the back of the strings with the same value in the other primary sorting value terminal, so as to complete the sorting of all recommended writing input strings, and then display them on the user terminal in sequence according to the sorting order.

进一步,在所述步骤S3中,根据所述用户对所述推荐编写输入字符串的选择结果,对所述文档编写子数据库进行数据更新具体包括:Further, in the step S3, according to the selection result of the user on the recommended writing input character string, performing data update on the document writing sub-database specifically includes:

确定所述用户从所述若干推荐编写输入字符串中最终选择的推荐编写输入字符串,根据所述最终选择的推荐编写输入字符串,对所述用户文档编写习惯字符串集合中相应的字符串的用户编写习惯信息进行更新;其中,所述用户编写习惯信息包括用户对字符串的编写使用次数。Determining the recommended writing input string finally selected by the user from the several recommended writing input strings, according to the finally selected recommended writing input string, writing a corresponding character string in the user document writing habit string set The user's writing habit information is updated; wherein, the user's writing habit information includes the number of times the user writes and uses the character string.

进一步,在所述步骤S3中,判断所述用户是否完成对所述文档模板的编辑操作,以此切换所述文档模板的编辑状态具体包括:Further, in the step S3, judging whether the user has finished editing 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, then determining that the user has finished editing the document template; if not, then determining that the user has not finished editing the document template The editing operation of the document template;

当所述用户已完成对所述文档模板的编辑操作,则将所述文档模板切换至只读状态;When the user has finished editing the document template, switch the document template to a read-only state;

当所述用户未完成对所述文档模板的编辑操作,则将所述文档模板保持当前的可编辑状态不变。When the user has not finished editing the document template, the current editable state of the document template remains unchanged.

进一步,在所述步骤S4中,对已完成编辑操作的文档模板进行检查处理和修正处理后,对所述文档模板进行标识处理;再将所述文档模板保存至所述用户终端的特定存储空间具体包括:Further, in the step S4, after checking and correcting the document template that has been edited, performing identification processing on the document template; and then saving the document template to a specific storage space of the user terminal Specifically include:

对已完成编辑操作的文档模板进行文本语法和错别字检测处理,再根据所述文本语法和错别字检测处理的结果,对所述待编辑文本子数据进行语法和错别字修正处理,并对所述文档模板添加所述用户账号信息以此作为所述文档模板的标识信息;Perform text grammar and typo detection processing on the document template that has completed the editing operation, and then perform grammar and typo correction processing on the text sub-data to be edited according to the results of the text grammar and typo detection processing, and perform the grammar and typo correction processing on the document template adding the user account information as the identification information of the document template;

再将所述文档模板保存至所述用户终端的与所述用户账号信息相对应的特定存储空间。The document template is then saved to a specific storage space corresponding to the user account information of the user terminal.

相比于现有技术,该标准编写的智能推荐方法根据来自用户终端的文档编写请求,选择相匹配的文档编写子数据库,并以选择的文档编写子数据库为基础,提供合适的文档模板,以及在对文档模板编写过程中,根据用户输入的字符信息,从文档编写子数据库中搜索得到若干推荐编写输入字符串;根据用户对推荐编写输入字符串的选择结果,对文档编写子数据库进行更新,还对已完成编辑操作的文档模板进行检查处理和修正处理,再将文档模板保存至用户终端的特定存储空间,上述方法以用户匹配的文档编写子数据库为基准,向用户推荐合适的文档模板,以及在编写过程中为用户提供若干推荐编写输入字符串,这样根据用户的编写习惯,向用户推荐合适的字符串,为用户对文档模板进行字符串输入提供可靠的推荐功能,减小文档编写的工作量和提高文档编写的效率。Compared with the prior art, the intelligent recommendation method written in this standard selects the matching document writing sub-database according to the document writing request from the user terminal, and provides a suitable document template based on the selected document writing sub-database, and In the process of writing the document template, according to the character information input by the user, a number of recommended writing input strings are searched from the document writing sub-database; according to the selection result of the user's selection of the recommended writing input string, the document writing sub-database is updated, Also check and correct the document templates that have been edited, and then save the document templates to the specific storage space of the user terminal. The above method recommends suitable document templates to the user based on the document writing sub-database matched by the user. And in the writing process, provide users with some recommended writing input strings, so that according to the user's writing habits, recommend suitable strings to users, provide reliable recommendation functions for users to input strings in document templates, and reduce the cost of document writing workload and improve the efficiency of document writing.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may 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 solutions of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明提供的标准编写的智能推荐方法的流程示意图。Fig. 1 is a schematic flowchart of the standard-written intelligent recommendation method provided by the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参阅图1,为本发明实施例提供的标准编写的智能推荐方法的流程示意图。该标准编写的智能推荐方法包括如下步骤:Referring to FIG. 1 , it is a schematic flowchart of a standard-written intelligent recommendation method provided by an embodiment of the present invention. The intelligent recommendation method written in this standard includes the following steps:

步骤S1,获取来自用户终端的文档编写请求,根据该文档编写请求,从云端数据库中选择相匹配的文档编写子数据库;再根据该文档编写请求,从该文档编写子数据库中,选择相匹配的文档模板,并将该文档模板返回至该用户终端;Step S1, obtain a document writing request from the user terminal, select a matching document writing sub-database from the cloud database according to the document writing request, and then select a matching document writing sub-database from the document writing sub-database according to the document writing request document template, and return the document template to the user terminal;

步骤S2,对该文档模板在该用户终端上的编写过程进行检测,以此获得用户在该文档模板上输入的字符信息;对该字符信息进行分析处理,并根据分析处理的结果,在该文档编写子数据库中进行搜索,以此获得若干推荐编写输入字符串;Step S2: Detect 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; analyze and process the character information, and according to the result of the analysis process, add Write a search in the sub-database to get several recommendations to write the input string;

步骤S3,根据该用户对该推荐编写输入字符串的选择结果,对该文档编写子数据库进行数据更新;判断该用户是否完成对该文档模板的编辑操作,以此切换该文档模板的编辑状态;Step S3, update the document writing sub-database according to the user's selection result of the recommended writing input string; judge whether the user has finished editing the document template, so as to switch the editing state of the document template;

步骤S4,对已完成编辑操作的文档模板进行检查处理和修正处理后,对该文档模板进行标识处理;再将该文档模板保存至该用户终端的特定存储空间。Step S4, after checking and correcting the document template that has been edited, performing identification processing on the document template; and then saving the document template to a specific storage space of the user terminal.

上述技术方案的有益效果为:该标准编写的智能推荐方法根据来自用户终端的文档编写请求,选择相匹配的文档编写子数据库,并以选择的文档编写子数据库为基础,提供合适的文档模板,以及在对文档模板编写过程中,根据用户输入的字符信息,从文档编写子数据库中搜索得到若干推荐编写输入字符串;根据用户对推荐编写输入字符串的选择结果,对文档编写子数据库进行更新,还对已完成编辑操作的文档模板进行检查处理和修正处理,再将文档模板保存至用户终端的特定存储空间,上述方法以用户匹配的文档编写子数据库为基准,向用户推荐合适的文档模板,以及在编写过程中为用户提供若干推荐编写输入字符串,这样根据用户的编写习惯,向用户推荐合适的字符串,为用户对文档模板进行字符串输入提供可靠的推荐功能,减小文档编写的工作量和提高文档编写的效率。The beneficial effect of the above technical solution is: the intelligent recommendation method written by the standard selects a matching document writing sub-database according to the document writing request from the user terminal, and provides a suitable document template based on the selected document writing sub-database, And in the process of writing the document template, according to the character information input by the user, a number of recommended writing input strings are searched from the document writing sub-database; according to the selection result of the user's selection of the recommended writing input string, the document writing sub-database is updated , also check and correct the document templates that have been edited, and then save the document templates to the specific storage space of the user terminal. The above method recommends suitable document templates to the user based on the document writing sub-database matched by the user , and provide users with some recommended writing input strings during the writing process, so that according to the user's writing habits, recommend suitable strings to users, provide reliable recommendation functions for users to input strings in document templates, and reduce document writing workload and improve the efficiency of document writing.

优选地,在该步骤S1中,获取来自用户终端的文档编写请求,根据该文档编写请求,从云端数据库中选择相匹配的文档编写子数据库具体包括:Preferably, in this step S1, the document writing request from the user terminal is obtained, and according to the document writing request, selecting a matching document writing sub-database from the cloud database specifically includes:

获取来自用户终端的文档编写请求,从该文档编写请求中提取得到该用户终端的终端身份信息;Obtaining a document writing request from a user terminal, and extracting terminal identity information of the user terminal from the document writing request;

根据该终端身份信息,从云端数据库中选择出与该用户终端相匹配的文档编写子数据库;其中,该文档编写子数据库存储有该用户终端的所有文档编写历史记录信息;According to the terminal identity information, select a document writing sub-database matching the user terminal from the cloud database; wherein, the document writing sub-database stores all document writing history information of the user terminal;

根据该用户终端当前登录的用户账号信息,判断该用户终端是否具备使用该文档编写子数据库的权限。According to the user account information currently logged in by the user terminal, it is judged whether the user terminal has the authority to use the document to write the sub-database.

上述技术方案的有益效果为:计算机等用户终端可以允许不同用户登录使用,每个用户在使用用户终端过程中存在相应的文档编写历史记录信息,根据每个用户对应的文档编写子数据库。通过上述方式,对来自用户终端的文档编写请求,从云端数据库中选择出匹配的文档编写子数据库,便于后续在实际文档编辑过程中为用户推荐符合其编写习惯的字符信息。The beneficial effects of the above technical solution are: user terminals such as computers can allow different users to log in and use, each user has corresponding document writing history information in the process of using the user terminal, and the document writing sub-database corresponding to each user exists. Through the above method, for the document writing request from the user terminal, the matching document writing sub-database is selected from the cloud database, so as to facilitate the subsequent recommendation of character information for the user in accordance with his writing habits during the actual document editing process.

优选地,在该步骤S1中,根据该文档编写请求,从该文档编写子数据库中,选择相匹配的文档模板,并将该文档模板返回至该用户终端具体包括:Preferably, in the step S1, according to the document writing request, selecting a matching document template from the document writing sub-database, and returning the document template to the user terminal specifically includes:

当该用户终端具备使用该文档编写子数据库的权限时,从该文档编写请求中提取得到用户当前需要编写的文档格式信息;When the user terminal has the authority to use the document writing sub-database, extract the document format information that the user currently needs to write from the document writing request;

根据该文档格式信息,从该文档编写子数据库的文档模板集合中,选择与该文档格式信息相一致并且具有最高历史使用频率的文档模板;再将该文档模板直接返回至该用户终端。According to the document format information, from the document template collection of the document writing sub-database, select the document template that is consistent with the document format information and has the highest historical usage frequency; then directly returns the document template to the user terminal.

上述技术方案的有益效果为:通过上述方式,能够根据用户的文档编写习惯,选择合适的文档格式的文档模板,保证文档模板对用户编写习惯的兼容性。The beneficial effect of the above technical solution is: through the above method, a document template in a suitable document format can be selected according to the user's document writing habit, and the compatibility of the document template with the user's writing habit can be ensured.

优选地,在该步骤S2中,对该文档模板在该用户终端上的编写过程进行检测,以此获得用户在该文档模板上输入的字符信息具体包括:Preferably, in the step S2, the writing process of the document template on the user terminal is detected, so as to obtain the character information input by the user on the document template, which specifically includes:

确定该用户通过该用户终端对该文档模板进行编写过程中所使用字符输入程序,并对该字符输入程序进行检测,以此获得该用户在该文档模板上输入的字符信息。Determine the character input program used by the user in the process of writing the document template through the user terminal, and detect the character input program, so as to obtain the character information input by the user on the document template.

上述技术方案的有益效果为:通过上述方式,对用户进行编写过程中所使用的字符输入程序进行检测,这样能够准确得到用户在文档模板上输入的字符信息,从而为后续推荐合适的编写输入字符串提供可靠的依据。The beneficial effect of the above technical solution is: through the above method, the character input program used by the user in the process of writing is detected, so that the character information input by the user on the document template can be accurately obtained, so as to recommend suitable writing input characters for the follow-up Strings provide reliable evidence.

优选地,在该步骤S2中,对该字符信息进行分析处理,并根据分析处理的结果,在该文档编写子数据库中进行搜索,以此获得若干推荐编写输入字符串具体包括:Preferably, in the step S2, the character information is analyzed and processed, and according to the result of the analysis and processing, the document writing sub-database is searched to obtain several recommended writing input strings, specifically including:

对该字符信息进行语料识别处理,从而得到与该字符信息相对应的关键词信息;performing corpus recognition processing on the character information, so as to obtain keyword information corresponding to the character information;

以该关键词信息为检索词,在该文档编写子数据库的用户文档编写习惯字符串集合中进行模糊搜索,以此获得若干推荐编写输入字符串;其中,该用户文档编写习惯字符串集合包括该用户在历史文档编写过程中习惯使用的字符串。Using the keyword information as a search term, perform a fuzzy search in the user document writing habit string set of the document writing sub-database to obtain several recommended writing input strings; wherein, the user document writing habit string set includes the A character string that users are accustomed to using in the process of writing historical documents.

上述技术方案的有益效果为:通过上述方式,对字符信息进行语料识别处理,得到相匹配的关键词信息;再以该关键词信息为基准面,对文档编写子数据库的用户文档编写习惯字符串集合中进行模糊搜索,能够快速和准确地得到若干推荐编写输入字符串,为用户编写文档提供准确可供选择的字符串。The beneficial effects of the above technical solution are as follows: through the above method, the character information is subjected to corpus recognition processing to obtain matching keyword information; Fuzzy search in the collection can quickly and accurately get several recommended input strings, and provide accurate alternative strings for users to write documents.

优选地,在所述步骤S2中,以所述关键词信息为检索词,在所述文档编写子数据库的用户文档编写习惯字符串集合中进行模糊搜索,以此获得若干推荐编写输入字符串具体包括:Preferably, in the step S2, using the keyword information as a search term, a fuzzy search is performed in the user document writing habit string set of the document writing sub-database, so as to obtain several recommended writing input strings. include:

步骤S201,利用下面公式(1),根据所述若干推荐编写输入字符串中包含的关键词个数对所述若干推荐编写输入字符串进行一次排序,Step S201, use the following formula (1) to sort the several recommended writing input strings according to the number of keywords contained in the several recommended writing input strings,

Figure 963523DEST_PATH_IMAGE001
(1)
Figure 963523DEST_PATH_IMAGE001
(1)

在上述公式(1)中 ,

Figure 580450DEST_PATH_IMAGE002
表示第
Figure 667354DEST_PATH_IMAGE003
个推荐编写输入字符串的一次排序值;
Figure 344323DEST_PATH_IMAGE004
表示第
Figure 516679DEST_PATH_IMAGE003
个推荐编写输入字符串中包含的关键词个数;
Figure 920984DEST_PATH_IMAGE005
表示第
Figure 127974DEST_PATH_IMAGE006
个推荐编写输入字符串中包含的关键词个数;
Figure 975845DEST_PATH_IMAGE007
表示推荐编写输入字符串的总个数;
Figure 635496DEST_PATH_IMAGE008
表示将
Figure 594225DEST_PATH_IMAGE006
的值从1取值到
Figure 390143DEST_PATH_IMAGE007
代入到括号内得到满足括号内算式的
Figure 408914DEST_PATH_IMAGE006
值的个数;In the above formula (1),
Figure 580450DEST_PATH_IMAGE002
Indicates the first
Figure 667354DEST_PATH_IMAGE003
recommended to write a sorted value of the input string;
Figure 344323DEST_PATH_IMAGE004
Indicates the first
Figure 516679DEST_PATH_IMAGE003
The number of keywords contained in a recommended writing input string;
Figure 920984DEST_PATH_IMAGE005
Indicates the first
Figure 127974DEST_PATH_IMAGE006
The number of keywords contained in a recommended writing input string;
Figure 975845DEST_PATH_IMAGE007
Indicates the total number of recommended input strings;
Figure 635496DEST_PATH_IMAGE008
express will
Figure 594225DEST_PATH_IMAGE006
The value ranges from 1 to
Figure 390143DEST_PATH_IMAGE007
Substituting into the brackets to get the formula that satisfies the brackets
Figure 408914DEST_PATH_IMAGE006
the number of values;

步骤S202,利用下面公式(2),根据所述若干推荐编写输入字符串的对应一次排序值找到一次排序值相同的推荐编写输入字符串,Step S202, using the following formula (2), according to the corresponding primary ranking values of the several recommended writing input strings, find the recommended writing input strings with the same primary ranking value,

Figure 555862DEST_PATH_IMAGE009
(2)
Figure 555862DEST_PATH_IMAGE009
(2)

在上述公式(2)中,

Figure 66084DEST_PATH_IMAGE010
表示与所述第
Figure 982088DEST_PATH_IMAGE003
个推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合;
Figure 906181DEST_PATH_IMAGE011
Figure 540425DEST_PATH_IMAGE012
个推荐编写输入字符串的一次排序值;
Figure 840956DEST_PATH_IMAGE013
表示将
Figure 877045DEST_PATH_IMAGE012
的值从1取值到
Figure 972040DEST_PATH_IMAGE007
代入到括号内得到满足括号内算式的
Figure 93580DEST_PATH_IMAGE012
值的集合;In the above formula (2),
Figure 66084DEST_PATH_IMAGE010
Indicates that with the said
Figure 982088DEST_PATH_IMAGE003
A set of recommended writing input strings with the same primary ranking value;
Figure 906181DEST_PATH_IMAGE011
No.
Figure 540425DEST_PATH_IMAGE012
recommended to write a sorted value of the input string;
Figure 840956DEST_PATH_IMAGE013
express will
Figure 877045DEST_PATH_IMAGE012
The value ranges from 1 to
Figure 972040DEST_PATH_IMAGE007
Substituting into the brackets to get the formula that satisfies the brackets
Figure 93580DEST_PATH_IMAGE012
collection of values;

利用所述步骤S202得到每个推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合,若所述推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合内的元素个数大于1个,则继续进行下面步骤S203进行二次排序;Use the step S202 to obtain a recommended writing input string set with the same primary ranking value for each recommended writing input string, if the recommended writing input strings have the same primary ranking value in the recommended writing input string set If the number of elements is greater than 1, proceed to the following step S203 for secondary sorting;

步骤S203,利用下面公式(3),根据所述一次排序值相同的推荐编写输入字符串的字符串长度以及其字符串在模糊搜索时被搜索到的先后顺序,对一次排序值相同的推荐编写输入字符串进行二次排序,Step S203, using the following formula (3), according to the length of the input string and the order in which the strings are searched in the fuzzy search, write the recommendation with the same ranking value according to the length of the input string The input string is sorted twice,

Figure 447070DEST_PATH_IMAGE014
(3)
Figure 447070DEST_PATH_IMAGE014
(3)

在上述公式(3)中,

Figure 72086DEST_PATH_IMAGE015
表示一次排序值相同的推荐编写输入字符串中的第
Figure 603562DEST_PATH_IMAGE016
个字符串的二次排序值;
Figure 946818DEST_PATH_IMAGE017
表示一次排序值相同的推荐编写输入字符串中的第
Figure 854732DEST_PATH_IMAGE016
个字符串在模糊搜索时被搜索到的先后顺序值,其中,第一个被搜索到的字符串的先后顺序值为1,第二个被搜索到的字符串的先后顺序值为2,以此类推;
Figure 599834DEST_PATH_IMAGE018
表示一次排序值相同的推荐编写输入字符串中的第
Figure 302210DEST_PATH_IMAGE019
个字符串的字符串长度;
Figure 132763DEST_PATH_IMAGE020
表示一次排序值相同的推荐编写输入字符串中的第
Figure 329520DEST_PATH_IMAGE016
个字符串的字符串长度;
Figure 929129DEST_PATH_IMAGE021
表示一次排序值相同的推荐编写输入字符串中的第
Figure 802407DEST_PATH_IMAGE022
个字符串的字符串长度;
Figure 120256DEST_PATH_IMAGE023
表示一次排序值相同的推荐编写输入字符串的个数;In the above formula (3),
Figure 72086DEST_PATH_IMAGE015
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 603562DEST_PATH_IMAGE016
The secondary sort value of a string;
Figure 946818DEST_PATH_IMAGE017
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 854732DEST_PATH_IMAGE016
The sequence values of the strings searched in the fuzzy search, where the sequence value of the first string to be searched is 1, the sequence value of the second string to be searched is 2, and and so on;
Figure 599834DEST_PATH_IMAGE018
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 302210DEST_PATH_IMAGE019
The string length of strings;
Figure 132763DEST_PATH_IMAGE020
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 329520DEST_PATH_IMAGE016
The string length of strings;
Figure 929129DEST_PATH_IMAGE021
Indicates that the first rank in the input string is recommended to be written with the same sorting value
Figure 802407DEST_PATH_IMAGE022
The string length of strings;
Figure 120256DEST_PATH_IMAGE023
Indicates the number of recommended input strings with the same sort value at one time;

先按照一次排序值对每个字符串进行排序,一次排序值数值大的排列在前数值小的排列在后,一次排序的过程中若遇到一次排序值数值相同的字符串则按照二次排序值对一次排序值数值相同的字符串进行排序,二次排序值数值大的排列在其余一次排序值数值相同的字符串的前端,数值小的排列在其余一次排序值数值相同的字符串的后端,从而完成对所有推荐编写输入字符串的排序,再按照所述排序顺序依次显示在用户终端。First sort each string according to the primary sorting value, the one with the larger value of the primary sorting value is arranged first, and the one with the smaller value is arranged at the end. Value sorts the strings with the same value in the primary sorting value, and the strings with the larger value in the secondary sorting value are arranged at the front of the other strings with the same value in the primary sorting value, and the strings with the smaller value are arranged in the back of the strings with the same value in the other primary sorting value terminal, so as to complete the sorting of all recommended writing input strings, and then display them on the user terminal in sequence according to the sorting order.

上述技术方案的有益效果为:利用上述公式(1),根据若干推荐编写输入字符串中包含的关键词个数,对若干推荐编写输入字符串进行一次排序,从而优先将包含关键词较多的字符串优先进行显示输出,方便用户的选择;然后利用上述公式(2),根据若干推荐编写输入字符串的对应一次排序值找到一次排序值相同的推荐编写输入字符串,进而将一次排序值相同的推荐编写输入字符串智能自动筛选出来,提高系统的筛选效率;最后利用上述公式(3),根据一次排序值相同的推荐编写输入字符串的字符串长度以及其字符串在模糊搜索时被搜索到的先后顺序,对一次排序值相同的推荐编写输入字符串进行二次排序,进而对一次排序值相同的推荐编写输入字符串利用二次排序值可以不重复且不重叠的排序,确保系统的稳定正常运行。The beneficial effect of the above technical solution is: using the above formula (1), according to the number of keywords contained in several recommended writing input strings, sorting several recommended writing input strings once, so as to prioritize the number of keywords that contain more keywords. Strings are displayed and output first, which is convenient for users to choose; then, using the above formula (2), according to the corresponding primary sorting values of several recommended input strings, find the recommended primary input strings with the same sorting value, and then make the primary sorting values the same The recommended writing input strings are intelligently and automatically screened out to improve the screening efficiency of the system; finally, using the above formula (3), according to the length of the recommended writing input strings with the same sorting value once and the strings are searched in fuzzy search According to the sequence of arrival, the recommended writing input strings with the same first sorting value are sorted twice, and then the recommended writing input strings with the same primary sorting value can be sorted without repetition and non-overlapping by using the secondary sorting value, ensuring the system Stable and normal operation.

优选地,在该步骤S3中,根据该用户对该推荐编写输入字符串的选择结果,对该文档编写子数据库进行数据更新具体包括:Preferably, in the step S3, according to the user's selection result of the recommended writing input string, performing data update on the document writing sub-database specifically includes:

确定该用户从该若干推荐编写输入字符串中最终选择的推荐编写输入字符串,根据该最终选择的推荐编写输入字符串,对该用户文档编写习惯字符串集合中相应的字符串的用户编写习惯信息进行更新;其中,该用户编写习惯信息包括用户对字符串的编写使用次数。Determine the recommended writing input string that the user finally selects from the several recommended writing input strings, according to the finally selected recommended writing input string, the user's writing habit of the corresponding string in the user's document writing habit string set The information is updated; wherein, the user writing habit information includes the number of times the user writes and uses the character string.

上述技术方案的有益效果为:通过上述方式,能够根据用户对文档模板的实时编写情况,对用户文档编写习惯字符串集合进行相应的更新,保证用户文档编写习惯字符串集合能够及时记录用户的最新编写习惯,进一步提高编写推荐的精确性。The beneficial effect of the above technical solution is: through the above method, according to the real-time writing situation of the document template by the user, the user's document writing habit string set can be updated accordingly, ensuring that the user's document writing habit string set can record the user's latest update in time. Writing habits to further improve the accuracy of writing recommendations.

优选地,在该步骤S3中,判断该用户是否完成对该文档模板的编辑操作,以此切换该文档模板的编辑状态具体包括:Preferably, in the step S3, judging whether the user has finished editing the document template, so as to switch the editing state of the document template specifically includes:

判断该用户是否通过该用户终端对该文档模板进行重命名保存,若是,则确定该用户已完成对该文档模板的编辑操作;若否,则确定该用户未完成对该文档模板的编辑操作;Judging whether the user has renamed and saved the document template through the user terminal, if so, then determining that the user has completed the editing operation of the document template; if not, then determining that the user has not completed the editing operation of the document template;

当该用户已完成对该文档模板的编辑操作,则将该文档模板切换至只读状态;When the user has finished editing the document template, switch the document template to a read-only state;

当该用户未完成对该文档模板的编辑操作,则将该文档模板保持当前的可编辑状态不变。When the user has not finished editing the document template, the current editable state of the document template remains unchanged.

上述技术方案的有益效果为:通过上述方式,能够保证已完成编辑操作的文档模板的数据安全性。The beneficial effect of the above technical solution is: through the above method, the data security of the document template that has been edited can be guaranteed.

优选地,在该步骤S4中,对已完成编辑操作的文档模板进行检查处理和修正处理后,对该文档模板进行标识处理;再将该文档模板保存至该用户终端的特定存储空间具体包括:Preferably, in step S4, after checking and correcting the document template for which the editing operation has been completed, performing identification processing on the document template; and then saving the document template to a specific storage space of the user terminal specifically includes:

对已完成编辑操作的文档模板进行文本语法和错别字检测处理,再根据该文本语法和错别字检测处理的结果,对该待编辑文本子数据进行语法和错别字修正处理,并对该文档模板添加该用户账号信息以此作为该文档模板的标识信息;Perform text grammar and typo detection processing on the document template that has completed the editing operation, and then perform grammar and typo correction processing on the text sub-data to be edited according to the results of the text grammar and typo detection processing, and add the user to the document template The account information is used as the identification information of the document template;

再将该文档模板保存至该用户终端的与该用户账号信息相对应的特定存储空间。Then save the document template to a specific storage space corresponding to the user account information of the user terminal.

上述技术方案的有益效果为:通过上述方式,能够保证已完成编辑操作的文档模板的文档内容的正确性和保存可靠性,便于后续快速准确地查询找到该文档模板。The beneficial effect of the above technical solution is: through the above method, the correctness and storage reliability of the document content of the document template that has been edited can be guaranteed, and it is convenient for the subsequent quick and accurate query to find the document template.

从上述实施例的内容可知,该标准编写的智能推荐方法根据来自用户终端的文档编写请求,选择相匹配的文档编写子数据库,并以选择的文档编写子数据库为基础,提供合适的文档模板,以及在对文档模板编写过程中,根据用户输入的字符信息,从文档编写子数据库中搜索得到若干推荐编写输入字符串;根据用户对推荐编写输入字符串的选择结果,对文档编写子数据库进行更新,还对已完成编辑操作的文档模板进行检查处理和修正处理,再将文档模板保存至用户终端的特定存储空间,上述方法以用户匹配的文档编写子数据库为基准,向用户推荐合适的文档模板,以及在编写过程中为用户提供若干推荐编写输入字符串,这样根据用户的编写习惯,向用户推荐合适的字符串,为用户对文档模板进行字符串输入提供可靠的推荐功能,减小文档编写的工作量和提高文档编写的效率。From the content of the above-mentioned embodiment, it can be seen that the intelligent recommendation method for standard writing selects a matching document writing sub-database according to the document writing request from the user terminal, and provides a suitable document template based on the selected document writing sub-database, And in the process of writing the document template, according to the character information input by the user, a number of recommended writing input strings are searched from the document writing sub-database; according to the selection result of the user's selection of the recommended writing input string, the document writing sub-database is updated , also check and correct the document templates that have been edited, and then save the document templates to the specific storage space of the user terminal. The above method recommends suitable document templates to the user based on the document writing sub-database matched by the user , and provide users with some recommended writing input strings during the writing process, so that according to the user's writing habits, recommend suitable strings to users, provide reliable recommendation functions for users to input strings in document templates, and reduce document writing workload and improve the efficiency of document writing.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these 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.XA2022-11-152022-11-15Intelligent recommendation method for standard writingActiveCN115577694B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211422607.XACN115577694B (en)2022-11-152022-11-15Intelligent recommendation method for standard writing

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211422607.XACN115577694B (en)2022-11-152022-11-15Intelligent recommendation method for standard writing

Publications (2)

Publication NumberPublication Date
CN115577694Atrue CN115577694A (en)2023-01-06
CN115577694B CN115577694B (en)2023-05-30

Family

ID=84588186

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211422607.XAActiveCN115577694B (en)2022-11-152022-11-15Intelligent recommendation method for standard writing

Country Status (1)

CountryLink
CN (1)CN115577694B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116090416A (en)*2023-04-102023-05-09中国电子技术标准化研究院 Standard writing method, system, equipment and medium based on standard knowledge graph

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR100709237B1 (en)*2005-10-252007-04-19전한구 How to handle strings on the terminal
CN101334774A (en)*2007-06-292008-12-31北京搜狗科技发展有限公司Character input method and input method system
CN106371624A (en)*2016-09-232017-02-01百度在线网络技术(北京)有限公司Method and device for providing input candidate item
CN112711937A (en)*2021-01-182021-04-27腾讯科技(深圳)有限公司Template recommendation method, device, equipment and storage medium
CN113408262A (en)*2021-08-162021-09-17中国电子科技集团公司第十五研究所Document online editing and generating system, method, device and storage medium
CN114153963A (en)*2021-11-302022-03-08北京达佳互联信息技术有限公司Document recommendation method and device, computer equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR100709237B1 (en)*2005-10-252007-04-19전한구 How to handle strings on the terminal
CN101334774A (en)*2007-06-292008-12-31北京搜狗科技发展有限公司Character input method and input method system
CN106371624A (en)*2016-09-232017-02-01百度在线网络技术(北京)有限公司Method and device for providing input candidate item
CN112711937A (en)*2021-01-182021-04-27腾讯科技(深圳)有限公司Template recommendation method, device, equipment and storage medium
CN113408262A (en)*2021-08-162021-09-17中国电子科技集团公司第十五研究所Document online editing and generating system, method, device and storage medium
CN114153963A (en)*2021-11-302022-03-08北京达佳互联信息技术有限公司Document recommendation method and device, computer equipment and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116090416A (en)*2023-04-102023-05-09中国电子技术标准化研究院 Standard writing method, system, equipment and medium based on standard knowledge graph

Also Published As

Publication numberPublication date
CN115577694B (en)2023-05-30

Similar Documents

PublicationPublication DateTitle
CN112446351B (en)Intelligent identification method for medical bills
CN108460014B (en)Enterprise entity identification method and device, computer equipment and storage medium
CN110705302B (en)Named entity identification method, electronic equipment and computer storage medium
KR101276602B1 (en)System and method for searching and matching data having ideogrammatic content
US7958129B2 (en)Processing data records for finding counterparts in a reference data set
CN110716991B (en)Method for displaying entity associated information based on electronic book and electronic equipment
CN109063171B (en)Resource matching method based on semantics
US9898464B2 (en)Information extraction supporting apparatus and method
CN102314452B (en)A kind of method and system of being undertaken navigating by input method platform
CN114969242B (en)Method and device for automatically completing query content
CN106649557B (en)Semantic association mining method for defect report and mail list
CN110263127A (en)Text search method and device is carried out based on user query word
CN113988057A (en) Title generation method, device, device and medium based on concept extraction
US20110229036A1 (en)Method and apparatus for text and error profiling of historical documents
CN108182287A (en)A kind of automatic question-answering method, device and server
CN115577694B (en)Intelligent recommendation method for standard writing
CN111369294B (en)Software cost estimation method and device
CN111368547A (en)Entity identification method, device, equipment and storage medium based on semantic analysis
CN114065762A (en) A text information processing method, device, medium and equipment
CN112905026A (en)Method, device, storage medium and computer equipment for displaying word suggestions
CN110232160B (en)Method and device for detecting interest point transition event and storage medium
CN115438670B (en)Intelligent voice interaction testing method, device, equipment and storage medium
CN113609864B (en)Text semantic recognition processing system and method based on industrial control system
CN111723296B (en)Search processing method and device and computer equipment
CN112149402A (en)Document comparison method and device, electronic equipment and computer-readable storage medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp