CN116050426A - Method, system, device and storage medium for fast menu query - Google Patents

Method, system, device and storage medium for fast menu query Download PDF

Info

Publication number
CN116050426A
CN116050426A CN202211726017.6A CN202211726017A CN116050426A CN 116050426 A CN116050426 A CN 116050426A CN 202211726017 A CN202211726017 A CN 202211726017A CN 116050426 A CN116050426 A CN 116050426A
Authority
CN
China
Prior art keywords
text
query
menu
user
similar
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.)
Pending
Application number
CN202211726017.6A
Other languages
Chinese (zh)
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.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN202211726017.6A priority Critical patent/CN116050426A/en
Publication of CN116050426A publication Critical patent/CN116050426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/211Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/253Grammatical analysis; Style critique
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Machine Translation (AREA)

Abstract

The invention provides a method, a system, equipment and a storage medium for quickly inquiring a menu, wherein the method comprises the following steps: processing text input by a user in response to receiving the text; carrying out similar problem reasoning through a dictionary according to the processed text to obtain the confidence coefficient of each similar problem, and sequencing according to the confidence coefficient; judging whether a similar problem with the confidence coefficient higher than a threshold exists or not; and responsive to the presence of a similar question with a confidence level above a threshold, presenting the similar question to a user in sequence. The invention carries out lexical analysis, syntactic analysis and semantic analysis on the input text, can provide more accurate query service for users, automatically extracts the names of the newly generated menus when the new menus are generated, synchronously updates the dictionary in the lexical analysis, and greatly enhances the usability of software.

Description

一种菜单快速查询的方法、系统、设备和存储介质Method, system, device and storage medium for fast menu query

技术领域technical field

本发明涉及智能交互领域,更具体地,特别是指一种菜单快速查询的方法、系统、设备和存储介质。The present invention relates to the field of intelligent interaction, more specifically, to a method, system, device and storage medium for fast menu query.

背景技术Background technique

在iGIX低代码开发平台中,应用开发完成后会发布生成菜单,以便于用户通过菜单快速定位到具体应用,以使用软件功能,但iGIX低代码开发平台内置有数百种基础功能,多以菜单的形式作为入口,再加上基于平台进行开发的应用菜单,会使菜单查询存在一定的复杂性,当前平台提供的是模糊查询方法,用户输入查询关键字后还需从若干查询结果中进行筛选,查询准确率和效率都不理想。In the iGIX low-code development platform, the generated menu will be released after the application development is completed, so that users can quickly locate specific applications through the menu to use software functions. However, the iGIX low-code development platform has hundreds of built-in basic functions, most of which are menu In addition, the application menu developed based on the platform will make the menu query complex. The current platform provides a fuzzy query method. After the user enters the query keyword, he needs to filter from several query results. , the query accuracy and efficiency are not ideal.

低代码开发平台中的菜单搜索多是基于模糊匹配算法,在常见的搜索框中输入要查找内容的关键词进行查询,不能实现自动跳转,需要手动点击菜单进行跳转,而基于iGIX的开发者在开发具体应用时需要不断的查询菜单以测试功能,带来很多不必要的操作,降低了开发效率。The menu search in the low-code development platform is mostly based on the fuzzy matching algorithm. In the common search box, enter the keywords of the content to be searched for, and automatic jump cannot be realized. You need to manually click the menu to jump, while the development based on iGIX When developing a specific application, the developer needs to constantly query the menu to test the function, which brings many unnecessary operations and reduces the development efficiency.

另外,自然语言模型训练所需的数据多是静态的,但是随着菜单数量的增加,导致大量的未登陆词出现,这些词都是与业务相关的,而在通用的分词词典中可能不包含这类词,导致分词出现错误,从而在语法、语义分析阶段出现异常,最终导致预测出现偏差。In addition, most of the data required for natural language model training is static, but with the increase in the number of menus, a large number of unregistered words appear, these words are related to business, and may not be included in the general word segmentation dictionary Such words lead to errors in word segmentation, resulting in abnormalities in the grammatical and semantic analysis stages, which eventually lead to deviations in prediction.

发明内容Contents of the invention

有鉴于此,本发明实施例的目的在于提出一种菜单快速查询的方法、系统、计算机设备及计算机可读存储介质,本发明在iGIX低代码开发平台中引入自然语言处理技术及配套工具,对输入的文本进行词法分析、句法分析和语义解析,能够为使用者提供更加精准的查询服务,同时,针对平台中的菜单呈现原理,自动监测菜单的动态变化情况,当有新的菜单生成时,自动提取新生成的菜单名称,同步更新词法分析中的词典,对于平台的开发者来说可以进一步提升开发人员的开发效率、缩短软件研发周期,对于最终的软件用户来说,极大增强了软件的易用性。In view of this, the purpose of the embodiment of the present invention is to propose a method, system, computer equipment and computer-readable storage medium for quick menu query. The present invention introduces natural language processing technology and supporting tools into the iGIX low-code development platform, and provides Lexical analysis, syntactic analysis, and semantic analysis of the input text can provide users with more accurate query services. At the same time, according to the menu presentation principle in the platform, the dynamic changes of the menu are automatically monitored. When a new menu is generated, Automatically extract the newly generated menu name and synchronously update the dictionary in the lexical analysis. For platform developers, it can further improve the development efficiency of developers and shorten the software development cycle. For the final software users, it greatly enhances the software ease of use.

基于上述目的,本发明实施例的一方面提供了一种菜单快速查询的方法,包括如下步骤:响应于接收到用户输入的文本,对所述文本进行处理;根据处理后的文本通过词典进行相似问题推理,得到每个相似问题的置信度,并根据置信度的高低进行排序;判断是否存在置信度高于阈值的相似问题;以及响应于存在置信度高于阈值的相似问题,将所述相似问题按顺序展示给用户。Based on the above purpose, an aspect of the embodiment of the present invention provides a method for quick menu query, including the following steps: in response to receiving the text input by the user, processing the text; Question reasoning, obtaining the confidence of each similar question, and sorting according to the level of confidence; judging whether there is a similar question with a confidence higher than a threshold; Questions are presented to the user in order.

在一些实施方式中,所述对所述文本进行处理包括:对所述文本进行分词得到第一结果,对所述第一结果进行停用词或无意义词检测以删除所述第一结果中的停用词或无意义词。In some implementations, the processing the text includes: performing word segmentation on the text to obtain a first result, and performing stop words or nonsense words detection on the first result to delete stop words or meaningless words.

在一些实施方式中,所述对所述文本进行处理包括:通过将所述文本与预先设置的内容进行比对以对所述文本中不合法部分进行过滤。In some implementations, the processing the text includes: comparing the text with preset content to filter illegal parts in the text.

在一些实施方式中,所述方法还包括:响应于所述文本与预设关键词匹配成功,直接返回所述预设关键词相对应的答复内容。In some implementations, the method further includes: in response to the text being successfully matched with a preset keyword, directly returning the reply content corresponding to the preset keyword.

在一些实施方式中,所述方法还包括:响应于每次完成查询,根据当次查询结果将对应查询主题的分数加一,并根据分数的高低对查询主题进行排序以形成下一次对用户的推荐结果。In some embodiments, the method further includes: in response to completing the query each time, adding one to the score of the corresponding query topic according to the current query result, and sorting the query topics according to the scores to form the next query for the user. Recommended results.

在一些实施方式中,所述方法还包括:设置过期时间,响应于每次查询结果的持续时间超过所述过期时间,将所述查询结果对应查询主题的分数减一。In some implementations, the method further includes: setting an expiration time, and reducing the score of the query result corresponding to the query subject by one in response to the duration of each query result exceeding the expiration time.

在一些实施方式中,所述方法还包括:响应于检测到菜单数据的增量变化,向自然语言处理服务端推送菜单名称的数据以更新所述词典数据。In some embodiments, the method further includes: in response to detecting an incremental change in the menu data, pushing the data of the menu name to the natural language processing server to update the dictionary data.

本发明实施例的另一方面,提供了一种菜单快速查询的系统,包括:处理模块,配置用于响应于接收到用户输入的文本,对所述文本进行处理;推理模块,配置用于根据处理后的文本通过词典进行相似问题推理,得到每个相似问题的置信度,并根据置信度的高低进行排序;判断模块,配置用于判断是否存在置信度高于阈值的相似问题;以及展示模块,配置用于响应于存在置信度高于阈值的相似问题,将所述相似问题按顺序展示给用户。Another aspect of the embodiments of the present invention provides a system for quick menu query, including: a processing module configured to process the text in response to receiving the text input by the user; a reasoning module configured to process the text according to The processed text is reasoned about similar questions through the dictionary, and the confidence of each similar question is obtained, and sorted according to the level of confidence; the judgment module is configured to judge whether there are similar questions with a confidence higher than the threshold; and the display module , configured to display the similar questions to the user in order in response to the presence of similar questions with a confidence level higher than a threshold.

本发明实施例的又一方面,还提供了一种计算机设备,包括:至少一个处理器;以及存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现如上方法的步骤。In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory, the memory stores computer instructions executable on the processor, and the instructions are executed by the The steps of the above method are realized when the processor executes.

本发明实施例的再一方面,还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时实现如上方法步骤的计算机程序。In yet another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, and the computer-readable storage medium stores a computer program for implementing the above method steps when executed by a processor.

本发明具有以下有益技术效果:在iGIX低代码开发平台中引入自然语言处理技术及配套工具,对输入的文本进行词法分析、句法分析和语义解析,能够为使用者提供更加精准的查询服务,同时,针对平台中的菜单呈现原理,自动监测菜单的动态变化情况,当有新的菜单生成时,自动提取新生成的菜单名称,同步更新词法分析中的词典,对于平台的开发者来说可以进一步提升开发人员的开发效率、缩短软件研发周期,对于最终的软件用户来说,极大增强了软件的易用性。The present invention has the following beneficial technical effects: the natural language processing technology and supporting tools are introduced into the iGIX low-code development platform to perform lexical analysis, syntactic analysis and semantic analysis on the input text, which can provide users with more accurate query services, and at the same time According to the principle of menu presentation in the platform, the dynamic changes of the menu are automatically monitored. When a new menu is generated, the newly generated menu name is automatically extracted, and the dictionary in the lexical analysis is updated synchronously. For platform developers, it can further Improve the development efficiency of developers, shorten the software development cycle, and greatly enhance the ease of use of the software for the final software users.

附图说明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, and those skilled in the art can obtain other embodiments according to these drawings without any creative effort.

图1为本发明提供的菜单快速查询的方法的实施例的示意图;Fig. 1 is the schematic diagram of the embodiment of the method for quick menu query provided by the present invention;

图2为本发明提供的菜单快速查询的系统的实施例的示意图;Fig. 2 is a schematic diagram of an embodiment of a system for quick menu query provided by the present invention;

图3为本发明提供的菜单快速查询的计算机设备的实施例的硬件结构示意图;Fig. 3 is the hardware structure schematic diagram of the embodiment of the computer equipment of the menu quick query provided by the present invention;

图4为本发明提供的菜单快速查询的计算机存储介质的实施例的示意图。Fig. 4 is a schematic diagram of an embodiment of a computer storage medium for quick menu query provided by the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

本发明实施例的第一个方面,提出了一种菜单快速查询的方法的实施例。图1示出的是本发明提供的菜单快速查询的方法的实施例的示意图。According to the first aspect of the embodiments of the present invention, an embodiment of a method for quick menu query is proposed. FIG. 1 is a schematic diagram of an embodiment of the method for quick menu query provided by the present invention.

如图1所示,本发明实施例包括如下步骤:As shown in Figure 1, the embodiment of the present invention includes the following steps:

S1、响应于接收到用户输入的文本,对所述文本进行处理;S1. In response to receiving the text input by the user, process the text;

S2、根据处理后的文本通过词典进行相似问题推理,得到每个相似问题的置信度,并根据置信度的高低进行排序;S2. According to the processed text, the similar question reasoning is carried out through the dictionary, and the confidence degree of each similar question is obtained, and sorted according to the level of confidence;

S3、判断是否存在置信度高于阈值的相似问题;以及S3. Judging whether there is a similar problem with a confidence level higher than a threshold; and

S4、响应于存在置信度高于阈值的相似问题,将所述相似问题按顺序展示给用户。S4. In response to the presence of similar questions with a confidence level higher than the threshold, present the similar questions to the user in sequence.

本发明实施例将自然语言处理技术引入到iGIX低代码开发平台中,并与其应用菜单查询相关的功能进行融合,以提升开发效率和软件的易用性。The embodiment of the present invention introduces the natural language processing technology into the iGIX low-code development platform, and integrates the functions related to the application menu query to improve the development efficiency and the usability of the software.

本发明实施例提供对话式UI(User Interface,用户界面),它是人机交互的入口,初次进入对话式UI窗口,会出现推荐内容列表,这些推荐内容可以进行设置,随着应用次数的增多,系统会自动学习用户的喜好并进行自动更新推荐列表。本发明实施例前端交互界面基于浪潮自研的Farris UI和HTML、CSS、jQuery等前端技术进行开发。对话式UI集成多个功能,包括用户指令输入、对话控制中心返回结果展示和页面的自动跳转。Embodiments of the present invention provide a conversational UI (User Interface, user interface), which is the entrance of human-computer interaction. When entering the conversational UI window for the first time, a list of recommended content will appear. These recommended content can be set. With the increase of the number of applications , the system will automatically learn the user's preferences and automatically update the recommendation list. The front-end interactive interface of the embodiment of the present invention is developed based on Inspur self-developed Farris UI and HTML, CSS, jQuery and other front-end technologies. The conversational UI integrates multiple functions, including user command input, result display returned by the dialogue control center, and automatic page jump.

用户通过交互式UI界面进行文本输入,并传输给后端进行语义解析,并将最终查询结果通过对话式UI返回给用户,其中的内容有菜单名称列表或者是问答内容,用户可直接点击列表内容,或者输入列表前的序号可实现自动跳转。The user enters text through the interactive UI interface, and transmits it to the backend for semantic analysis, and returns the final query result to the user through the conversational UI. The content includes a menu name list or a question and answer content, and the user can directly click on the content of the list , or enter the serial number before the list to realize automatic jump.

在一些实施方式中,所述对所述文本进行处理包括:通过将所述文本与预先设置的内容进行比对以对所述文本中不合法部分进行过滤。在iGIX低代码开发平台主页存在机器人图标,该图标支持上下拖动,点击机器人图标弹出对话框(对话式UI)。用户输入文本内容后,前端通过提前设置的内容,对输入内容中的不合法部分进行过滤,主要是对文本中是否包含可执行的Script脚本语言进行检测,以防止恶意代码注入。前端将输入的文本内容通过请求API接口传递到后端的对话控制模块。In some implementations, the processing the text includes: comparing the text with preset content to filter illegal parts in the text. There is a robot icon on the homepage of the iGIX low-code development platform. The icon supports dragging up and down, and a dialog box (conversational UI) pops up when you click the robot icon. After the user enters the text content, the front-end filters the illegal part of the input content through the content set in advance, mainly to detect whether the text contains executable Script scripting language to prevent malicious code injection. The front end transmits the input text content to the dialog control module of the back end through the request API interface.

在一些实施方式中,所述对所述文本进行处理包括:对所述文本进行分词得到第一结果,对所述第一结果进行停用词或无意义词检测以删除所述第一结果中的停用词或无意义词。In some implementations, the processing the text includes: performing word segmentation on the text to obtain a first result, and performing stop words or nonsense words detection on the first result to delete stop words or meaningless words.

文本进入对话控制模块后第一步是,调用自然语言处理模块对输入的文本内容进行分词,对于文本分词本发明实施例采用jieba(结巴)分词框架,由于在iGIX开发框架中应用形成的菜单名称多是与业务强相关的,通用的分词框架不能很准确的进行切分,故本发明实施例基于jieba分词框架提供的词典自定义功能进行扩展,进一步提升了切词精度,开发者基于iGIX开发框架开发完成应用最后发布成菜单,这一过程中,菜单的名称及具体的应用路径等关键信息会自动保存到相应的数据库表中,该发明实施例基于此机制与框架进行集成,在有新的菜单产生时,会同步将菜单的名称保存到自定义词典中。切词服务以列表的形式返回所有的词,之后系统对切完的词进行停用词或无意义词的检测,将词语清洗完后,进行相似问题推理。The first step after the text enters the dialogue control module is to call the natural language processing module to carry out word segmentation for the input text content. For the text word segmentation, the embodiment of the present invention adopts the jieba (stutter) word segmentation framework, because the menu name formed by applying the iGIX development framework Most of them are strongly related to the business, and the general word segmentation framework cannot be segmented very accurately. Therefore, the embodiment of the present invention expands based on the dictionary customization function provided by the jieba word segmentation framework, and further improves the accuracy of word segmentation. Developers develop based on iGIX After the development of the framework, the application is finally published as a menu. During this process, the key information such as the name of the menu and the specific application path will be automatically saved in the corresponding database table. The embodiment of the invention integrates with the framework based on this mechanism. When the menu is generated, the name of the menu will be saved in the custom dictionary synchronously. The word segmentation service returns all words in the form of a list, and then the system detects stop words or nonsense words for the cut words, cleans the words, and performs similar reasoning.

相似问题推理会返回近似问题列表,包括具体的问题和答案所在位置的链接、置信度,系统默认返回10条数据,在返回数据当中如果置信度大于设定的阈值则可直接返回相似问题,不再进行其它自然语言处理任务的判断直接返回前端。Similar question reasoning will return a list of similar questions, including links to specific questions and answers, and confidence levels. The system returns 10 pieces of data by default. If the confidence in the returned data is greater than the set threshold, similar questions can be returned directly. Then judge other natural language processing tasks and return directly to the front end.

这里的判断顺序是需要进行设置的,系统提供的配置界面中有单独的部分,系统在进行自然语言处理时会先获取配置的数据,然后根据配置的优先级进行判断,这里优先级体现在数字上,即1、2、3,如果用户未对顺序进行设置,系统则默认将菜单的查询进行优先级处理判断,其次是相似问题,最后是用户自定义内容的检索。用户可以通过系统提供的前端界面设置问答内容,支持问题、内容的自定义编辑,内容的格式包括文本和图像,最终存储在数据库表中,这些数据库表与iGIX存储在同一个数据库中,同时自定义的问题基于TF-IDF方法进行文本相似度的计算,同步更新文档库,对于相似问题系统会自动与iGIX问社区中采纳问题进行同步更新,并更新文本相似度计算文档库。菜单名称的匹配,是基于Word2Vec模型中的CBOW算法计算词的相似度,并基于相似问题的置信度进行排序,如大于阈值则返回到前端,这种询问方法是需要进行用户筛选的,系统最终返回的是语义相近的若干个菜单。The order of judgment here needs to be set. There is a separate part in the configuration interface provided by the system. When the system performs natural language processing, it will first obtain the configuration data, and then judge according to the priority of the configuration. The priority here is reflected in the number 1, 2, and 3. If the user does not set the order, the system defaults to the priority processing and judgment of the menu query, followed by similar questions, and finally the retrieval of user-defined content. Users can set the content of questions and answers through the front-end interface provided by the system, and support custom editing of questions and content. The format of the content includes text and images, and finally stored in the database table. The defined questions are calculated based on the TF-IDF method, and the document library is updated synchronously. For similar questions, the system will automatically update them with the questions adopted in the iGIX community, and update the text similarity calculation document library. The matching of menu names is based on the CBOW algorithm in the Word2Vec model to calculate the similarity of words, and sort based on the confidence of similar questions. If it is greater than the threshold, it will return to the front end. This query method requires user screening, and the system will eventually It returns several menus with similar semantics.

在一些实施方式中,所述方法还包括:响应于所述文本与预设关键词匹配成功,直接返回所述预设关键词相对应的答复内容。如果用户明确知道要查询的菜单,可以在输入的菜单前添加“打开”,系统针对输入的文本,首先检测文本的末尾是否包含相应的关键字,如果含有则系统会返回自动开发的标记,在返回内容中写入关键词“autoOpen”,然后对除“打开”外的文本内容进行分词,然后返回结果,如果存在多个不同的菜单时,首先与常使用的菜单库存储内容进行匹配,如果是经常访问的词则返回经常访问的词,如果多个词使用的频次相同,系统默认会根据词语在输入文本中的顺序进行排序,前面的词优先返回,并且只返回一个菜单名称。对于常见的问候语,比如你好、你有什么功能等,前端系统模块会进行过滤,此类文本答复话术系统已经内置,前端有文本匹配功能,匹配到预设的关键词后,前端部分直接返回答复内容,而不再将内容传递到服务端进行处理。In some implementations, the method further includes: in response to the text being successfully matched with a preset keyword, directly returning the reply content corresponding to the preset keyword. If the user clearly knows the menu to be queried, "open" can be added before the entered menu. The system will first check whether the end of the text contains the corresponding keyword for the entered text. If it does, the system will return the automatically developed tag. Write the keyword "autoOpen" in the returned content, and then perform word segmentation on the text content except "open", and then return the result. If there are multiple different menus, first match the content stored in the frequently used menu library. If If it is a frequently visited word, the frequently visited word will be returned. If multiple words are used with the same frequency, the system will sort them according to the order of the words in the input text by default. The previous words will be returned first, and only one menu name will be returned. For common greetings, such as hello, what function do you have, etc., the front-end system module will filter. This kind of text reply speech system has been built in, and the front-end has a text matching function. After matching the preset keywords, the front-end part Return the reply content directly instead of passing the content to the server for processing.

对于返回的内容,前端支持多种模态展示,主要包括功能菜单名称、iGIX问答社区相似问题推荐和用户自定义的问答内容,前端感知到后端返回的内容后,根据前后设定规则进行差异化展示,对话控制服务端以JSON格式返回数据,返回的内容中添加有action字段,该字段的值主要有clickOpenMenu(返回到前端的内容需要鼠标点击实现应用跳转)、autoOpenMenu(语义解析准确,实现菜单的自动跳转)、qA(iGIX问答社区中已采纳的问题集)和answer(自定义的问答类型),通过设置的这些关键词,UI界面能够差异化展示不同模态的内容,比如对于自定义问答内容,可以将答复语句直接展示,而相似问题需要提供跳转功能,跳转到iGIX问答社区中查看更精准的答案。For the returned content, the front-end supports a variety of modal display, mainly including the function menu name, similar question recommendation in the iGIX Q&A community, and user-defined Q&A content. The dialogue control server returns data in JSON format, and an action field is added to the returned content. The values of this field mainly include clickOpenMenu (the content returned to the front end requires a mouse click to realize the application jump), autoOpenMenu (the semantic analysis is accurate, Realize the automatic jump of the menu), qA (the question set adopted in the iGIX Q&A community) and answer (customized Q&A type), by setting these keywords, the UI interface can differentiate the content of different modes, such as For custom Q&A content, the answer sentence can be displayed directly, and similar questions need to provide a jump function to jump to the iGIX Q&A community to view more accurate answers.

在一些实施方式中,所述方法还包括:响应于每次完成查询,根据当次查询结果将对应查询主题的分数加一,并根据分数的高低对查询主题进行排序以形成下一次对用户的推荐结果。用户每次重新进入对话式UI时,系统会自动对用户常用的功能进行推荐,推荐的内容默认为菜单名称和具体问题,每次只展示常用前6个经常搜索的内容,用户也可通过系统提供的界面设置推荐内容,推荐内容默认是需要用户点击跳转,这里支持设置用户自定义的问答对,如果用户不进行设置,则系统会随机推送6条信息,用户也可以在配置页面中关闭问题推荐功能,进行页面刷新后,对话式UI中的界面中不再显示推荐内容。对于系统内置的推荐功能,系统采用打分制,相同的内容每检测到一次则在相应score(分数)中加1。In some embodiments, the method further includes: in response to completing the query each time, adding one to the score of the corresponding query topic according to the current query result, and sorting the query topics according to the scores to form the next query for the user. Recommended results. Every time the user re-enters the conversational UI, the system will automatically recommend the user's frequently used functions. The recommended content defaults to the menu name and specific questions. Only the top 6 frequently searched content will be displayed each time. The user can also use the system to The provided interface sets the recommended content. The recommended content requires the user to click to jump by default. Here, user-defined question and answer pairs are supported. If the user does not set it, the system will randomly push 6 pieces of information, and the user can also close it in the configuration page. For the question recommendation function, after the page is refreshed, the recommended content will no longer be displayed on the interface in the conversational UI. For the built-in recommendation function of the system, the system adopts a scoring system, and every time the same content is detected, 1 will be added to the corresponding score.

在一些实施方式中,所述方法还包括:设置过期时间,响应于每次查询结果的持续时间超过所述过期时间,将所述查询结果对应查询主题的分数减一。设置过期时间,一般为一周,设定的存储结构为队列,接收到前端请求的内容后,首先进行首尾词的检测,然后与队列中的数据进行完全匹配,相同且不过期则在分数后加1,对于到过期时间的问题,系统检测到后自动从队列中删除。In some implementations, the method further includes: setting an expiration time, and reducing the score of the query result corresponding to the query subject by one in response to the duration of each query result exceeding the expiration time. Set the expiration time, usually one week, and set the storage structure as a queue. After receiving the content requested by the front end, first detect the first and last words, and then completely match the data in the queue. If the same and not expired, add it after the score 1. For the problem that the expiration time is reached, the system will automatically delete it from the queue after detection.

在一些实施方式中,所述方法还包括:响应于检测到菜单数据的增量变化,向自然语言处理服务端推送菜单名称的数据以更新所述词典数据。对话控制系统与NLP服务之间有数据处理服务接口,在数据菜单数据出现更新时,系统检测到增量变化,会自动向NLP服务端推送菜单名称的数据,NLP服务端自动更新字典数据,对于用户自定义类型问答数据,在用户上传完数据后,需通过系统提供的配置界面进行模型训练,iGIX开发社区中的已采纳的问答内容,系统会定时进行数据的爬取,以更新文档集合。In some embodiments, the method further includes: in response to detecting an incremental change in the menu data, pushing the data of the menu name to the natural language processing server to update the dictionary data. There is a data processing service interface between the dialogue control system and the NLP service. When the data menu data is updated, the system detects an incremental change and automatically pushes the data of the menu name to the NLP server. The NLP server automatically updates the dictionary data. For User-defined type of question and answer data, after the user uploads the data, model training needs to be performed through the configuration interface provided by the system, and the system will regularly crawl the data to update the document collection for the adopted question and answer content in the iGIX development community.

自然语言处理模块与对话控制中心是松耦合的,它们是两个不同的服务单元,对话控制系统需要以API接口的形式调用自然语言处理服务端,然后将返回的结果进行组合处理返回前端界面,这里的操作包括具体菜单对应的函数ID封装,因为在iGIX开发框架中菜单的打开根据函数ID进行识别定位,其它的问答功能同样需要进行定制化的开发,不变的是自然语言处理模块。The natural language processing module and the dialogue control center are loosely coupled. They are two different service units. The dialogue control system needs to call the natural language processing server in the form of an API interface, and then combine the returned results and return them to the front-end interface. The operation here includes the encapsulation of the function ID corresponding to the specific menu, because in the iGIX development framework, the opening of the menu is identified and located according to the function ID, and other question and answer functions also need to be customized, and the natural language processing module remains unchanged.

自然语言处理模块以微服务的形式进行部署,而对话控制中心是业务相关的属于智能能力消费层,对话控制中心基于JAVA语言开发,自然语言处理服务中心基于Python开发,在系统提供的配置界面,用户可进行设置是否启用自然语言处理(NLP)服务,如果不采用服务,系统默认提供规则匹配方法进行相似问题的近似计算。The natural language processing module is deployed in the form of microservices, and the dialogue control center is business-related and belongs to the intelligent capability consumption layer. The dialogue control center is developed based on JAVA language, and the natural language processing service center is developed based on Python. In the configuration interface provided by the system, Users can set whether to enable the natural language processing (NLP) service. If the service is not used, the system defaults to providing a rule matching method for approximate calculation of similar problems.

系统采用自然语言处理框架Gensim进行文本处理。自然语言处理模块提供训练功能,系统检测问题中的增量后,自动推送一份数据到训练端,NLP训练模块检测到推送的数据后,自动更新TF-IDF中文本的嵌入词表。对于菜单的相似性预测,本发明实施例基于Word2Vec词嵌入模型中的CBOW算法,进行词向量的定制化训练,在训练语料中融入许多iGIX低代码开发领域内的词汇,前期在进行文本数据的搜集时囊括了不同垂直领域ERP系统需要的功能应用名称,使得相似度的预测精度大幅提升。同时,系统提供自然语言处理的控制界面,在数据处理部分自定义词表然后与系统内置的数据集一起进行词表训练,整个训练过程是在云端进行的,用户也可以在配置界面中设置训练参数比如count(每次读取词的个数据)、epoch(训练的次数),词向量的大小系统进行了默认处理为100维度,处理完数据后,点击训练按钮后云端系统自动进行训练,训练完成后,NLP处理系统自动进行部署上线。The system uses the natural language processing framework Gensim for text processing. The natural language processing module provides training functions. After the system detects the increment in the problem, it automatically pushes a copy of data to the training end. After the NLP training module detects the pushed data, it automatically updates the embedded word list of the text in TF-IDF. For the similarity prediction of the menu, the embodiment of the present invention is based on the CBOW algorithm in the Word2Vec word embedding model, and conducts customized training of word vectors, and integrates many words in the field of iGIX low-code development into the training corpus. The collection includes the functional application names required by ERP systems in different vertical fields, which greatly improves the prediction accuracy of similarity. At the same time, the system provides a control interface for natural language processing. In the data processing part, you can customize the vocabulary and then perform vocabulary training together with the built-in data set in the system. The entire training process is carried out in the cloud, and users can also set the training in the configuration interface. Parameters such as count (data of each word read), epoch (number of training times), the size of the word vector is processed by the system to 100 dimensions by default. After processing the data, the cloud system automatically trains after clicking the training button. After completion, the NLP processing system automatically deploys and goes online.

需要特别指出的是,上述菜单快速查询的方法的各个实施例中的各个步骤均可以相互交叉、替换、增加、删减,因此,这些合理的排列组合变换之于菜单快速查询的方法也应当属于本发明的保护范围,并且不应将本发明的保护范围局限在实施例之上。It should be pointed out that the steps in the various embodiments of the above-mentioned method for quick menu query can be mutually intersected, replaced, added, and deleted. Therefore, these reasonable permutations and combinations should also belong to the method for quick menu query protection scope of the present invention and should not be limited to the embodiments.

基于上述目的,本发明实施例的第二个方面,提出了一种菜单快速查询的系统。如图2所示,系统200包括如下模块:处理模块,配置用于响应于接收到用户输入的文本,对所述文本进行处理;推理模块,配置用于根据处理后的文本通过词典进行相似问题推理,得到每个相似问题的置信度,并根据置信度的高低进行排序;判断模块,配置用于判断是否存在置信度高于阈值的相似问题;以及展示模块,配置用于响应于存在置信度高于阈值的相似问题,将所述相似问题按顺序展示给用户。Based on the above purpose, the second aspect of the embodiment of the present invention proposes a system for quick menu query. As shown in Figure 2, the system 200 includes the following modules: a processing module configured to process the text in response to receiving the text input by the user; a reasoning module configured to perform similar questions through a dictionary according to the processed text Reasoning, obtaining the confidence of each similar question, and sorting according to the level of confidence; judging module, configured to determine whether there is a similar question with a confidence higher than a threshold; and a display module, configured to respond to the presence of confidence For similar questions higher than the threshold, the similar questions are displayed to the user in order.

在一些实施方式中,所述处理模块配置用于:对所述文本进行分词得到第一结果,对所述第一结果进行停用词或无意义词检测以删除所述第一结果中的停用词或无意义词。In some implementations, the processing module is configured to: perform word segmentation on the text to obtain a first result, and detect stop words or meaningless words on the first result to delete stop words in the first result. Words or nonsense words.

在一些实施方式中,所述处理模块配置用于:通过将所述文本与预先设置的内容进行比对以对所述文本中不合法部分进行过滤。In some implementations, the processing module is configured to: filter illegal parts of the text by comparing the text with preset content.

在一些实施方式中,所述系统还包括返回模块,配置用于:响应于所述文本与预设关键词匹配成功,直接返回所述预设关键词相对应的答复内容。In some implementations, the system further includes a return module configured to: in response to the text being successfully matched with a preset keyword, directly return the reply content corresponding to the preset keyword.

在一些实施方式中,所述系统还包括推荐模块,配置用于:响应于每次完成查询,根据当次查询结果将对应查询主题的分数加一,并根据分数的高低对查询主题进行排序以形成下一次对用户的推荐结果。In some implementations, the system further includes a recommendation module configured to: in response to completing a query each time, add one to the score of the corresponding query topic according to the current query result, and sort the query topics according to the scores Form the next recommendation result for the user.

在一些实施方式中,所述系统还包括过期模块,配置用于:设置过期时间,响应于每次查询结果的持续时间超过所述过期时间,将所述查询结果对应查询主题的分数减一。In some implementations, the system further includes an expiration module configured to: set an expiration time, and decrease the score of the query result corresponding to the query subject by one in response to the duration of each query result exceeding the expiration time.

在一些实施方式中,所述系统还包括更新模块,配置用于:响应于检测到菜单数据的增量变化,向自然语言处理服务端推送菜单名称的数据以更新所述词典数据。In some implementations, the system further includes an updating module configured to: in response to detecting an incremental change of the menu data, push the data of the menu name to the natural language processing server to update the dictionary data.

基于上述目的,本发明实施例的第三个方面,提出了一种计算机设备,包括:至少一个处理器;以及存储器,存储器存储有可在处理器上运行的计算机指令,指令由处理器执行以实现如下步骤:S1、响应于接收到用户输入的文本,对所述文本进行处理;S2、根据处理后的文本通过词典进行相似问题推理,得到每个相似问题的置信度,并根据置信度的高低进行排序;S3、判断是否存在置信度高于阈值的相似问题;以及S4、响应于存在置信度高于阈值的相似问题,将所述相似问题按顺序展示给用户。Based on the above purpose, a third aspect of the embodiments of the present invention proposes a computer device, including: at least one processor; and a memory, the memory stores computer instructions that can run on the processor, and the instructions are executed by the processor to The following steps are implemented: S1. In response to receiving the text input by the user, process the text; S2. Perform similar problem reasoning through the dictionary according to the processed text to obtain the confidence degree of each similar problem, and according to the confidence degree Sorting high and low; S3. Judging whether there are similar questions with a confidence higher than the threshold; and S4. Responding to the existence of similar questions with a confidence higher than the threshold, displaying the similar questions to the user in order.

在一些实施方式中,所述对所述文本进行处理包括:对所述文本进行分词得到第一结果,对所述第一结果进行停用词或无意义词检测以删除所述第一结果中的停用词或无意义词。In some implementations, the processing the text includes: performing word segmentation on the text to obtain a first result, and performing stop words or nonsense words detection on the first result to delete stop words or meaningless words.

在一些实施方式中,所述对所述文本进行处理包括:通过将所述文本与预先设置的内容进行比对以对所述文本中不合法部分进行过滤。In some implementations, the processing the text includes: comparing the text with preset content to filter illegal parts in the text.

在一些实施方式中,所述步骤还包括:响应于所述文本与预设关键词匹配成功,直接返回所述预设关键词相对应的答复内容。In some embodiments, the step further includes: in response to the text being successfully matched with a preset keyword, directly returning the reply content corresponding to the preset keyword.

在一些实施方式中,所述步骤还包括:响应于每次完成查询,根据当次查询结果将对应查询主题的分数加一,并根据分数的高低对查询主题进行排序以形成下一次对用户的推荐结果。In some embodiments, the steps further include: in response to completing the query each time, adding one to the score of the corresponding query topic according to the current query result, and sorting the query topics according to the scores to form the next query for the user. Recommended results.

在一些实施方式中,所述步骤还包括:设置过期时间,响应于每次查询结果的持续时间超过所述过期时间,将所述查询结果对应查询主题的分数减一。In some embodiments, the step further includes: setting an expiration time, and reducing the score of the query result corresponding to the query subject by one in response to the duration of each query result exceeding the expiration time.

在一些实施方式中,所述步骤还包括:响应于检测到菜单数据的增量变化,向自然语言处理服务端推送菜单名称的数据以更新所述词典数据。In some embodiments, the steps further include: in response to detecting the incremental change of the menu data, pushing the data of the menu name to the natural language processing server to update the dictionary data.

如图3所示,为本发明提供的上述菜单快速查询的计算机设备的一个实施例的硬件结构示意图。As shown in FIG. 3 , it is a schematic diagram of the hardware structure of an embodiment of the above-mentioned computer device for fast menu query provided by the present invention.

以如图3所示的装置为例,在该装置中包括一个处理器301以及一个存储器302。Taking the device shown in FIG. 3 as an example, the device includes a processor 301 and a memory 302 .

处理器301和存储器302可以通过总线或者其他方式连接,图3中以通过总线连接为例。The processor 301 and the memory 302 may be connected through a bus or in other ways, and the connection through a bus is taken as an example in FIG. 3 .

存储器302作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的菜单快速查询的方法对应的程序指令/模块。处理器301通过运行存储在存储器302中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现菜单快速查询的方法。The memory 302, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the method corresponding to the menu quick query method in the embodiment of the present application Program instructions/modules. The processor 301 executes various functional applications and data processing of the server by running non-volatile software programs, instructions and modules stored in the memory 302 , that is, a method for realizing quick menu query.

存储器302可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据菜单快速查询的方法的使用所创建的数据等。此外,存储器302可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器302可选包括相对于处理器301远程设置的存储器,这些远程存储器可以通过网络连接至本地模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 302 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application program required by a function; the data storage area may store data created by using the quick query method of the menu, and the like. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 302 may optionally include memory that is remotely located relative to the processor 301, and these remote memories may be connected to the local module through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

一个或者多个菜单快速查询的方法对应的计算机指令303存储在存储器302中,当被处理器301执行时,执行上述任意方法实施例中的菜单快速查询的方法。One or more computer instructions 303 corresponding to the quick menu query method are stored in the memory 302 , and when executed by the processor 301 , execute the menu quick query method in any of the above method embodiments.

执行上述菜单快速查询的方法的计算机设备的任何一个实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Any one embodiment of the computer device that executes the above method for fast menu query can achieve the same or similar effects as any of the above-mentioned method embodiments corresponding to it.

本发明还提供了一种计算机可读存储介质,计算机可读存储介质存储有被处理器执行时执行菜单快速查询的方法的计算机程序。The present invention also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program for executing a method for fast menu query when executed by a processor.

如图4所示,为本发明提供的上述菜单快速查询的计算机存储介质的一个实施例的示意图。以如图4所示的计算机存储介质为例,计算机可读存储介质401存储有被处理器执行时执行如上方法的计算机程序402。As shown in FIG. 4 , it is a schematic diagram of an embodiment of the computer storage medium for the above-mentioned quick menu query provided by the present invention. Taking the computer storage medium shown in FIG. 4 as an example, the computer readable storage medium 401 stores a computer program 402 for executing the above method when executed by a processor.

最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,菜单快速查询的方法的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,程序的存储介质可为磁碟、光盘、只读存储记忆体(ROM)或随机存储记忆体(RAM)等。上述计算机程序的实施例,可以达到与之对应的前述任意方法实施例相同或者相类似的效果。Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized through computer programs to instruct relevant hardware to complete, and the program of the method for quick menu query can be stored in a computer-readable When the program is executed, the program may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), and the like. The foregoing computer program embodiments can achieve the same or similar effects as any of the foregoing method embodiments corresponding thereto.

以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are the exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosed embodiments of the present invention defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in an individual form, they may also be understood as a plurality unless explicitly limited to a singular number.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that as used herein, the singular form "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments disclosed in the above-mentioned embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above-mentioned embodiments can be completed by hardware, or can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned The storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is exemplary only, and is not intended to imply that the scope (including claims) disclosed by the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in details for the sake of brevity. Therefore, within the spirit and principle of the embodiments of the present invention, any omissions, modifications, equivalent replacements, improvements, etc., shall be included in the protection scope of the embodiments of the present invention.

Claims (10)

1.一种菜单快速查询的方法,其特征在于,包括如下步骤:1. A method for menu quick inquiry, is characterized in that, comprises the steps: 响应于接收到用户输入的文本,对所述文本进行处理;in response to receiving text entered by a user, processing the text; 根据处理后的文本通过词典进行相似问题推理,得到每个相似问题的置信度,并根据置信度的高低进行排序;According to the processed text, the similar question reasoning is carried out through the dictionary, and the confidence degree of each similar question is obtained, and sorted according to the level of confidence; 判断是否存在置信度高于阈值的相似问题;以及Determine whether there are similar questions with a confidence level higher than a threshold; and 响应于存在置信度高于阈值的相似问题,将所述相似问题按顺序展示给用户。Responsive to the presence of similar questions with a confidence level higher than a threshold, the similar questions are presented to the user in order. 2.根据权利要求1所述的方法,其特征在于,所述对所述文本进行处理包括:2. The method according to claim 1, wherein said processing said text comprises: 对所述文本进行分词得到第一结果,对所述第一结果进行停用词或无意义词检测以删除所述第一结果中的停用词或无意义词。Word segmentation is performed on the text to obtain a first result, and stop words or nonsense words are detected on the first result to delete stop words or nonsense words in the first result. 3.根据权利要求1所述的方法,其特征在于,所述对所述文本进行处理包括:3. The method according to claim 1, wherein said processing said text comprises: 通过将所述文本与预先设置的内容进行比对以对所述文本中不合法部分进行过滤。The illegal part in the text is filtered by comparing the text with the preset content. 4.根据权利要求1所述的方法,其特征在于,所述方法还包括:4. The method according to claim 1, wherein the method further comprises: 响应于所述文本与预设关键词匹配成功,直接返回所述预设关键词相对应的答复内容。In response to the text being successfully matched with the preset keyword, the reply content corresponding to the preset keyword is returned directly. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 响应于每次完成查询,根据当次查询结果将对应查询主题的分数加一,并根据分数的高低对查询主题进行排序以形成下一次对用户的推荐结果。In response to completing each query, the score of the corresponding query topic is increased by one according to the current query result, and the query topics are sorted according to the scores to form the next recommendation result for the user. 6.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, further comprising: 设置过期时间,响应于每次查询结果的持续时间超过所述过期时间,将所述查询结果对应查询主题的分数减一。An expiration time is set, and in response to the duration of each query result exceeding the expiration time, the score of the query result corresponding to the query subject is reduced by one. 7.根据权利要求1所述的方法,其特征在于,所述方法还包括:7. The method according to claim 1, further comprising: 响应于检测到菜单数据的增量变化,向自然语言处理服务端推送菜单名称的数据以更新所述词典数据。In response to detecting the incremental change of the menu data, push the data of the menu name to the natural language processing server to update the dictionary data. 8.一种菜单快速查询的系统,其特征在于,包括:8. A quick search system for menus, comprising: 处理模块,配置用于响应于接收到用户输入的文本,对所述文本进行处理;a processing module configured to process the text in response to receiving the text input by the user; 推理模块,配置用于根据处理后的文本通过词典进行相似问题推理,得到每个相似问题的置信度,并根据置信度的高低进行排序;The reasoning module is configured to perform similar problem reasoning through the dictionary according to the processed text, obtain the confidence degree of each similar problem, and sort according to the level of confidence; 判断模块,配置用于判断是否存在置信度高于阈值的相似问题;以及A judging module configured to judge whether there is a similar problem with a confidence level higher than a threshold; and 展示模块,配置用于响应于存在置信度高于阈值的相似问题,将所述相似问题按顺序展示给用户。The presenting module is configured to display the similar questions to the user in sequence in response to the presence of similar questions with a confidence level higher than a threshold. 9.一种计算机设备,其特征在于,包括:9. A computer device, comprising: 至少一个处理器;以及at least one processor; and 存储器,所述存储器存储有可在所述处理器上运行的计算机指令,所述指令由所述处理器执行时实现权利要求1-7任意一项所述方法的步骤。A memory, the memory stores computer instructions operable on the processor, and the steps of the method according to any one of claims 1-7 are implemented when the instructions are executed by the processor. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-7任意一项所述方法的步骤。10. A computer-readable storage medium, the computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the steps of the method according to any one of claims 1-7 are implemented.
CN202211726017.6A 2022-12-30 2022-12-30 Method, system, device and storage medium for fast menu query Pending CN116050426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211726017.6A CN116050426A (en) 2022-12-30 2022-12-30 Method, system, device and storage medium for fast menu query

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211726017.6A CN116050426A (en) 2022-12-30 2022-12-30 Method, system, device and storage medium for fast menu query

Publications (1)

Publication Number Publication Date
CN116050426A true CN116050426A (en) 2023-05-02

Family

ID=86124892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211726017.6A Pending CN116050426A (en) 2022-12-30 2022-12-30 Method, system, device and storage medium for fast menu query

Country Status (1)

Country Link
CN (1) CN116050426A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107993724A (en) * 2017-11-09 2018-05-04 易保互联医疗信息科技(北京)有限公司 A kind of method and device of medicine intelligent answer data processing
US20180373782A1 (en) * 2017-06-27 2018-12-27 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for recommending answer to question based on artificial intelligence
CN111797214A (en) * 2020-06-24 2020-10-20 深圳壹账通智能科技有限公司 Question screening method, device, computer equipment and medium based on FAQ database
WO2021093755A1 (en) * 2019-11-14 2021-05-20 华为技术有限公司 Matching method and apparatus for questions, and reply method and apparatus for questions
CN113590783A (en) * 2021-07-28 2021-11-02 复旦大学 Traditional Chinese medicine health-preserving intelligent question-answering system based on NLP natural language processing
CN113704444A (en) * 2021-10-28 2021-11-26 江西中业智能科技有限公司 Question-answering method, system, equipment and storage medium based on natural language processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180373782A1 (en) * 2017-06-27 2018-12-27 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for recommending answer to question based on artificial intelligence
CN107993724A (en) * 2017-11-09 2018-05-04 易保互联医疗信息科技(北京)有限公司 A kind of method and device of medicine intelligent answer data processing
WO2021093755A1 (en) * 2019-11-14 2021-05-20 华为技术有限公司 Matching method and apparatus for questions, and reply method and apparatus for questions
CN111797214A (en) * 2020-06-24 2020-10-20 深圳壹账通智能科技有限公司 Question screening method, device, computer equipment and medium based on FAQ database
CN113590783A (en) * 2021-07-28 2021-11-02 复旦大学 Traditional Chinese medicine health-preserving intelligent question-answering system based on NLP natural language processing
CN113704444A (en) * 2021-10-28 2021-11-26 江西中业智能科技有限公司 Question-answering method, system, equipment and storage medium based on natural language processing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
齐翌辰;王森淼;赵亚慧;: "基于倒排索引的问答系统的设计与实现", 教育教学论坛, no. 35, 16 August 2018 (2018-08-16) *

Similar Documents

Publication Publication Date Title
US12147732B2 (en) Analyzing graphical user interfaces to facilitate automatic interaction
KR102288249B1 (en) Information processing method, terminal, and computer storage medium
JP6667504B2 (en) Orphan utterance detection system and method
US20230273776A1 (en) Code Processing Method and Apparatus, Device, and Medium
US9639601B2 (en) Question answering system adapted to style of user requests
US9524291B2 (en) Visual display of semantic information
US9424524B2 (en) Extracting facts from unstructured text
US11586689B2 (en) Electronic apparatus and controlling method thereof
CN119149789A (en) Analyzing web pages to facilitate automatic navigation
US20130246392A1 (en) Conversational System and Method of Searching for Information
CN107797984A (en) Intelligent interactive method, equipment and storage medium
JP2005537532A (en) Comprehensive development tool for building natural language understanding applications
JP2015511746A5 (en)
CN113392195A (en) Public opinion monitoring method and device, electronic equipment and storage medium
CN108763202A (en) Method, apparatus, equipment and the readable storage medium storing program for executing of the sensitive text of identification
WO2025000835A9 (en) Instruction execution method and apparatus based on language model, and storage medium
CN116974554A (en) Code data processing method, apparatus, computer device and storage medium
US20140180676A1 (en) Named entity variations for multimodal understanding systems
KR102307380B1 (en) Natural language processing based call center support system and method
CN112732969A (en) Image semantic analysis method and device, storage medium and electronic equipment
CN114338586A (en) Message pushing method and device, electronic equipment and storage medium
CN116050426A (en) Method, system, device and storage medium for fast menu query
CN117313675A (en) Text modification method, apparatus, computer device and computer readable storage medium
CN114328936B (en) Method and device for establishing classification model
CN117009170A (en) Training sample generation method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination