
技术领域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,
(1) (1)
在上述公式(1)中 ,表示第个推荐编写输入字符串的一次排序值;表示第个推荐编写输入字符串中包含的关键词个数;表示第个推荐编写输入字符串中包含的关键词个数;表示推荐编写输入字符串的总个数;表示将的值从1取值到代入到括号内得到满足括号内算式的值的个数;In the above formula (1), Indicates the first recommended to write a sorted value of the input string; Indicates the first The number of keywords contained in a recommended writing input string; Indicates the first The number of keywords contained in a recommended writing input string; Indicates the total number of recommended input strings; express will The value ranges from 1 to Substituting into the brackets to get the formula that satisfies the brackets 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,
(2) (2)
在上述公式(2)中,表示与所述第个推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合;第个推荐编写输入字符串的一次排序值;表示将的值从1取值到代入到括号内得到满足括号内算式的值的集合;In the above formula (2), Indicates that with the said A set of recommended writing input strings with the same primary ranking value; No. recommended to write a sorted value of the input string; express will The value ranges from 1 to Substituting into the brackets to get the formula that satisfies the brackets 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,
(3) (3)
在上述公式(3)中,表示一次排序值相同的推荐编写输入字符串中的第个字符串的二次排序值;表示一次排序值相同的推荐编写输入字符串中的第个字符串在模糊搜索时被搜索到的先后顺序值,其中,第一个被搜索到的字符串的先后顺序值为1,第二个被搜索到的字符串的先后顺序值为2,以此类推;表示一次排序值相同的推荐编写输入字符串中的第个字符串的字符串长度;表示一次排序值相同的推荐编写输入字符串中的第个字符串的字符串长度;表示一次排序值相同的推荐编写输入字符串中的第个字符串的字符串长度;表示一次排序值相同的推荐编写输入字符串的个数;In the above formula (3), Indicates that the first rank in the input string is recommended to be written with the same sorting value The secondary sort value of a string; Indicates that the first rank in the input string is recommended to be written with the same sorting value 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; Indicates that the first rank in the input string is recommended to be written with the same sorting value The string length of strings; Indicates that the first rank in the input string is recommended to be written with the same sorting value The string length of strings; Indicates that the first rank in the input string is recommended to be written with the same sorting value The string length of strings; 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,
(1) (1)
在上述公式(1)中 ,表示第个推荐编写输入字符串的一次排序值;表示第个推荐编写输入字符串中包含的关键词个数;表示第个推荐编写输入字符串中包含的关键词个数;表示推荐编写输入字符串的总个数;表示将的值从1取值到代入到括号内得到满足括号内算式的值的个数;In the above formula (1), Indicates the first recommended to write a sorted value of the input string; Indicates the first The number of keywords contained in a recommended writing input string; Indicates the first The number of keywords contained in a recommended writing input string; Indicates the total number of recommended input strings; express will The value ranges from 1 to Substituting into the brackets to get the formula that satisfies the brackets 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,
(2) (2)
在上述公式(2)中,表示与所述第个推荐编写输入字符串具有相同的一次排序值的推荐编写输入字符串集合;第个推荐编写输入字符串的一次排序值;表示将的值从1取值到代入到括号内得到满足括号内算式的值的集合;In the above formula (2), Indicates that with the said A set of recommended writing input strings with the same primary ranking value; No. recommended to write a sorted value of the input string; express will The value ranges from 1 to Substituting into the brackets to get the formula that satisfies the brackets 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,
(3) (3)
在上述公式(3)中,表示一次排序值相同的推荐编写输入字符串中的第个字符串的二次排序值;表示一次排序值相同的推荐编写输入字符串中的第个字符串在模糊搜索时被搜索到的先后顺序值,其中,第一个被搜索到的字符串的先后顺序值为1,第二个被搜索到的字符串的先后顺序值为2,以此类推;表示一次排序值相同的推荐编写输入字符串中的第个字符串的字符串长度;表示一次排序值相同的推荐编写输入字符串中的第个字符串的字符串长度;表示一次排序值相同的推荐编写输入字符串中的第个字符串的字符串长度;表示一次排序值相同的推荐编写输入字符串的个数;In the above formula (3), Indicates that the first rank in the input string is recommended to be written with the same sorting value The secondary sort value of a string; Indicates that the first rank in the input string is recommended to be written with the same sorting value 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; Indicates that the first rank in the input string is recommended to be written with the same sorting value The string length of strings; Indicates that the first rank in the input string is recommended to be written with the same sorting value The string length of strings; Indicates that the first rank in the input string is recommended to be written with the same sorting value The string length of strings; 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.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211422607.XACN115577694B (en) | 2022-11-15 | 2022-11-15 | Intelligent recommendation method for standard writing |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211422607.XACN115577694B (en) | 2022-11-15 | 2022-11-15 | Intelligent recommendation method for standard writing |
| Publication Number | Publication Date |
|---|---|
| CN115577694Atrue CN115577694A (en) | 2023-01-06 |
| CN115577694B CN115577694B (en) | 2023-05-30 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211422607.XAActiveCN115577694B (en) | 2022-11-15 | 2022-11-15 | Intelligent recommendation method for standard writing |
| Country | Link |
|---|---|
| CN (1) | CN115577694B (en) |
| 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 |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100709237B1 (en)* | 2005-10-25 | 2007-04-19 | 전한구 | How to handle strings on the terminal |
| 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 |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100709237B1 (en)* | 2005-10-25 | 2007-04-19 | 전한구 | How to handle strings on the terminal |
| 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 |
| 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 |
| Publication number | Publication date |
|---|---|
| CN115577694B (en) | 2023-05-30 |
| Publication | Publication Date | Title |
|---|---|---|
| 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 |
| 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 |