[go: up one dir, main page]

CN113553843B - Skill creation methods and devices - Google Patents

Skill creation methods and devices Download PDF

Info

Publication number
CN113553843B
CN113553843B CN202110706140.0A CN202110706140A CN113553843B CN 113553843 B CN113553843 B CN 113553843B CN 202110706140 A CN202110706140 A CN 202110706140A CN 113553843 B CN113553843 B CN 113553843B
Authority
CN
China
Prior art keywords
skill
corpus
original
skills
word
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.)
Active
Application number
CN202110706140.0A
Other languages
Chinese (zh)
Other versions
CN113553843A (en
Inventor
李桂桥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110706140.0A priority Critical patent/CN113553843B/en
Publication of CN113553843A publication Critical patent/CN113553843A/en
Application granted granted Critical
Publication of CN113553843B publication Critical patent/CN113553843B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis
    • G06F40/35Discourse or dialogue representation
    • 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
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention discloses a skill creation method and a skill creation device. Wherein the method comprises the following steps: acquiring original skill corpus, wherein the original skill corpus is corpus for waking up non-called word skills, and the non-called word skills are skills which do not need to be woken up by using called words; identifying at least one slot of the skill corpus, and acquiring a replacement word of each slot; filling the groove into the original skill corpus by using the replacement words based on the groove position to obtain a target skill corpus; performing conflict test on the target skill corpus to obtain a first test result, and completing creation of non-calling word skills in the development platform under the condition that the first test result is that the target skill corpus is not in conflict. The invention solves the technical problem that the interaction steps are complicated due to the adoption of the call word awakening skill in the related technology, thereby reducing the user experience.

Description

技能创建方法和装置Skill creation methods and devices

技术领域Technical field

本发明涉及技能创建领域,具体而言,涉及一种技能创建方法和装置。The present invention relates to the field of skill creation, and specifically to a skill creation method and device.

背景技术Background technique

目前,NPL(自然语言处理,Natural Language Processing)系统只能将一条语料给到一个业务,如果开放平台可任意添加语料指向自己的业务,将导致NLP逻辑混乱,出现大量抢走平台语料和分类错误的问题,针对于该问题,一般是通过增加调用词来对语料进行约束,即用户只有说出打开调用词、启动调用词等方式才能进入到技能,并且调用词是平台唯一的不可冲突语料。At present, the NPL (Natural Language Processing) system can only give one piece of corpus to one business. If the open platform can add corpora at will to point to its own business, it will lead to confusion in the NLP logic, and a large number of corpora will be stolen from the platform and classification errors will occur. To solve this problem, the corpus is generally constrained by adding call words, that is, the user can only enter the skill by speaking the opening call word, starting the call word, etc., and the call word is the only non-conflicting corpus on the platform.

但是,目前采用调用词对语料进行约束的方式需要用户输入调用词之后才能唤醒技能,其交互步骤比较繁琐,从而降低了用户体验。However, the current method of using call words to constrain the corpus requires the user to input the call words before the skill can be awakened. The interaction steps are relatively cumbersome, thus reducing the user experience.

针对上述的问题,目前尚未提出有效的解决方案。In response to the above problems, no effective solution has yet been proposed.

发明内容Contents of the invention

本发明实施例提供了一种技能创建方法和装置,以至少解决相关技术中采用调用词唤醒技能导致交互步骤繁琐,从而降低了用户体验的技术问题。Embodiments of the present invention provide a skill creation method and device to at least solve the technical problem in related technologies that using invocation words to wake up skills results in cumbersome interaction steps, thereby reducing user experience.

根据本发明实施例的一个方面,提供了一种技能创建方法,包括:获取原始技能语料,其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能;识别技能语料的至少一个槽位,并获取每个槽位的替换词;基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料;对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建。According to one aspect of an embodiment of the present invention, a skill creation method is provided, including: obtaining original skill corpus, where the original skill corpus is corpus that awakens non-calling word skills, and the non-calling word skills are those that do not need to be awakened using calling words. Skills; identify at least one slot of the skill corpus and obtain the replacement word for each slot; based on the slot, use the replacement words to fill the slots of the original skill corpus to obtain the target skill corpus; perform a conflict test on the target skill corpus and obtain The first test result, and when the first test result is that there is no conflict in the target skill corpus, the creation of the non-calling word skill is completed in the development platform.

可选地,在获取原始技能语料之前,该方法还包括:根据技能创建指令开始创建非调用词技能,其中,技能创建指令中包括如下至少之一:技能名称、技能类型;根据意图创建指令创建非调用词技能的意图,其中,意图创建指令包括如下至少之一:意图名称、用户语句;基于意图获取原始技能语料。Optionally, before obtaining the original skill corpus, the method also includes: starting to create a non-calling word skill according to the skill creation instruction, wherein the skill creation instruction includes at least one of the following: skill name, skill type; creating according to the intention creation instruction The intention of the non-calling word skill, where the intention creation instruction includes at least one of the following: intention name, user statement; and obtaining the original skill corpus based on the intention.

可选地,识别技能语料的至少一个槽位,并获取每个槽位的替换词,包括:识别技能语料的至少一个槽位;获取每个槽位对应的字典;从每个槽位对应的字典中抽取预设数量的替换词。Optionally, identifying at least one slot of the skill corpus and obtaining a replacement word for each slot includes: identifying at least one slot of the skill corpus; obtaining a dictionary corresponding to each slot; and obtaining a dictionary corresponding to each slot. Extracts a preset number of replacement words from the dictionary.

可选地,基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料,包括:利用预设数量的替换词对原始技能语料进行填槽,得到至少一个目标技能语料。Optionally, based on the slot, using replacement words to fill the slots of the original skill corpus to obtain the target skill corpus includes: using a preset number of replacement words to fill the slots of the original skill corpus to obtain at least one target skill corpus.

可选地,在第一测试结果为目标技能语料存在冲突的情况下,反馈更改请求,其中,更改请求用于提示用户对原始技能语料进行编辑;接收编辑完成指令,基于编辑完成指令执行获取原始技能语料的步骤。Optionally, when the first test result is that the target skill corpus conflicts, a change request is fed back, where the change request is used to prompt the user to edit the original skill corpus; the editing completion instruction is received, and the original is obtained based on the editing completion instruction. Skill corpus steps.

可选地,在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建之后,该方法还包括:在应用平台中对目标技能语料进行冲突测试,得到第二测试结果;在第二测试结果为目标技能语料没有冲突的情况下,对创建的非调用词技能进行规范审核;在规范审核通过的情况下,在应用平台中上线非调用词技能。Optionally, when the first test result is that there is no conflict in the target skill corpus, after completing the creation of the non-calling word skills in the development platform, the method also includes: performing a conflict test on the target skill corpus in the application platform, and obtain Second test result; if the second test result shows that there is no conflict in the target skill corpus, conduct a standard review on the created non-call word skills; if the standard review is passed, the non-call word skills will be launched on the application platform.

可选地,在第二测试结果为目标技能语料存在冲突的情况下,禁止在应用平台中上线非调用词技能。Optionally, if the second test result is that there is a conflict in the target skill corpus, it is prohibited to launch non-calling word skills in the application platform.

根据本发明实施例的另一方面,还提供了一种技能创建装置,包括:第一获取模块,用于获取原始技能语料,其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能;识别模块,用于识别技能语料的至少一个槽位,并获取每个槽位的替换词;填槽模块,用于基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料;第一测试模块,用于对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建。According to another aspect of the embodiment of the present invention, a skill creation device is also provided, including: a first acquisition module for acquiring original skill corpus, where the original skill corpus is corpus for awakening non-calling word skills, and the non-calling word Skills are skills that do not need to be awakened by calling words; the identification module is used to identify at least one slot of the skill corpus and obtain the replacement words for each slot; the slot filling module is used to use replacement words to compare the original words based on the slot. The skill corpus is filled in to obtain the target skill corpus; the first test module is used to conduct a conflict test on the target skill corpus to obtain the first test result, and when the first test result shows that there is no conflict in the target skill corpus, the development The creation of non-calling word skills has been completed in the platform.

可选地,该装置还包括:第一创建模块,用于根据技能创建指令开始创建非调用词技能,其中,技能创建指令中包括如下至少之一:技能名称、技能类型;第二创建模块,用于根据意图创建指令创建非调用词技能的意图,其中,意图创建指令包括如下至少之一:意图名称、用户语句;第二获取模块,用于基于意图获取原始技能语料。Optionally, the device further includes: a first creation module, configured to start creating a non-calling word skill according to a skill creation instruction, wherein the skill creation instruction includes at least one of the following: skill name, skill type; a second creation module, Used to create an intention for a non-calling word skill based on an intention creation instruction, wherein the intention creation instruction includes at least one of the following: an intention name, a user statement; and a second acquisition module for acquiring original skill corpus based on the intention.

可选地,识别模块,包括:识别单元,用于识别技能语料的至少一个槽位;获取单元,用于获取每个槽位对应的字典;抽取单元,用于从每个槽位对应的字典中抽取预设数量的替换词。Optionally, the identification module includes: an identification unit, used to identify at least one slot of the skill corpus; an acquisition unit, used to obtain the dictionary corresponding to each slot; and an extraction unit, used to extract the dictionary corresponding to each slot from Extract a preset number of replacement words from .

可选地,填槽模块,包括:填槽单元,用于利用预设数量的替换词对原始技能语料进行填槽,得到至少一个目标技能语料。Optionally, the slot-filling module includes: a slot-filling unit, used to fill slots in the original skill corpus using a preset number of replacement words to obtain at least one target skill corpus.

可选地,该装置还包括:反馈模块,用于在第一测试结果为目标技能语料存在冲突的情况下,反馈更改请求,其中,更改请求用于提示用户对原始技能语料进行编辑;接收编辑完成指令,基于编辑完成指令执行获取原始技能语料的步骤。Optionally, the device also includes: a feedback module, used to feedback a change request when the first test result is that the target skill corpus conflicts, wherein the change request is used to prompt the user to edit the original skill corpus; receive the edit Complete the instruction and execute the steps of obtaining the original skill corpus based on the editing completion instruction.

可选地,该装置还包括:第二测试模块,用于在应用平台中对目标技能语料进行冲突测试,得到第二测试结果;审核模块,用于在第二测试结果为目标技能语料没有冲突的情况下,对创建的非调用词技能进行规范审核;上线模块,用于在规范审核通过的情况下,在应用平台中上线非调用词技能。Optionally, the device also includes: a second test module, used to perform a conflict test on the target skill corpus in the application platform, and obtain a second test result; and an audit module, used to test the target skill corpus without conflict when the second test result is In the case of standard review, the created non-call word skills will be reviewed in a standardized way; the online module is used to launch the non-call word skills in the application platform if the standard review is passed.

可选地,该装置还包括:禁止模块,用于在第二测试结果为目标技能语料存在冲突的情况下,禁止在应用平台中上线非调用词技能。Optionally, the device further includes: a prohibition module configured to prohibit the non-calling word skills from being launched in the application platform when the second test result is that the target skill corpus conflicts.

根据本发明实施例的另一方面,还提供了一种计算机可读存储介质,计算机可读存储介质包括存储的程序,其中,在程序运行时控制计算机可读存储介质所在设备执行上述的技能创建方法。According to another aspect of the embodiment of the present invention, a computer-readable storage medium is also provided. The computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to perform the above-mentioned skill creation. method.

根据本发明实施例的另一方面,还提供了一种处理器,处理器用于运行程序,其中,程序运行时执行上述的技能创建方法。According to another aspect of the embodiment of the present invention, a processor is also provided, and the processor is configured to run a program, wherein the above-mentioned skill creation method is executed when the program is running.

在本发明实施例中,可以先获取原始技能语料,其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能;然后识别技能语料的至少一个槽位,并获取每个槽位的替换词;基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料;最后对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建,实现了非调用词技能的创建,使得用户可以不需要调用词就能调用到所需要的技能,并且通过冲突测试可以避免多个语料之间发生冲突从而导致逻辑混乱,进而解决了相关技术中采用调用词唤醒技能导致交互步骤繁琐,从而降低了用户体验的技术问题。In the embodiment of the present invention, the original skill corpus can be obtained first, where the original skill corpus is the corpus for awakening non-calling word skills, and the non-calling word skills are skills that do not need to be awakened by calling words; then at least one slot of the skill corpus is identified position, and obtain the replacement words for each slot; based on the slot, use the replacement words to fill the slots of the original skill corpus to obtain the target skill corpus; finally, conduct a conflict test on the target skill corpus, and obtain the first test result, and in the When the test result shows that there is no conflict in the target skill corpus, the creation of non-calling word skills is completed in the development platform, and the creation of non-calling word skills is realized, so that users can call the required skills without calling words. And through conflict testing, conflicts between multiple corpora can be avoided, resulting in logical confusion, and the technical problem of using word awakening skills in related technologies to cause cumbersome interaction steps and thus reducing user experience can be solved.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present invention and constitute a part of this application. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached picture:

图1是根据本发明实施例的一种技能创建方法的流程图;Figure 1 is a flow chart of a skill creation method according to an embodiment of the present invention;

图2是根据本发明实施例的另一种技能创建方法的流程图;Figure 2 is a flow chart of another skill creation method according to an embodiment of the present invention;

图3是根据本发明实施例的一种编辑语料的示意图;Figure 3 is a schematic diagram of editing corpus according to an embodiment of the present invention;

图4是根据本发明实施例的一种开发者冲突测试的示意图;Figure 4 is a schematic diagram of a developer conflict test according to an embodiment of the present invention;

图5是根据本发明实施例的一种技能创建装置的示意图;Figure 5 is a schematic diagram of a skill creation device according to an embodiment of the present invention;

图6是根据本发明实施例的一种数据请求的处理方法的计算机终端的硬件结构框图。Figure 6 is a hardware structure block diagram of a computer terminal according to a data request processing method according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein are capable of being practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.

实施例1Example 1

根据本发明实施例,提供了一种技能创建方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of a skill creation method is provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although A logical order is shown in the flowcharts, but in some cases, the steps shown or described may be performed in a different order than herein.

图1是根据本发明实施例的一种技能创建方法的流程图,如图1所示,该方法包括如下步骤:Figure 1 is a flow chart of a skill creation method according to an embodiment of the present invention. As shown in Figure 1, the method includes the following steps:

步骤S102,获取原始技能语料。Step S102: Obtain original skill corpus.

其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能。Among them, the original skill corpus is the corpus that awakens non-calling word skills, and the non-calling word skills are skills that do not need to be awakened by calling words.

上述的原始技能语料可以是开发者自行输入的可以唤醒技能的语料,例如“在北京香蕉皮是什么垃圾”。The above-mentioned original skill corpus can be the corpus input by the developer to awaken the skills, such as "What kind of garbage are banana peels in Beijing?"

在一种可选的实施例中,可以根据非调用词技能的名称、意图从数据库中调取原始技能语料,还可以利用从网页中爬取到原始技能语料。In an optional embodiment, the original skill corpus can be retrieved from the database according to the name and intention of the non-calling word skill, or the original skill corpus can be crawled from the web page.

上述的非调用词技能不需要使用调用词进行唤醒,其只需要用户输入的内容命中技能语料即可。The above-mentioned non-call word skills do not need to use call words to awaken, they only need the content input by the user to hit the skill corpus.

上述的技能创建方法可以应用在语音对话平台或者语音交互平台中。The above skill creation method can be applied in a voice dialogue platform or a voice interaction platform.

步骤S104,识别技能语料的至少一个槽位,并获取每个槽位的替换词。Step S104: Identify at least one slot of the skill corpus and obtain a replacement word for each slot.

可以利用预先训练好的槽位识别模型识别出技能语料中的至少一个槽位。At least one slot in the skill corpus can be identified using a pre-trained slot recognition model.

在一种可选的实施例中,在识别出技能语料的至少一个槽位后,可以将至少一个槽位进行标记,并根据该槽位中的词语确定与该槽位关联的词典,从词典中获取到该槽位的至少一个替换词。In an optional embodiment, after identifying at least one slot of the skill corpus, at least one slot can be marked, and a dictionary associated with the slot can be determined based on the words in the slot, and the dictionary can be obtained from the dictionary Get at least one replacement word for this slot.

示例性的,“在北京香蕉皮是什么垃圾”中的槽位为“北京”和“香蕉皮”,其中,“北京”对应的词典为地点,而“香蕉皮”对应的词典为垃圾,因此,可以从地点的词典中选取多个替换词用于填槽,同时还可以从垃圾的词典中选取多个替换词用于填槽。需要说明的是,每个槽位的替换词可以自由组合。For example, the slots in "What kind of garbage are banana peels in Beijing" are "Beijing" and "banana peel", where the dictionary corresponding to "Beijing" is location, and the dictionary corresponding to "banana peel" is garbage, so , you can select multiple replacement words from the location dictionary to fill the slots, and you can also select multiple replacement words from the garbage dictionary to fill the slots. It should be noted that the replacement words for each slot can be freely combined.

步骤S106,基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料。Step S106: Based on the slots, use replacement words to fill the slots of the original skill corpus to obtain the target skill corpus.

在一种可选的实施例中,可以根据槽位,利用替换词对原始技能语料进行填槽,以得到槽位中包含有替换词的目标技能语料。In an optional embodiment, the original skill corpus can be filled with replacement words according to the slots to obtain the target skill corpus containing the replacement words in the slots.

在另一种可选的实施例中,可以将每个槽位的多个替换词进行自由组合,根据组合后的替换词组对原始技能原料中对应的槽位进行填槽,从而得到多个目标技能语料。In another optional embodiment, multiple replacement words for each slot can be freely combined, and the corresponding slots in the original skill raw materials can be filled according to the combined replacement words, thereby obtaining multiple targets. Skill corpus.

步骤S108,对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建。Step S108: Perform a conflict test on the target skill corpus to obtain a first test result. If the first test result shows that there is no conflict in the target skill corpus, the creation of the non-calling word skill is completed in the development platform.

上述的冲突测试指的是目标技能语料是否与其他的非调用词技能中的技能语料产生冲突,若与其他非调用词技能中的技能语料产生冲突,则会使非调用词唤醒技能的逻辑出现错误,比如,采用同一技能语料可能会同时唤醒两个非调用技能。The above conflict test refers to whether the target skill corpus conflicts with the skill corpus in other non-calling word skills. If it conflicts with the skill corpus in other non-calling word skills, the logic of non-calling word awakening skills will appear. Error, for example, using the same skill corpus may awaken two non-calling skills at the same time.

在一种可选的实施例中,在第一测试结果为目标技能语料没有冲突的情况下,说明该目标技能语料与其他的非调用词技能的技能语料不相同,此时,可以确定目标技能语料仅能唤醒该非调用词技能,无法唤醒其他的非调用词技能,避免了逻辑出现问题,因此,可以在开发平台中完成非调用词技能的创建。In an optional embodiment, when the first test result is that there is no conflict in the target skill corpus, it means that the target skill corpus is different from the skill corpus of other non-calling word skills. At this time, the target skill can be determined The corpus can only awaken the non-calling word skill and cannot awaken other non-calling word skills, which avoids logic problems. Therefore, the creation of non-calling word skills can be completed in the development platform.

通过上述步骤,可以先获取原始技能语料,其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能;然后识别技能语料的至少一个槽位,并获取每个槽位的替换词;基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料;最后对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建,实现了非调用词技能的创建,使得用户可以不需要调用词就能调用到所需要的技能,并且通过冲突测试可以避免多个语料之间发生冲突从而导致逻辑混乱,进而解决了相关技术中采用调用词唤醒技能导致交互步骤繁琐,从而降低了用户体验的技术问题。Through the above steps, you can first obtain the original skill corpus, where the original skill corpus is the corpus for awakening non-calling word skills, and the non-calling word skills are skills that do not need to be awakened by calling words; then identify at least one slot of the skill corpus, and Obtain the replacement words for each slot; based on the slot, use the replacement words to fill the slots of the original skill corpus to obtain the target skill corpus; finally conduct a conflict test on the target skill corpus to obtain the first test result, and in the first test result When there is no conflict in the target skill corpus, the creation of non-calling word skills is completed in the development platform, and the creation of non-calling word skills is realized, so that users can call the required skills without calling words, and through conflicts Testing can avoid conflicts between multiple corpora that lead to logical confusion, thereby solving the technical problem of using word wake-up skills in related technologies that leads to cumbersome interaction steps and thus reduces user experience.

可选地,在获取原始技能语料之前,该方法还包括:根据技能创建指令开始创建非调用词技能,其中,技能创建指令中包括如下至少之一:技能名称、技能类型;根据意图创建指令创建非调用词技能的意图,其中,意图创建指令包括如下至少之一:意图名称、用户语句;基于意图获取原始技能语料。Optionally, before obtaining the original skill corpus, the method also includes: starting to create a non-calling word skill according to the skill creation instruction, wherein the skill creation instruction includes at least one of the following: skill name, skill type; creating according to the intention creation instruction The intention of the non-calling word skill, where the intention creation instruction includes at least one of the following: intention name, user statement; and obtaining the original skill corpus based on the intention.

在一种可选的实施例中,在获取原始技能语料之前,用户可以在技能开发平台中点击技能创建的按钮,并输入需要创建的非调用词技能的技能名称、技能类型,在填写完成后可以点击确定按钮,此时可以生成技能创建指令,并根据技能创建指令开始创建非调用词技能。In an optional embodiment, before obtaining the original skill corpus, the user can click the skill creation button in the skill development platform and enter the skill name and skill type of the non-calling word skill that needs to be created. After completing the filling in You can click the OK button. At this time, the skill creation instructions can be generated and the non-call word skills can be created according to the skill creation instructions.

进一步地,在开始创建非调用技能之后,可以显示技能创建按钮,此时,用户可以点击该技能创建按钮,并在点击技能创建按钮之后输入该非调用词技能的技能名称、技能类型,在填写完成之后可点击确定按钮,此时可以生成有意图创建指令,并根据该意图创建指令开始获取该非调用技能的原始技能语料。Further, after starting to create a non-calling skill, a skill creation button can be displayed. At this time, the user can click the skill creation button, and after clicking the skill creation button, enter the skill name and skill type of the non-calling skill, and fill in the After completion, you can click the OK button. At this time, you can generate an intentional creation instruction, and start to obtain the original skill corpus of the non-calling skill based on the intentional creation instruction.

在另一种可选的实施例中,可以根据意图从数据库中或者网页中获取与该意图相关的原始技能语料。In another optional embodiment, the original skill corpus related to the intention can be obtained from the database or the web page according to the intention.

可选地,识别技能语料的至少一个槽位,并获取每个槽位的替换词,包括:识别技能语料的至少一个槽位;获取每个槽位对应的字典;从每个槽位对应的字典中抽取预设数量的替换词。Optionally, identifying at least one slot of the skill corpus and obtaining a replacement word for each slot includes: identifying at least one slot of the skill corpus; obtaining a dictionary corresponding to each slot; and obtaining a dictionary corresponding to each slot. Extracts a preset number of replacement words from the dictionary.

上述的字典可以由用户自行编辑,其中,字典可以由开发平台提供。The above dictionary can be edited by the user, and the dictionary can be provided by the development platform.

上述的预设数量可以为10。The above preset number can be 10.

在一种可选的实施例中,可以识别技能语料的多个槽位,获取到每个槽位对应的字典,然后从每个槽位对应的字典中抽取到预设数量的替换词,并将每个槽位中抽取出的替换词进行自由组合。In an optional embodiment, multiple slots of the skill corpus can be identified, the dictionary corresponding to each slot is obtained, and then a preset number of replacement words are extracted from the dictionary corresponding to each slot, and Freely combine the replacement words extracted from each slot.

可选地,基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料,包括:利用预设数量的替换词对原始技能语料进行填槽,得到至少一个目标技能语料。Optionally, based on the slot, using replacement words to fill the slots of the original skill corpus to obtain the target skill corpus includes: using a preset number of replacement words to fill the slots of the original skill corpus to obtain at least one target skill corpus.

在一种可选的实施例中,将每个槽位中预设数量的替换词进行自由组合,得到替换词组,然后利用替换词组的替换词给对原始技能语料中对应的槽位进行填槽,得到至少一个目标技能语料。In an optional embodiment, a preset number of replacement words in each slot are freely combined to obtain a replacement phrase, and then the replacement words of the replacement phrase are used to fill the corresponding slots in the original skill corpus. , get at least one target skill corpus.

可选地,在第一测试结果为目标技能语料存在冲突的情况下,反馈更改请求,其中,更改请求用于提示用户对原始技能语料进行编辑;接收编辑完成指令,基于编辑完成指令执行获取原始技能语料的步骤。Optionally, when the first test result is that the target skill corpus conflicts, a change request is fed back, where the change request is used to prompt the user to edit the original skill corpus; the editing completion instruction is received, and the original is obtained based on the editing completion instruction. Skill corpus steps.

在一种可选的实施例中,在目标技能语料产生冲突的情况下,可以向用户反馈更改请求,以便用户可以根据更改请求对原始技能语料进行编辑,在编辑完之后,用户可以点击完成按钮,此时会生成一个编辑完成指令,接收该编辑完成指令,可以根据该编辑完成指令执行获取原始技能语料的步骤,并在此对该编辑后的原始技能语料进行冲突测试,直至原始技能语料不产生冲突。In an optional embodiment, when the target skill corpus conflicts, a change request can be fed back to the user so that the user can edit the original skill corpus according to the change request. After editing, the user can click the Finish button. , an editing completion command will be generated at this time. After receiving the editing completion command, you can perform the steps of obtaining the original skill corpus according to the editing completion command, and perform a conflict test on the edited original skill corpus until the original skill corpus is no longer Conflict arises.

可选地,在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建之后,该方法还包括:在应用平台中对目标技能语料进行冲突测试,得到第二测试结果;在第二测试结果为目标技能语料没有冲突的情况下,对创建的非调用词技能进行规范审核;在规范审核通过的情况下,在应用平台中上线非调用词技能。Optionally, when the first test result is that there is no conflict in the target skill corpus, after completing the creation of the non-calling word skills in the development platform, the method also includes: performing a conflict test on the target skill corpus in the application platform, and obtain Second test result; if the second test result shows that there is no conflict in the target skill corpus, conduct a standard review on the created non-call word skills; if the standard review is passed, the non-call word skills will be launched on the application platform.

在一种可选的实施例中,在开发平台中完成非调用词技能的创建之后,还可以在应用平台中对目标技能语料进行冲突测试,以再次保证该原始技能语料与其他的非调用技能的技能语料不产生冲突,避免逻辑出现错误,在第二测试结果为目标技能语料没有冲突的情况下,可以对创建的非调用技能进行规范审核,查看该非调用技能是否符合平台的其他规范,在规范审核通过的情况下,可以在应用平台上线该非调用技能,以便公开该非调用技能,方便用户使用。In an optional embodiment, after completing the creation of non-calling word skills in the development platform, a conflict test can also be performed on the target skill corpus in the application platform to once again ensure that the original skill corpus is consistent with other non-calling skills. There is no conflict in the skill corpus to avoid logic errors. When the second test result is that there is no conflict in the target skill corpus, the created non-calling skill can be reviewed to see if the non-calling skill complies with other specifications of the platform. If the standard review is passed, the non-calling skills can be launched on the application platform to make the non-calling skills public and convenient for users to use.

可选地,在第二测试结果为目标技能语料存在冲突的情况下,禁止在应用平台中上线非调用词技能。Optionally, if the second test result is that there is a conflict in the target skill corpus, it is prohibited to launch non-calling word skills in the application platform.

在一种可选的实施例中,在第二测试结果为目标技能语料存在冲突的情况下,说明其他的非调用技能中存在原始技能语料,此时,在应用平台中需要驳回创建的非调用技能,避免出现逻辑混乱。In an optional embodiment, when the second test result is that the target skill corpus conflicts, it means that the original skill corpus exists in other non-calling skills. At this time, the created non-calling skills need to be rejected in the application platform. skills to avoid logical confusion.

下面结合图2对本发明一种优选的实施例进行详细说明。A preferred embodiment of the present invention will be described in detail below with reference to FIG. 2 .

如图2所示为根据本发明实施例的一种技能创建的流程图,首先开发者在开发平台中开始创建技能,然后进行意图的创建,在意图创建完之后,开发者可以根据需要创建的技能和创建该技能的意图输入技能语料,并对该技能语料进行编辑,在编辑完技能语料时,可以对编辑的技能语料进行冲突测试,在产生冲突时,重新编辑该技能语料,直至在冲突测试中不产生冲突为止,就在开发平台中完成了技能的创建。此时,可以将创建好的技能提交至应用平台方进行审核,在平台方对该技能的语料再次进行冲突测试,在产生冲突时,直接驳回创建好的技能;在未产生冲突时,可以对该技能进行其他审核,例如,该技能的其他方面是否符合平台规范;在符合平台规范的情况下,在应用平台中上线该技能。Figure 2 shows a flow chart of skill creation according to an embodiment of the present invention. First, the developer starts to create the skill in the development platform, and then creates the intention. After the intention is created, the developer can create the skill as needed. Enter the skill corpus and the intention to create the skill, and edit the skill corpus. After editing the skill corpus, you can conduct a conflict test on the edited skill corpus. When a conflict occurs, re-edit the skill corpus until the conflict is resolved. Until no conflicts occur during testing, the creation of skills is completed in the development platform. At this time, the created skill can be submitted to the application platform for review, and the platform will conduct a conflict test on the corpus of the skill again. If a conflict occurs, the created skill will be directly rejected; if no conflict occurs, the skill can be This skill undergoes other reviews, for example, whether other aspects of the skill comply with platform specifications; if it complies with platform specifications, the skill will be launched on the application platform.

如图3所示为根据本发明实施例的一种编辑语料的示意图,首先开发者直接输入技能语料,例如“在北京香蕉皮是什么垃圾”,然后标记处该技能语料的槽位“北京”、“香蕉皮”,获取与该槽位关联的词典,例如“北京”可以关联“地点”的词典,“香蕉”可以关联“垃圾”的词典,这样利用“地点”词典中的“上海”和“垃圾”词典中的“餐巾纸”对技能语料进行填槽得到的“在上海餐巾纸是什么垃圾”也能命中技能。Figure 3 shows a schematic diagram of editing corpus according to an embodiment of the present invention. First, the developer directly inputs the skill corpus, such as "What kind of garbage are banana peels in Beijing?" and then marks the slot of the skill corpus "Beijing". , "Banana Peel", to obtain the dictionary associated with the slot. For example, "Beijing" can be associated with the dictionary of "Place", and "Banana" can be associated with the dictionary of "Garbage". In this way, "Shanghai" and "Shanghai" in the "Place" dictionary can be used The "napkin" in the "junk" dictionary is filled in the skill corpus and the "what kind of junk is a napkin in Shanghai" can also hit the skill.

需要说明的是,上述的词典是可以编辑的,其开发平台会进行提供。例如“地点”词典中包含中国省市地区。It should be noted that the above dictionary can be edited and will be provided by its development platform. For example, the "Place" dictionary contains provinces, cities and regions in China.

如图4所示为根据本发明实施例的一种开发者冲突测试的示意图,首先可以按照槽位随机从槽位中抽取10个词语来组合出若干的技能语料,然后将组合出的若干的技能语料通过接口模拟用户语音测试,并获取测试结果,其中,测试结果中包括实际命中的技能、NLP解析结果和回复语,当实际命中的技能处于开发平台开放的范围时,则标识为不冲突,当实际命中的技能处于开发平台开放的范围时,则标识为冲突。若发生冲突,则需要开发者自己更改语料,若没有发生冲突则可以申请上线,其中,在申请上线的时候,开发者可以填写该技能的信息,既可以申请上线提交审核。As shown in Figure 4 is a schematic diagram of a developer conflict test according to an embodiment of the present invention. First, 10 words can be randomly selected from the slots according to the slots to combine several skill corpora, and then the combined several words can be combined. The skill corpus simulates the user's voice test through the interface and obtains the test results. The test results include the actual hit skills, NLP parsing results and reply words. When the actual hit skills are within the open range of the development platform, they are marked as not conflicting. , when the actual hit skill is within the open range of the development platform, it is marked as a conflict. If a conflict occurs, the developer needs to change the corpus himself. If there is no conflict, he can apply for online. When applying for online, the developer can fill in the information of the skill, and can apply for online submission for review.

进一步地,在应用平台进行冲突测试时,与开发平台进行冲突测试的方式相同,此处不再赘述。Furthermore, when performing conflict testing on the application platform, the method for conducting conflict testing on the development platform is the same, and will not be described again here.

通过上述步骤,开发者编辑语料时后,可通过抽取槽位词典的方式组合出用户可以说的语料,进行冲突测试的时候,可以将组合出的技能语料用接口做测试,根据解析结果标注是否冲突,开放了非调用词技能,且可以控制非调用词技能的风险,从而在技能平台实现了非调用词技能。Through the above steps, after the developer edits the corpus, he or she can combine the corpus that the user can speak by extracting the slot dictionary. When performing conflict testing, the combined skill corpus can be tested using the interface, and whether it is marked according to the parsing results. Conflict opens up non-calling word skills and can control the risks of non-calling word skills, thus realizing non-calling word skills on the skills platform.

目前,使用调用词技能交互的方式如下:Currently, the way to interact with the Invoke Word skill is as follows:

在用户查个税技能的情况下,调用词的交互为:When the user checks personal tax skills, the interaction of the calling words is:

用户:“打开差个税”User: "Open personal tax difference"

语音助手:“欢迎来差个税”Voice assistant: "Welcome to pay personal tax"

用户:“在北京工资9000个税是多少?”User: "How much is the tax on a salary of 9,000 yuan in Beijing?"

语音助手:“在北京工资9000个税是180元”Voice assistant: "In Beijing, the income tax for a salary of 9,000 yuan is 180 yuan."

使用非调用词技能交互的方式如下:Here's how to interact with non-invocation word skills:

用户:“在北京工资9000个税是多少?”User: "How much is the tax on a salary of 9,000 yuan in Beijing?"

语音助手:“在北京工资9000个税是180元”Voice assistant: "In Beijing, the income tax for a salary of 9,000 yuan is 180 yuan."

因此,本申请可以开放平台可创建的技能能降低用户交互成本,减少交互轮数和交互时间,同时也可以减少用户的记忆成本,不需要用户记住调用词,直接说出自然语料即可命中技能,完成交互。Therefore, this application can open up the platform to create skills that can reduce user interaction costs, reduce the number of interaction rounds and interaction time, and can also reduce the user's memory cost. It does not require the user to remember the calling words, and the natural corpus can be hit directly by speaking skills to complete the interaction.

实施例2Example 2

根据本发明实施例,还提供了一种技能创建装置,该装置可以执行上述实施例中的技能创建方法,具体实现方式和优选应用场景与上述实施例相同,在此不做赘述。According to an embodiment of the present invention, a skill creation device is also provided, which can execute the skill creation method in the above embodiment. The specific implementation manner and preferred application scenarios are the same as those in the above embodiment, and will not be described again here.

图5是根据本发明实施例的一种技能创建装置的示意图,如图5所示,该装置包括:Figure 5 is a schematic diagram of a skill creation device according to an embodiment of the present invention. As shown in Figure 5, the device includes:

第一获取模块52,用于获取原始技能语料,其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能;The first acquisition module 52 is used to obtain original skill corpus, where the original skill corpus is corpus that awakens non-calling word skills, and non-calling word skills are skills that do not require the use of calling words to awaken;

识别模块54,用于识别技能语料的至少一个槽位,并获取每个槽位的替换词;The identification module 54 is used to identify at least one slot of the skill corpus and obtain the replacement word for each slot;

填槽模块56,用于基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料;The slot filling module 56 is used to fill the slots of the original skill corpus using replacement words based on the slots to obtain the target skill corpus;

第一测试模块58,用于对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建。The first test module 58 is used to conduct a conflict test on the target skill corpus, obtain the first test result, and complete the creation of the non-calling word skill in the development platform when the first test result shows that there is no conflict in the target skill corpus.

可选地,该装置还包括:第一创建模块,用于根据技能创建指令开始创建非调用词技能,其中,技能创建指令中包括如下至少之一:技能名称、技能类型;第二创建模块,用于根据意图创建指令创建非调用词技能的意图,其中,意图创建指令包括如下至少之一:意图名称、用户语句;第二获取模块,用于基于意图获取原始技能语料。Optionally, the device further includes: a first creation module, configured to start creating a non-calling word skill according to a skill creation instruction, wherein the skill creation instruction includes at least one of the following: skill name, skill type; a second creation module, Used to create an intention for a non-calling word skill based on an intention creation instruction, wherein the intention creation instruction includes at least one of the following: an intention name, a user statement; and a second acquisition module for acquiring original skill corpus based on the intention.

可选地,识别模块,包括:识别单元,用于识别技能语料的至少一个槽位;获取单元,用于获取每个槽位对应的字典;抽取单元,用于从每个槽位对应的字典中抽取预设数量的替换词。Optionally, the identification module includes: an identification unit, used to identify at least one slot of the skill corpus; an acquisition unit, used to obtain the dictionary corresponding to each slot; and an extraction unit, used to extract the dictionary corresponding to each slot from Extract a preset number of replacement words from .

可选地,填槽模块,包括:填槽单元,用于利用预设数量的替换词对原始技能语料进行填槽,得到至少一个目标技能语料。Optionally, the slot-filling module includes: a slot-filling unit, used to fill slots in the original skill corpus using a preset number of replacement words to obtain at least one target skill corpus.

可选地,该装置还包括:反馈模块,用于在第一测试结果为目标技能语料存在冲突的情况下,反馈更改请求,其中,更改请求用于提示用户对原始技能语料进行编辑;接收编辑完成指令,基于编辑完成指令执行获取原始技能语料的步骤。Optionally, the device also includes: a feedback module, used to feedback a change request when the first test result is that the target skill corpus conflicts, wherein the change request is used to prompt the user to edit the original skill corpus; receive the edit Complete the instruction and execute the steps of obtaining the original skill corpus based on the editing completion instruction.

可选地,该装置还包括:第二测试模块,用于在应用平台中对目标技能语料进行冲突测试,得到第二测试结果;审核模块,用于在第二测试结果为目标技能语料没有冲突的情况下,对创建的非调用词技能进行规范审核;上线模块,用于在规范审核通过的情况下,在应用平台中上线非调用词技能。Optionally, the device also includes: a second test module, used to perform a conflict test on the target skill corpus in the application platform, and obtain a second test result; and an audit module, used to test the target skill corpus without conflict when the second test result is In the case of standard review, the created non-call word skills will be reviewed in a standardized way; the online module is used to launch the non-call word skills in the application platform if the standard review is passed.

可选地,该装置还包括:禁止模块,用于在第二测试结果为目标技能语料存在冲突的情况下,禁止在应用平台中上线非调用词技能。Optionally, the device further includes: a prohibition module configured to prohibit the non-calling word skills from being launched in the application platform when the second test result is that the target skill corpus conflicts.

本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,上述程序运行时执行上述任一项的方法。Embodiments of the present invention also provide a storage medium, which includes a stored program that performs any of the above methods when the program is run.

可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Optionally, in this embodiment, the above-mentioned storage medium may be configured to store program codes for performing the following steps:

S1、获取原始技能语料,其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能;S1. Obtain the original skill corpus, where the original skill corpus is the corpus for awakening non-calling word skills, and the non-calling word skills are skills that do not require the use of calling words to awaken;

S2、识别技能语料的至少一个槽位,并获取每个槽位的替换词;S2. Identify at least one slot of the skill corpus and obtain the replacement word for each slot;

S3、基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料;S3. Based on the slot, use replacement words to fill the slots of the original skill corpus to obtain the target skill corpus;

S4、对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建。S4. Conduct a conflict test on the target skill corpus, obtain the first test result, and complete the creation of the non-call word skill in the development platform when the first test result shows that there is no conflict in the target skill corpus.

本发明实施例还提供一种电子装置,包括存储器和处理器,该存储器中存储由计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present invention also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.

可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。Optionally, the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.

可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the above-mentioned processor may be configured to perform the following steps through a computer program:

S1、获取原始技能语料,其中,原始技能语料为唤醒非调用词技能的语料,非调用词技能为不需要使用调用词唤醒的技能;S1. Obtain the original skill corpus, where the original skill corpus is the corpus for awakening non-calling word skills, and the non-calling word skills are skills that do not require the use of calling words to awaken;

S2、识别技能语料的至少一个槽位,并获取每个槽位的替换词;S2. Identify at least one slot of the skill corpus and obtain the replacement word for each slot;

S3、基于槽位,利用替换词对原始技能语料进行填槽,得到目标技能语料;S3. Based on the slot, use replacement words to fill the slots of the original skill corpus to obtain the target skill corpus;

S4、对目标技能语料进行冲突测试,得到第一测试结果,并在第一测试结果为目标技能语料没有冲突的情况下,在开发平台中完成非调用词技能的创建。S4. Conduct a conflict test on the target skill corpus, obtain the first test result, and complete the creation of the non-call word skill in the development platform when the first test result shows that there is no conflict in the target skill corpus.

可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the above storage medium may include but is not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), Various media that can store program code, such as mobile hard drives, magnetic disks, or optical disks.

可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference can be made to the examples described in the above-mentioned embodiments and optional implementations, and details will not be described again in this embodiment.

本申请实施例所提供的方法实施例可以在计算机终端、计算机终端或者类似的运算装置中执行。以运行在计算机终端上为例,图6是本发明实施例的一种数据请求的处理方法的计算机终端的硬件结构框图。如图6所示,计算机终端可以包括一个或多个(图6中仅示出一个)处理器602(处理器602可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器604,在一个示例性实施例中,上述计算机终端还可以包括用于通信功能的传输设备606以及输入输出设备608。本领域普通技术人员可以理解,图6所示的结构仅为示意,其并不对上述计算机终端的结构造成限定。例如,计算机终端还可包括比图6中所示更多或者更少的组件,或者具有与图6所示等同功能或比图6所示功能更多的不同的配置。The method embodiments provided by the embodiments of this application can be executed in a computer terminal, a computer terminal, or a similar computing device. Taking running on a computer terminal as an example, FIG. 6 is a hardware structure block diagram of a computer terminal of a data request processing method according to an embodiment of the present invention. As shown in Figure 6, the computer terminal may include one or more (only one is shown in Figure 6) processors 602 (the processor 602 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 604 for storing data. In an exemplary embodiment, the above-mentioned computer terminal may also include a transmission device 606 for communication functions and an input and output device 608. Persons of ordinary skill in the art can understand that the structure shown in FIG. 6 is only illustrative, and it does not limit the structure of the above-mentioned computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 6 , or have a different configuration with equivalent functions or more functions than shown in FIG. 6 .

存储器604可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的数据请求的处理方法对应的计算机程序,处理器602通过运行存储在存储器604内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器604可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器604可进一步包括相对于处理器602远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 604 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the data request processing method in the embodiment of the present invention. The processor 602 runs the computer program stored in the memory 604, thereby Execute various functional applications and data processing, that is, implement the above methods. Memory 604 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 604 may further include memory located remotely relative to the processor 602, and these remote memories may be connected to the computer terminal through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.

传输设备606用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端的通信供应商提供的无线网络。在一个实例中,传输设备606包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备606可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 606 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 606 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 606 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented using general-purpose computing devices. They can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices. , optionally, they may be implemented in program code executable by a computing device, such that they may be stored in a storage device for execution by the computing device, and in some cases, may be in a sequence different from that herein. The steps shown or described are performed either individually as individual integrated circuit modules, or as multiple modules or steps among them as a single integrated circuit module. As such, the invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention shall be included in the protection scope of the present invention.

Claims (12)

1. A skill creation method, comprising:
acquiring original skill corpus, wherein the original skill corpus is corpus for waking up non-called word skills, and the non-called word skills are skills for waking up without using called words;
identifying at least one slot of the skill corpus, and acquiring a replacement word of each slot;
based on the slot positions, filling slots into the original skill corpus by using the replacement words to obtain a target skill corpus;
performing conflict test on the target skill corpus to obtain a first test result, and completing creation of the non-calling word skills in a development platform under the condition that the first test result is that the target skill corpus is not in conflict;
when the first test result shows that the target skill corpus has conflict, a change request is fed back, wherein the change request is used for prompting a user to edit the original skill corpus;
receiving an editing completion instruction, acquiring an original skill corpus based on the editing completion instruction, and performing conflict test on the edited original skill corpus until the original skill corpus does not conflict;
wherein, discernment at least one slot of skill corpus to obtain the replacement word of every slot, include:
identifying at least one slot of the skill corpus;
acquiring a dictionary corresponding to each slot;
and extracting a preset number of replacement words from the dictionary corresponding to each slot.
2. The method of claim 1, wherein prior to obtaining the original skill corpus, the method further comprises:
starting to create the non-call word skills according to skill creation instructions, wherein the skill creation instructions comprise at least one of the following: skill name, skill type;
creating an intent of the non-invoking word skill according to an intent creation instruction, wherein the intent creation instruction comprises at least one of: intent name, user statement;
and acquiring the original skill corpus based on the intention.
3. The method of claim 1, wherein the filling the original skill corpus with the replacement word based on the slot position to obtain a target skill corpus comprises:
and filling the groove into the original skill corpus by using the preset number of the replacement words to obtain at least one target skill corpus.
4. The method of claim 1, wherein in the event that the first test result is that the target skill corpus does not conflict, after completion of creation of the non-invoking word skills in a development platform, the method further comprises:
performing conflict testing on the target skill corpus in an application platform to obtain a second testing result;
performing standard auditing on the created non-call word skills under the condition that the second test result is that the target skill corpus is not in conflict;
and if the specification audit is passed, the non-calling word skills are online in an application platform.
5. The method of claim 4, wherein the non-calling word skills are prohibited from being brought up in the application platform if the second test result is that there is a conflict with the target skill corpus.
6. A skill creation apparatus, comprising:
the first acquisition module is used for acquiring original skill corpus, wherein the original skill corpus is corpus for waking up non-called word skills, and the non-called word skills are skills which do not need to be woken up by using called words;
the recognition module is used for recognizing at least one slot position of the skill corpus and acquiring a replacement word of each slot position;
the groove filling module is used for filling grooves in the original skill corpus by using the replacement words based on the groove positions to obtain target skill corpus;
the first test module is used for performing conflict test on the target skill corpus to obtain a first test result, and completing creation of the non-calling word skills in a development platform under the condition that the first test result is that the target skill corpus is not in conflict;
wherein the apparatus further comprises: the feedback module is used for feeding back a change request when the first test result shows that the target skill corpus has conflict, wherein the change request is used for prompting a user to edit the original skill corpus; receiving an editing completion instruction, acquiring an original skill corpus based on the editing completion instruction, and performing conflict test on the edited original skill corpus until the original skill corpus does not conflict;
wherein, the identification module includes:
the recognition unit is used for recognizing at least one slot position of the skill corpus;
the acquisition unit is used for acquiring the dictionary corresponding to each slot position;
and the extraction unit is used for extracting a preset number of replacement words from the dictionary corresponding to each slot position.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the first creating module is used for starting to create the non-call word skills according to skill creating instructions, wherein the skill creating instructions comprise at least one of the following steps: skill name, skill type;
a second creation module for creating an intent of the non-call word skill according to an intent creation instruction, wherein the intent creation instruction includes at least one of: intent name, user statement;
and the second acquisition module is used for acquiring the original skill corpus based on the intention.
8. The apparatus of claim 6, wherein the slot filling module comprises:
and the groove filling unit is used for filling grooves in the original skill corpus by utilizing the preset number of the replacement words to obtain at least one target skill corpus.
9. The apparatus of claim 6, wherein the apparatus further comprises:
the second testing module is used for performing conflict testing on the target skill corpus in the application platform to obtain a second testing result;
the auditing module is used for carrying out standard auditing on the established non-call word skills under the condition that the second test result is that the target skill corpus has no conflict;
and the online module is used for online the non-call word skills in the application platform under the condition that the standard audit is passed.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the prohibition module is used for prohibiting the non-calling word skills from being online in the application platform under the condition that the second test result shows that the target skill corpus has conflict.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the skill creation method of any of claims 1 to 5.
12. A processor for running a program, wherein the program when run performs the skill creation method of any of claims 1 to 5.
CN202110706140.0A 2021-06-24 2021-06-24 Skill creation methods and devices Active CN113553843B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110706140.0A CN113553843B (en) 2021-06-24 2021-06-24 Skill creation methods and devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110706140.0A CN113553843B (en) 2021-06-24 2021-06-24 Skill creation methods and devices

Publications (2)

Publication Number Publication Date
CN113553843A CN113553843A (en) 2021-10-26
CN113553843B true CN113553843B (en) 2023-12-19

Family

ID=78130896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110706140.0A Active CN113553843B (en) 2021-06-24 2021-06-24 Skill creation methods and devices

Country Status (1)

Country Link
CN (1) CN113553843B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117009468A (en) * 2022-04-29 2023-11-07 青岛海尔科技有限公司 Skill creation method and device, storage medium and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8250071B1 (en) * 2010-06-30 2012-08-21 Amazon Technologies, Inc. Disambiguation of term meaning
CN108491220A (en) * 2018-03-15 2018-09-04 苏州思必驰信息科技有限公司 Method of skill training and system
CN109697979A (en) * 2018-12-25 2019-04-30 Oppo广东移动通信有限公司 Voice assistant skill adding method, device, storage medium and server
CN110491394A (en) * 2019-09-12 2019-11-22 北京百度网讯科技有限公司 Wake up the acquisition methods and device of corpus
CN110674259A (en) * 2019-09-27 2020-01-10 北京百度网讯科技有限公司 Intent understanding method and apparatus
CN111309876A (en) * 2018-12-12 2020-06-19 北京嘀嘀无限科技发展有限公司 Service request processing method and device, electronic equipment and storage medium
CN112052316A (en) * 2020-08-12 2020-12-08 深圳市欢太科技有限公司 Model evaluation method, model evaluation device, storage medium and electronic equipment
CN112541070A (en) * 2020-12-25 2021-03-23 北京百度网讯科技有限公司 Method and device for excavating slot position updating corpus, electronic equipment and storage medium
CN112905869A (en) * 2021-03-26 2021-06-04 北京儒博科技有限公司 Adaptive training method and device for language model, storage medium and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8250071B1 (en) * 2010-06-30 2012-08-21 Amazon Technologies, Inc. Disambiguation of term meaning
CN108491220A (en) * 2018-03-15 2018-09-04 苏州思必驰信息科技有限公司 Method of skill training and system
CN111309876A (en) * 2018-12-12 2020-06-19 北京嘀嘀无限科技发展有限公司 Service request processing method and device, electronic equipment and storage medium
CN109697979A (en) * 2018-12-25 2019-04-30 Oppo广东移动通信有限公司 Voice assistant skill adding method, device, storage medium and server
CN110491394A (en) * 2019-09-12 2019-11-22 北京百度网讯科技有限公司 Wake up the acquisition methods and device of corpus
CN110674259A (en) * 2019-09-27 2020-01-10 北京百度网讯科技有限公司 Intent understanding method and apparatus
CN112052316A (en) * 2020-08-12 2020-12-08 深圳市欢太科技有限公司 Model evaluation method, model evaluation device, storage medium and electronic equipment
CN112541070A (en) * 2020-12-25 2021-03-23 北京百度网讯科技有限公司 Method and device for excavating slot position updating corpus, electronic equipment and storage medium
CN112905869A (en) * 2021-03-26 2021-06-04 北京儒博科技有限公司 Adaptive training method and device for language model, storage medium and equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
人工智能技术在信息服务中的应用;赵西林;王占峰;马维峰;;电子技术与软件工程(05);200-202 *
语音技能在智慧矿山中的应用;曾健;《煤炭技术》;第39卷(第10期);155-158 *

Also Published As

Publication number Publication date
CN113553843A (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN112084315B (en) Question-answer interaction method, device, storage medium and equipment
CN107563569A (en) Hotel reservation method, apparatus and its equipment based on more wheel interactive voices
CN106503523B (en) A kind of method and mobile terminal of mobile terminal login
CN110516233B (en) Data processing method, device, terminal equipment and storage medium
CN112434677B (en) Contract auditing method, device, equipment and storage medium
CN109902095A (en) Policy information update method, device, terminal and computer readable storage medium
US20170278069A1 (en) Method and electronic device for extracting data of newly-created calendar events
CN107943793A (en) semantic analysis method of natural language
CN111142834B (en) Service processing method and system
CN108604268A (en) A kind of voice unlocking method and terminal of terminal
CN113553843B (en) Skill creation methods and devices
CN111326154A (en) Voice interaction method and device, storage medium and electronic equipment
CN113299294A (en) Task type dialogue robot interaction method, device, equipment and storage medium
CN105703908A (en) Verification code input method and verification code input device
CN108009140A (en) A kind of end message edit methods and system
CN108882006A (en) A kind of conversion method of message format, device, storage medium and android terminal
WO2024230570A1 (en) Artificial intelligence device dialog control method, apparatus and device, and medium
CN118035403A (en) Intelligent question-answering system and method based on multiple models and knowledge patterns
CN115294969B (en) Construction method, execution method and device of voice assistant
CN110111770A (en) A kind of multilingual social interpretation method of network, system, equipment and medium
CN106933811A (en) A kind of entry automatic generation method and device
CN109087647A (en) Application on Voiceprint Recognition processing method, device, electronic equipment and storage medium
CN105959451B (en) A kind of method and mobile terminal loading MBN
CN106373572A (en) Method and device for prompting information based on artificial intelligence
CN113901192A (en) A dialogue method, device, device and medium for pre-filling dialogue node parameters

Legal Events

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