[go: up one dir, main page]

CN115221298A - Question and answer matching method and device, electronic equipment and storage medium - Google Patents

Question and answer matching method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115221298A
CN115221298A CN202210704092.6A CN202210704092A CN115221298A CN 115221298 A CN115221298 A CN 115221298A CN 202210704092 A CN202210704092 A CN 202210704092A CN 115221298 A CN115221298 A CN 115221298A
Authority
CN
China
Prior art keywords
entity
question
text
candidate
triplet
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
CN202210704092.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.)
Shenzhen Ubtech Technology Co ltd
Original Assignee
Shenzhen Ubtech Technology 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 Shenzhen Ubtech Technology Co ltd filed Critical Shenzhen Ubtech Technology Co ltd
Priority to CN202210704092.6A priority Critical patent/CN115221298A/en
Publication of CN115221298A publication Critical patent/CN115221298A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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; 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
    • G06F40/295Named entity recognition

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)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请适用于计算机技术领域,提供了问答匹配方法、装置、电子设备及存储介质,包括:获取问句文本;根据所述问句文本,确定问句实体;根据所述问句实体,确定所述问句实体对应的目标三元组;将所述目标三元组转换为自然语言形式,得到候选文本;将所述问句文本与所述候选文本进行匹配,确定目标回答信息。本申请实施例能够高效准确地实现问答匹配。

Figure 202210704092

The present application is applicable to the field of computer technology, and provides a question-and-answer matching method, device, electronic device and storage medium, including: obtaining question text; determining a question entity according to the question text; The target triplet corresponding to the question entity; the target triplet is converted into a natural language form to obtain candidate text; the question text is matched with the candidate text to determine the target answer information. The embodiments of the present application can efficiently and accurately implement question-and-answer matching.

Figure 202210704092

Description

问答匹配方法、装置、电子设备及存储介质Question-answer matching method, device, electronic device and storage medium

技术领域technical field

本申请属于计算机技术领域,尤其涉及一种问答匹配方法、装置、电子设备及存储介质。The present application belongs to the field of computer technology, and in particular, relates to a question-answer matching method, device, electronic device and storage medium.

背景技术Background technique

问答系统是信息检索系统的一种高级形式,其能够准确地回答用户用自然语言提出的问题。问答系统中运行的方法,即根据输入的问句确定对应的回答信息的问答匹配方法,是人工智能和自然语言处理领域中一个倍受关注并具有广泛发展前景的研究方向。目前的问答匹配方法通常要在自然问句和三元组之间进行关系匹配以确定问句对应的回答信息,其匹配难度较大,精度较差且效率较低。A question answering system is an advanced form of information retrieval system that can accurately answer questions posed by users in natural language. The method running in the question answering system, that is, the question and answer matching method that determines the corresponding answer information according to the input question sentence, is a research direction that has attracted much attention and has broad development prospects in the field of artificial intelligence and natural language processing. The current question-answer matching method usually needs to match the relationship between the natural question and the triple to determine the answer information corresponding to the question, which is difficult to match, with poor accuracy and low efficiency.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本申请实施例提供了问答匹配方法、装置、电子设备及存储介质,以解决现有技术中如何高效准确地实现问答匹配的问题。In view of this, the embodiments of the present application provide a question-answer matching method, apparatus, electronic device, and storage medium, so as to solve the problem of how to efficiently and accurately implement question-answer matching in the prior art.

本申请实施例的第一方面提供了一种问答匹配方法,包括:A first aspect of the embodiments of the present application provides a question-and-answer matching method, including:

获取问句文本;Get the question text;

根据所述问句文本,确定问句实体;Determine the question entity according to the question text;

根据所述问句实体,确定所述问句实体对应的目标三元组;According to the question entity, determine the target triplet corresponding to the question entity;

将所述目标三元组转换为自然语言形式,得到候选文本;Converting the target triplet into a natural language form to obtain candidate text;

将所述问句文本与所述候选文本进行匹配,确定目标回答信息。Matching the question text and the candidate text to determine target answer information.

可选地,所述根据所述问句文本,确定问句实体,包括:Optionally, determining the question entity according to the question text includes:

将所述问句文本输入已训练的实体识别模型进行处理,得到问句实体。The question text is input into the trained entity recognition model for processing, and the question entity is obtained.

可选地,所述根据所述问句实体,确定所述问句实体对应的目标三元组,包括:Optionally, determining the target triplet corresponding to the question entity according to the question entity, including:

根据所述问句实体,从预设的实体库中确定候选实体;According to the question entity, determine a candidate entity from a preset entity library;

根据所述候选实体,从预设的三元组数据库中确定所述目标三元组。According to the candidate entity, the target triplet is determined from a preset triplet database.

可选地,所述根据所述问句实体,从预设的实体库中确定候选实体,包括:Optionally, according to the question entity, the candidate entity is determined from a preset entity library, including:

根据所述问句实体,从所述实体库中获取与所述问句实体的字符相匹配的第一实体;According to the question entity, obtain a first entity matching the character of the question entity from the entity library;

确定所述问句实体与所述第一实体之间的实体相似度,并根据所述实体相似度从所述第一实体中筛选出候选实体。Determine the entity similarity between the question entity and the first entity, and filter out candidate entities from the first entity according to the entity similarity.

可选地,所述确定所述问句实体与所述第一实体之间的实体相似度,包括:Optionally, the determining the entity similarity between the question entity and the first entity includes:

将所述问句实体进行分词及词性提取处理,确定所述问句实体对应的问句实体关键词;Perform word segmentation and part-of-speech extraction processing on the question entity, and determine the question entity keyword corresponding to the question entity;

将所述第一实体进行分词及词性提取处理,确定所述第一实体对应的第一实体关键词;Perform word segmentation and part-of-speech extraction processing on the first entity to determine the first entity keyword corresponding to the first entity;

将所述问句实体关键词与所述第一实体关键词进行词级别的相似度计算,得到所述实体相似度。Perform word-level similarity calculation on the question sentence entity keyword and the first entity keyword to obtain the entity similarity.

可选地,所述根据所述候选实体,从预设的三元组数据库中确定所述目标三元组,包括:Optionally, determining the target triplet from a preset triplet database according to the candidate entity includes:

根据所述候选实体,从所述三元组数据库中获取头部信息与所述候选实体相匹配的三元组作为候选三元组;According to the candidate entity, the triplet whose header information matches the candidate entity is obtained from the triplet database as a candidate triplet;

根据预设过滤条件,从所述候选三元组中筛选出目标三元组。According to preset filter conditions, the target triplet is filtered out from the candidate triplet.

可选地,所述将所述问句文本与所述候选文本进行匹配,确定目标回答信息,包括:Optionally, the matching of the question text with the candidate text to determine target answer information includes:

将所述问句文本分别与各个所述候选文本组成的各个语句对输入预设的二分类模型进行处理,得到各个候选文本分别对应的目标分类结果及对应的置信度;The question text is processed with each statement formed by each of the candidate texts, and the input preset two-classification model is processed to obtain the target classification result corresponding to each candidate text and the corresponding confidence level;

根据各个所述候选文本分别对应的目标分类结果及对应的置信度,确定目标回答信息。The target answer information is determined according to the target classification results and corresponding confidence levels corresponding to each of the candidate texts respectively.

本申请实施例的第二方面提供了一种问答匹配装置,包括:A second aspect of the embodiments of the present application provides a question and answer matching device, including:

获取单元,用于获取问句文本;Get unit, used to get the question text;

问句实体确定单元,用于根据所述问句文本,确定问句实体;The question entity determination unit is used to determine the question entity according to the question text;

三元组确定单元,用于根据所述问句实体,确定所述问句实体对应的目标三元组;The triplet determining unit is configured to determine the target triplet corresponding to the question entity according to the question entity;

转换单元,用于将所述目标三元组转换为自然语言形式,得到候选文本;a conversion unit for converting the target triplet into a natural language form to obtain candidate text;

匹配单元,用于将所述问句文本与所述候选文本进行匹配,确定目标回答信息。A matching unit, configured to match the question text with the candidate text to determine target answer information.

本申请实施例的第三方面提供了一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,当所述处理器执行所述计算机程序时,使得电子设备实现如所述问答匹配方法的步骤。A third aspect of the embodiments of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program At the time, the electronic device is made to implement the steps of the question-answer matching method.

本申请实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,当所述计算机程序被处理器执行时,使得电子设备实现如所述问答匹配方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, enables an electronic device to implement the question-and-answer matching as described above steps of the method.

本申请实施例的第五方面提供了一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中任一项所述的问答匹配方法。A fifth aspect of the embodiments of the present application provides a computer program product, which, when the computer program product runs on an electronic device, enables the electronic device to execute the question-answer matching method described in any one of the above-mentioned first aspects.

本申请实施例与现有技术相比存在的有益效果是:本申请实施例中,获取问句文本,根据该问句文本确定问句实体,并根据该问句实体,确定该问句实体对应的目标三元组。之后,将该目标三元组转换为自然语言形式,得到候选文本,再将问句文本与该候选文本进行匹配,即可确定目标回答信息。由于能够先根据问句实体确定目标三元组,因此能够缩小搜索匹配范围,提高问答匹配效率;之后,能够将确定出的目标三元组进一步转换为自然语言形式的候选文本后,再将问句文本与该候选文本进行匹配,确定目标回答信息,即能够将自然语言形式的问句文本与自然语言形式的候选文本进行准确的匹配,避免问句文本与三元组直接匹配时出现的关系匹配度较低、问答匹配难度较大的情况,因此能够高效准确地实现问答匹配。Compared with the prior art, the embodiment of the present application has the following beneficial effects: in the embodiment of the present application, the question text is obtained, the question entity is determined according to the question text, and the corresponding question entity is determined according to the question entity. The target triplet of . After that, convert the target triplet into a natural language form to obtain candidate text, and then match the question text with the candidate text to determine the target answer information. Since the target triplet can be determined according to the entity of the question sentence, the search matching range can be narrowed and the efficiency of question and answer matching can be improved; after that, the determined target triplet can be further converted into candidate text in the form of natural language, and then the question The sentence text is matched with the candidate text, and the target answer information is determined, that is, the question text in the form of natural language can be accurately matched with the candidate text in the form of natural language, and the relationship between the question text and the triplet can be avoided. In the case of low matching degree and difficult question-and-answer matching, question-and-answer matching can be implemented efficiently and accurately.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings that are required to be used in the description of the embodiments or the prior art.

图1是本申请实施例提供的一种问答匹配方法的实现流程示意图;Fig. 1 is the implementation flow schematic diagram of a kind of question-answer matching method provided in the embodiment of the present application;

图2是本申请实施例提供的一种问答匹配装置的示意图;2 is a schematic diagram of a question and answer matching device provided by an embodiment of the present application;

图3是本申请实施例提供的电子设备的示意图。FIG. 3 is a schematic diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are set forth in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present application, the following specific embodiments are used for description.

应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other features , whole, step, operation, element, component and/or the presence or addition of a collection thereof.

还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the application herein is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.

还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It should also be further understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items .

如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting" . Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".

另外,在本申请的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

为了便于理解,首先本申请实施例的一些相关概念进行以下解释:For ease of understanding, first, some related concepts of the embodiments of the present application are explained as follows:

实体(Entity):实体是对客观个体的抽象,一个人、一部电影、一个词组都可以看作是一个实体。例如:球星A,《大话西游》,“北京的故宫”等。Entity: An entity is an abstraction of an objective individual. A person, a movie, or a phrase can be regarded as an entity. For example: Star A, "Journey to the West", "Beijing's Forbidden City", etc.

三元组:一种知识表达方式,其由三个元素组成,分别为“头部”,“关系”及“尾部”,通常分别对应句子的主语(subject)、谓语/表语(predicate)和宾语(object)。例如:[“清政府”,“签订”,“天津条约”]、[“深圳市”,“面积”,“1997.47平方公里”]。三元组存储数据相比于二维表存储数据有具有空间占用少,稀疏性好及灵活等特点,常用于问答系统中。Triplet: A knowledge representation consisting of three elements, "head", "relation" and "tail", which usually correspond to the subject, predicate and predicate of a sentence, respectively. Object. For example: ["Qing Government", "Signed", "Tianjin Treaty"], ["Shenzhen City", "Area", "1997.47 square kilometers"]. Compared with two-dimensional table storage data, triplet storage data has the characteristics of less space occupation, good sparsity and flexibility, and is often used in question answering systems.

目前,基于三元组的问答匹配方法通常包括实体识别和关系抽取两个主要的步骤。其中,实体识别是要识别到问句中的实体,即问句中需要了解的主题内容,而关系抽取则要在问句中识别到该问句询问该实体的哪一项属性。例如对于问句“深圳市的面积是多少?”,需要识别出的实体为“深圳市”,需要抽取的关系为“面积”。然而,由于三元组中关系的定义方法与自然语言中关系的使用方法差距巨大,抽取的方案需要进行映射及匹配,达不到较好的精度,导致根据自然语言形式的问句在三元组中找出关系匹配的答案时匹配度较低,匹配难度较大。并且,在数据量很大的时候,检索匹配速度较慢。目前的问答匹配方法通常要在自然问句和三元组之间进行关系匹配以确定问句对应的回答信息,其匹配难度较大,精度较差且效率较低。At present, triple-based question-answer matching methods usually include two main steps: entity recognition and relation extraction. Among them, entity recognition is to identify the entity in the question, that is, the subject content that needs to be understood in the question, while relation extraction is to identify which attribute the question asks about the entity in the question. For example, for the question "What is the area of Shenzhen?", the entity to be identified is "Shenzhen", and the relationship to be extracted is "area". However, due to the huge gap between the method of defining relations in triples and the methods of using relations in natural language, the extracted scheme needs to be mapped and matched, which cannot achieve good accuracy, resulting in questions in the form of natural language in triples. The matching degree is low and the matching difficulty is high when finding the answer of relationship matching in the group. Moreover, when the amount of data is large, the retrieval matching speed is slow. The current question-answer matching method usually needs to match the relationship between the natural question and the triple to determine the answer information corresponding to the question, which is difficult to match, with poor accuracy and low efficiency.

为了解决上述的技术问题,本申请实施例提供了一种问答匹配方法、装置、电子设备及存储介质,包括:获取问句文本;根据所述问句文本,确定问句实体;根据所述问句实体,确定所述问句实体对应的目标三元组;将所述目标三元组转换为自然语言形式,得到候选文本;将所述问句文本与所述候选文本进行匹配,确定目标回答信息。In order to solve the above-mentioned technical problems, embodiments of the present application provide a question-and-answer matching method, device, electronic device, and storage medium, including: acquiring question text; determining a question entity according to the question text; sentence entity, determine the target triplet corresponding to the question entity; convert the target triplet into a natural language form to obtain candidate text; match the question text with the candidate text to determine the target answer information.

由于能够先根据问句实体确定目标三元组,因此能够缩小搜索匹配范围,提高问答匹配效率;之后,能够将确定出的目标三元组进一步转换为自然语言形式的候选文本后,再将问句文本与该候选文本进行匹配,确定目标回答信息,即能够将自然语言形式的问句文本与自然语言形式的候选文本进行准确的匹配,避免问句文本与三元组直接匹配时出现的关系匹配度较低、问答匹配难度较大的情况,因此能够高效准确地实现问答匹配。Since the target triplet can be determined according to the entity of the question sentence, the search matching range can be narrowed and the efficiency of question and answer matching can be improved; after that, the determined target triplet can be further converted into candidate text in the form of natural language, and then the question The sentence text is matched with the candidate text, and the target answer information is determined, that is, the question text in the form of natural language can be accurately matched with the candidate text in the form of natural language, and the relationship between the question text and the triplet can be avoided. In the case of low matching degree and difficult question-and-answer matching, question-and-answer matching can be implemented efficiently and accurately.

实施例一:Example 1:

图1示出了本申请实施例提供的一种问答匹配方法的流程示意图,该问答匹配方法的执行主体可以为电脑、手机、机器人等电子设备,详述如下:1 shows a schematic flowchart of a question-and-answer matching method provided by an embodiment of the present application. The execution subject of the question-and-answer matching method may be an electronic device such as a computer, a mobile phone, or a robot, and the details are as follows:

在S101中,获取问句文本。In S101, the question text is acquired.

本申请实施例中,问句文本为用户发出提问的句子。例如“深圳市的面积是多少?”“我想知道球星A有多高?”等。In this embodiment of the present application, the question text is a sentence in which the user sends a question. For example, "What is the area of Shenzhen?" "I want to know how tall is star A?" and so on.

电子设备获取用户输入的问句文本。在一个实施例中,可以获取用户通过电子设备的键盘输入的字符信息,得到该问句文本。在另一个实施例中,可以通过电子设备的麦克风获取用户的语音信息,对该语音信息进行文本识别,得到问句文本。The electronic device acquires the question text input by the user. In one embodiment, the character information input by the user through the keyboard of the electronic device can be obtained to obtain the question text. In another embodiment, the user's voice information may be acquired through a microphone of the electronic device, and text recognition may be performed on the voice information to obtain the question text.

在S102中,根据所述问句文本,确定问句实体。In S102, the question entity is determined according to the question text.

本申请实施例,问句实体为问句中包含的实体,一般是问句中所要了解的主题内容。例如,对于问句文本“深圳市的面积是多少?”,其中的问句实体为“深圳市”;对于问句文本“我想知道球星A有多高?”,其中的问句实体为“球星A”。In the embodiment of the present application, the question entity is an entity included in the question, and generally is the subject content to be understood in the question. For example, for the question text "What is the area of Shenzhen?", the question entity is "Shenzhen"; for the question text "I want to know how tall is the star A?", the question entity is " Star A".

在获取到问句后,通过预设的实体识别算法,从问句文本中识别出其中包含的实体信息作为问句实体。After the question sentence is acquired, through the preset entity recognition algorithm, the entity information contained in the question sentence text is identified as the question sentence entity.

在S103中,根据所述问句实体,确定所述问句实体对应的目标三元组。In S103, a target triplet corresponding to the question entity is determined according to the question entity.

在确定问句文本中的问句实体后,根据该问句实体从预设的三元组数据库中查找与该问句实体相关联的目标三元组,该目标三元组的数量可以为一个或者多个。在一个实施例中,可以直接将包含该问句实体的信息的三元组确定为目标三元组;在另一个实施例中,可以将头部信息与该问句实体的信息相符的三元组确定为目标三元组。After determining the question entity in the question text, search for a target triplet associated with the question entity from a preset triplet database according to the question entity, and the number of the target triplet can be one or more. In one embodiment, a triple containing the information of the question entity can be directly determined as a target triple; in another embodiment, a triple whose header information is consistent with the information of the question entity can be determined The group is determined as the target triplet.

在S104中,将所述目标三元组转换为自然语言形式,得到候选文本。In S104, the target triplet is converted into a natural language form to obtain candidate text.

在确定与问句实体相关联的目标三元组后,将该目标三元组转换为自然语言形式的文本。这些由目标三元组转换得到的文本为候选的可能能够与问句文本相匹配的文本,将这些文本称为候选文本。After determining the target triplet associated with the question entity, convert the target triplet to text in natural language form. These texts converted from target triples are candidate texts that may match the question texts, and these texts are called candidate texts.

在一个实施例中,可以根据预设的自然语言文本模板,将该目标三元组转换为对应的自然语言文本,即得到候选文本。示例性地,该自然语言文本模板可以为:[头部实体]+的+[关系]+是+[尾部实体]。若当前的一个目标三元组为[“深圳市”,“面积”,“1997.47平方公里”],则根据该自然语言文本模板,得到对应的一个候选文本为:深圳市的面积是1997.47平方公里。In one embodiment, the target triplet can be converted into corresponding natural language text according to a preset natural language text template, that is, the candidate text can be obtained. Exemplarily, the natural language text template may be: [head entity]++[relationship]+is+[tail entity]. If a current target triplet is ["Shenzhen City", "Area", "1997.47 square kilometers"], then according to the natural language text template, a corresponding candidate text is obtained: the area of Shenzhen City is 1997.47 square kilometers .

在S105中,将所述问句文本与所述候选文本进行匹配,确定目标回答信息。In S105, the question text and the candidate text are matched to determine target answer information.

本申请实施例中,在确定目标三元组对应的候选文本后,通过预设的匹配算法,将问句文本与候选文本进行匹配,得到用于回答该问句文本的目标回答信息。之后,可以通过屏幕显示、语音播放、信息推送的方式,将该目标回答信息反馈至用户。In the embodiment of the present application, after the candidate text corresponding to the target triplet is determined, the question text is matched with the candidate text through a preset matching algorithm to obtain target answer information for answering the question text. Afterwards, the target answer information can be fed back to the user by means of screen display, voice playback, and information push.

在一个实施例中,步骤S104中确定出的候选文本为多个,则通过预设的匹配算法,从多个候选文本中确定出与该问句文本的匹配度最高的文本作为目标文本。之后,可以将该目标文本直接作为目标回答信息;例如,对于问句文本“深圳市的面积是多少?”,可以直接输出对应的目标文本“深圳市的面积是1997.47平方公里”作为目标回答信息。或者,将该目标文本对应的三元组作为目标回答信息;例如,将目标文本对应的三元组[“深圳市”,“面积”,“1997.47平方公里”]作为目标回答信息,将该目标回答信息传入下一级系统进行处理。或者,确定该目标文本对应的三元组后,将该三元组的尾部信息作为目标回答信息;例如,将上述的目标文本对应的三元组[“深圳市”,“面积”,“1997.47平方公里”]中的尾部信息“1997.47平方公里”作为目标回答信息反馈至用户。In one embodiment, if there are multiple candidate texts determined in step S104, a preset matching algorithm is used to determine the text with the highest matching degree with the question text from the multiple candidate texts as the target text. After that, the target text can be directly used as the target answer information; for example, for the question text "What is the area of Shenzhen?", the corresponding target text "Shenzhen's area is 1997.47 square kilometers" can be directly output as the target answer information . Or, the triplet corresponding to the target text is used as the target answer information; for example, the triplet corresponding to the target text ["Shenzhen", "area", "1997.47 square kilometers"] is used as the target answer information, the target The answer information is transmitted to the next level system for processing. Or, after determining the triplet corresponding to the target text, the tail information of the triplet is used as the target answer information; The tail information "1997.47 square kilometers" in the "square kilometer"] is fed back to the user as the target answer information.

本申请实施例中,由于能够先根据问句实体确定目标三元组,因此能够缩小搜索匹配范围,提高问答匹配效率;之后,能够将确定出的目标三元组进一步转换为自然语言形式的候选文本后,再将问句文本与该候选文本进行匹配,确定目标回答信息,即能够将自然语言形式的问句文本与自然语言形式的候选文本进行准确的匹配,避免问句文本与三元组直接匹配时出现的关系匹配度较低、问答匹配难度较大的情况,因此能够高效准确地确定问句对应的回答信息。In the embodiment of the present application, since the target triplet can be determined according to the entity of the question sentence, the search matching scope can be narrowed, and the question-answer matching efficiency can be improved; after that, the determined target triplet can be further converted into candidates in the form of natural language After the text, the question text is matched with the candidate text to determine the target answer information, that is, the question text in the form of natural language can be accurately matched with the candidate text in the form of natural language, avoiding the question text and triples. In the case of direct matching, the relationship matching degree is low and the question and answer matching is difficult, so the answer information corresponding to the question can be determined efficiently and accurately.

可选地,所述根据所述问句文本,确定问句实体,包括:Optionally, determining the question entity according to the question text includes:

将所述问句文本输入已训练的实体识别模型进行处理,得到问句实体。The question text is input into the trained entity recognition model for processing, and the question entity is obtained.

本申请实施例中,已训练的实体识别模型为提前离线训练得到的用于进行实体识别的神经网络模型。在一个实施例中,该实体识别模型可以基于已有的预训练语言模型进行调优得到。示例性地,可以标注了实体位置的句子作为实体识别样本数据,对语言模型进行训练或者调优,得到实体识别模型。在一些实施例中,可以通过BIO形式对实体识别样本数据进行标注,其中B(Begin)用于标注实体的开始位置,I(Inner)用于标注该实体所在的非开始位置,O(Other)用于标注非实体位置。例如,对于实体识别样本数据“球星A的身高是XX厘米”,其对应的BIO标注为“BIIOOOOOOOO”。In the embodiment of the present application, the trained entity recognition model is a neural network model obtained by offline training in advance and used for entity recognition. In one embodiment, the entity recognition model can be obtained by tuning based on an existing pre-trained language model. Exemplarily, a sentence marked with an entity position can be used as the entity recognition sample data, and the language model can be trained or tuned to obtain an entity recognition model. In some embodiments, the entity recognition sample data can be marked in the form of BIO, where B (Begin) is used to mark the start position of the entity, I (Inner) is used to mark the non-start position of the entity, and O (Other) Used to label non-solid locations. For example, for the entity recognition sample data "The height of star A is XX cm", the corresponding BIO is marked as "BIIOOOOOOOOO".

将问句文本输入上述的已训练的实体识别模型,实体识别模型可以定位问句文本中实体所在位置,在该位置上提取实体作为问句实体。Input the question text into the above-mentioned trained entity recognition model, the entity recognition model can locate the location of the entity in the question text, and extract the entity at the position as the question entity.

本申请实施例中,由于能够通过已训练的实体识别模型准确地对问句文本进行实体识别,因此能够准确地提取问句实体,保证问答匹配方法的准确性。In the embodiment of the present application, since the entity recognition of the question text can be accurately performed by the trained entity recognition model, the question entity can be accurately extracted, and the accuracy of the question-answer matching method can be ensured.

可选地,所述根据所述问句实体,确定所述问句实体对应的目标三元组,包括:Optionally, determining the target triplet corresponding to the question entity according to the question entity, including:

根据所述问句实体,从预设的实体库中确定候选实体;According to the question entity, determine a candidate entity from a preset entity library;

根据所述候选实体,从预设的三元组数据库中确定所述目标三元组。According to the candidate entity, the target triplet is determined from a preset triplet database.

本申请实施例中,预设的实体库提前存储了大量用户可能提问的实体,预设的三元组数据库中存储了大量与这些实体相对应的三元组,这些三元组即包含了问句文本对应的答案。In the embodiment of the present application, the preset entity database stores a large number of entities that users may ask questions in advance, and the preset triplet database stores a large number of triples corresponding to these entities. The answer corresponding to the sentence text.

在问句文本中提取得到问句实体后,从预设的实体库中搜索与该问句实体的信息一致、相似、同义的实体作为候选实体。之后,再根据该候选实体,从预设的三元组数据库中获取与该候选实体相关的三元组作为目标三元组。After the question entity is extracted from the question text, an entity that is consistent, similar and synonymous with the information of the question entity is searched from the preset entity database as a candidate entity. Afterwards, according to the candidate entity, a triplet related to the candidate entity is obtained from a preset triplet database as a target triplet.

本申请实施例中,由于能够先从实体库中筛选出与问句实体相符的候选实体,因此能够更加准确全面地获取用户所要提问的实体信息,使得根据该候选实体能够更准确地确定目标三元组,提高问答匹配的准确性。In the embodiment of the present application, since the candidate entity matching the question entity can be screened from the entity database first, the entity information to be asked by the user can be obtained more accurately and comprehensively, so that the target three can be more accurately determined according to the candidate entity. Tuples to improve the accuracy of question answer matching.

可选地,所述根据所述问句实体,从预设的实体库中确定候选实体,包括:Optionally, according to the question entity, the candidate entity is determined from a preset entity library, including:

根据所述问句实体,从所述实体库中获取与所述问句实体的字符相匹配的第一实体;According to the question entity, obtain a first entity matching the character of the question entity from the entity library;

确定所述问句实体与所述第一实体之间的实体相似度,并根据所述实体相似度从所述第一实体中筛选出候选实体。Determine the entity similarity between the question entity and the first entity, and filter out candidate entities from the first entity according to the entity similarity.

本申请实施例中,在确定问句实体后,先按照字符级别的匹配方法,从实体库中筛选出与问句实体的字符相匹配的实体作为第一实体,该第一实体的数目可以为多个。在一个实施例中,可以通过倒排索引检索引擎确定该问句实体对应的第一实体。In this embodiment of the present application, after determining the question entity, first, according to the character-level matching method, an entity matching the characters of the question entity is selected from the entity library as the first entity, and the number of the first entities may be multiple. In one embodiment, the first entity corresponding to the question entity may be determined by an inverted index retrieval engine.

在初步筛选得到与问句实体的字符相匹配的各个第一实体后,计算问句实体与第一实体之间的相似度(将该相似度称为实体相似度),并根据该实体相似度,从第一实体中筛选出与问句实体的实体相似度最高的前K个实体作为候选实体(其中K为正整数),或者筛选出对应的实体相似度大于预设的相似度阈值的第一实体作为候选实体。在一个实施例中,计算问句实体与第一实体之间的相似度时,可以先将问句实体进行分词并按照词级别转换为对应的问句实体向量,将第一实体进行分词并按照词级别转换为对应的第一实体向量,之后,再采用余弦相似度算法计算问句实体与地第一实体之间的词级别的余弦相似度作为实体相似度。After preliminary screening to obtain each first entity matching the characters of the question entity, the similarity between the question entity and the first entity is calculated (this similarity is called entity similarity), and according to the entity similarity , screen out the top K entities with the highest entity similarity with the question entity from the first entity as candidate entities (where K is a positive integer), or screen out the first entity whose similarity is greater than the preset similarity threshold. An entity serves as a candidate entity. In one embodiment, when calculating the similarity between the question entity and the first entity, the question entity may be segmented first and converted into a corresponding question entity vector according to the word level, and the first entity may be segmented according to the word level. The word level is converted into the corresponding first entity vector, and then the cosine similarity algorithm is used to calculate the word level cosine similarity between the question entity and the first entity as the entity similarity.

本申请实施例中,由于能够先按照字级别快速地从实体库中筛选出与问句实体字符相匹配的第一实体,再通过相似度计算进一步准确地从第一实体中筛选出候选实体,因此能够高效准确地确定与问句实体相关的候选实体,提高问答匹配的效率和准确性。In the embodiment of the present application, since the first entity matching the entity character of the question sentence can be quickly screened from the entity library according to the word level, and then the candidate entity can be further accurately screened from the first entity through similarity calculation, Therefore, candidate entities related to question entities can be efficiently and accurately determined, and the efficiency and accuracy of question-answer matching can be improved.

可选地,所述确定所述问句实体与所述第一实体之间的实体相似度,包括:Optionally, the determining the entity similarity between the question entity and the first entity includes:

将所述问句实体进行分词及词性提取处理,确定所述问句实体对应的问句实体关键词;Perform word segmentation and part-of-speech extraction processing on the question entity, and determine the question entity keyword corresponding to the question entity;

将所述第一实体进行分词及词性提取处理,确定所述第一实体对应的第一实体关键词;Perform word segmentation and part-of-speech extraction processing on the first entity to determine the first entity keyword corresponding to the first entity;

将所述问句实体关键词与所述第一实体关键词进行词级别的相似度计算,得到所述实体相似度。Perform word-level similarity calculation on the question sentence entity keyword and the first entity keyword to obtain the entity similarity.

本申请实施例中,对于问句实体以及第一实体,可以均分别进行分词处理和词性提取处理,根据词性保留重要的词,得到问句实体关键词和第一实体关键词。其中,分词处理可以通过预设的分词算法实现;词性提取处理可以通过开源工具实现,示例性地,实体中包含的词的词性标签和含义可以如表1所示:In the embodiment of the present application, word segmentation processing and part-of-speech extraction processing may be performed for both the question entity and the first entity, respectively, and important words are reserved according to the part of speech to obtain the question entity keyword and the first entity keyword. The word segmentation process can be implemented by a preset word segmentation algorithm; the part-of-speech extraction process can be implemented by open source tools. Exemplarily, the part-of-speech tags and meanings of words contained in entities can be as shown in Table 1:

Figure BDA0003705545600000101
Figure BDA0003705545600000101

Figure BDA0003705545600000111
Figure BDA0003705545600000111

在一个实施例中,在分词处理和词性提取处理之后,可以将其中词性标签为n、nr、ns、nt、nw、nz、PER、LOC的词确定为重要的词,将问句实体中属于这类重要的词保留,得到问句实体关键词;将第一实体中属于这类重要的词保留,得到第一实体关键词。示例性地,设当前的问句实体为“北京的故宫”,则通过分词和词性提取处理后,得到对应的问句实体关键词为“北京”、“故宫”。In one embodiment, after the word segmentation process and part of speech extraction process, words whose part of speech tags are n, nr, ns, nt, nw, nz, PER, and LOC may be determined as important words, and the words belonging to the question entity may be determined as important words. Such important words are reserved to obtain question sentence entity keywords; and such important words in the first entity are reserved to obtain first entity keywords. Exemplarily, assuming that the current question entity is "the Forbidden City in Beijing", after word segmentation and part-of-speech extraction processing, the corresponding question entity keywords are "Beijing" and "Forbidden City".

在得到问句实体关键词和第一实体关键词后,根据该问句实体关键词和第一实体关键词,确定问句实体对应的问句关键词向量、第一实体对应的第一实体关键词向量。之后,求取该问句关键词向量与该第一实体关键词的余弦相似度,即可实现问句实体与第一实体之间词级别的相似度计算,得到实体相似度。After obtaining the question entity keyword and the first entity keyword, determine the question keyword vector corresponding to the question entity and the first entity key corresponding to the first entity according to the question entity keyword and the first entity keyword word vector. After that, the cosine similarity between the question keyword vector and the first entity keyword can be obtained, so as to realize the word-level similarity calculation between the question entity and the first entity, and obtain the entity similarity.

本申请实施例中,由于能够先经过分词处理和词性提取处理得到问句实体关键词和第一实体关键词后再进行词级别的相似度计算,因此能够避免不相干字符影响相似度计算的准确性,保证后续实体筛选的准确性,从而提高问答匹配的准确性。In the embodiment of the present application, since the entity keyword and the first entity keyword of the question sentence can be obtained through word segmentation and part-of-speech extraction, and then the similarity calculation at the word level can be performed, it is possible to prevent irrelevant characters from affecting the accuracy of the similarity calculation. This ensures the accuracy of subsequent entity screening, thereby improving the accuracy of question-answer matching.

可选地,所述根据所述候选实体,从预设的三元组数据库中确定所述目标三元组,包括:Optionally, determining the target triplet from a preset triplet database according to the candidate entity includes:

根据所述候选实体,从所述三元组数据库中获取头部信息与所述候选实体相匹配的三元组作为候选三元组;According to the candidate entity, the triplet whose header information matches the candidate entity is obtained from the triplet database as a candidate triplet;

根据预设过滤条件,从所述候选三元组中筛选出目标三元组。According to preset filter conditions, the target triplet is filtered out from the candidate triplet.

本申请实施例中,由于三元组的头部信息通常为问句所要提问的主题内容,因此在筛选根据问句实体筛选得到候选实体后,可以从预设的三元组数据库中筛选头部信息与该候选实体相匹配的三元组作为与问句文本相关的候选三元组。In the embodiment of the present application, since the header information of the triplet is usually the subject content of the question to be asked, after screening the candidate entities according to the entity of the question, the header can be filtered from the preset triplet database The triples whose information matches the candidate entity are regarded as candidate triples related to the question text.

之后,再根据预设过滤条件,从候选三元组中进一步筛选出目标三元组,以缩小后续的匹配范围,提高问答匹配效率。其中,预设过滤条件可以包括与三元组的字符长度、来源信息、编辑次数相关的条件。示例性地,预设过滤条件包括:将字符长度大于预设长度的三元组进行筛除;将三元组来源为指定来源的三元组进行筛除;将编辑次数小于预设次数的三元组进行筛除。After that, according to the preset filter conditions, the target triplet is further screened from the candidate triplet, so as to narrow the subsequent matching range and improve the question-answer matching efficiency. The preset filter conditions may include conditions related to the character length, source information, and editing times of the triplet. Exemplarily, the preset filtering conditions include: filtering out triples whose character length is greater than a preset length; filtering out triples whose source is a specified source; filtering out triples whose number of edits is less than the preset number of times. Tuples are filtered out.

可选地,所述将所述问句文本与所述候选文本进行匹配,确定目标回答信息,包括:Optionally, the matching of the question text with the candidate text to determine target answer information includes:

将所述问句文本分别与各个所述候选文本组成的各个语句对输入预设的二分类模型进行处理,得到各个候选文本分别对应的目标分类结果及对应的置信度;The question text is processed with each statement formed by each of the candidate texts, and the input preset two-classification model is processed to obtain the target classification result corresponding to each candidate text and the corresponding confidence level;

根据各个所述候选文本分别对应的目标分类结果及对应的置信度,确定目标回答信息。The target answer information is determined according to the target classification results and corresponding confidence levels corresponding to each of the candidate texts respectively.

本申请实施例中,预设的二分类模型为提前训练得到的能够对候选文本与问句文本的匹配结果进行二分类判别的双句二分类语言模型,其中,二分类的目标分类结果可以分为“能回答问题”及“不能回答问题”这两个类别。在一个实施例中,可以通过已标注分类类别的样本数据对预训练语言模型进行微调,从而得到该二分类模型。其中,每个样本数据为包含一个问句和一个答句的双句数据,样本数据的标签中,以“1”标识“能回答问题”,表示该双句数据中的答句能够回答其中的问句的问题;“0”标识“不能回答问题”,表示该双句数据中的答句不能够回答其中的问句的问题。以下示出了一些样本数据的示例:In the embodiment of the present application, the preset two-category model is a two-sentence two-category language model obtained by training in advance and capable of performing two-category discrimination on the matching result between the candidate text and the question text, wherein the target classification result of the two-category can be classified into There are two categories of "can answer the question" and "can't answer the question". In one embodiment, the pre-trained language model can be fine-tuned by using the sample data of the labeled classification categories, so as to obtain the binary classification model. Among them, each sample data is double-sentence data containing a question and an answer. In the label of the sample data, "1" is used to mark "can answer the question", indicating that the answer in the double-sentence data can answer the question. The question of the question; "0" indicates "cannot answer the question", indicating that the answer in the double sentence data cannot answer the question of the question. An example of some sample data is shown below:

1球星A有多高球星A的身高是xxxcm1 How tall is star A, star A's height is xxxcm

0球星A有多高球星A的体重是xxxkg0 How tall is star A? The weight of star A is xxxkg

1深圳有多少人深圳的人口是xxx万人1 How many people are there in Shenzhen? Shenzhen's population is xxx million

0深圳有多少人深圳的面积是xxx平方公里0 How many people are there in Shenzhen? The area of Shenzhen is xxx square kilometers

本申请实施例中,在确定当前的候选文本后,可以将当前的问句文本与各个候选文本分别组成各个语句对(也可称为双句数据);之后,将该语句对输入该二分类模型进行处理,即可得到该语句对中的候选文本对应的目标分类结果和置信度。其中,置信度为表示该候选文本被分为当前的目标分类结果的概率,其取值范围为[0,1]。In the embodiment of the present application, after the current candidate text is determined, the current question text and each candidate text can be respectively formed into sentence pairs (also referred to as double sentence data); after that, the sentence pairs are input into the binary classification After the model is processed, the target classification result and confidence level corresponding to the candidate text in the sentence pair can be obtained. Among them, the confidence is the probability that the candidate text is classified into the current target classification result, and its value range is [0, 1].

在一个实施例中,上述的对预训练语言模型可以为BERT模型(一种双向语言模型),输入该BERT模型的语句对(也称为双句)经过处理可以得到的CLS隐向量,基于该CLS隐向量可以得到该语句对中候选问句对应的置信度。In one embodiment, the above-mentioned pair of pre-trained language models can be a BERT model (a bidirectional language model), and the sentence pairs (also called double sentences) input into the BERT model can be processed to obtain a CLS latent vector, based on the CLS latent vector. The CLS latent vector can obtain the confidence corresponding to the candidate question in the sentence pair.

在确定各个候选文本分别对应的目标分类结果及对应的置信度后,可以从目标分类结果为“能回答问题”的候选文本中筛选出置信度最高的一个候选文本作为目标文本。之后,根据该目标文本,确定目标回答信息。After determining the target classification results corresponding to each candidate text and the corresponding confidence level, a candidate text with the highest confidence level can be selected from the candidate texts whose target classification result is "can answer the question" as the target text. Then, according to the target text, target answer information is determined.

本申请实施例中,由于能够基于预设的二分类模型准确地确定候选文本的目标分类结果和置信度,因此能够准确地从候选文本中确定出目标回答信息,提高问答匹配的准确性。In the embodiment of the present application, since the target classification result and confidence level of the candidate text can be accurately determined based on the preset binary classification model, the target answer information can be accurately determined from the candidate text, and the accuracy of question-answer matching can be improved.

应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence numbers of the steps in the above embodiments does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

实施例二:Embodiment 2:

图2示出了本申请实施例提供的一种问答匹配装置的结构示意图,为了便于说明,仅示出了与本申请实施例相关的部分:FIG. 2 shows a schematic structural diagram of a question and answer matching apparatus provided by an embodiment of the present application. For the convenience of description, only parts related to the embodiment of the present application are shown:

该问答匹配装置包括:获取单元21、问句实体确定单元22、三元组确定单元23、转换单元24和匹配单元25。其中:The question and answer matching apparatus includes: an acquisition unit 21 , a question entity determination unit 22 , a triple determination unit 23 , a conversion unit 24 and a matching unit 25 . in:

获取单元21,用于获取问句文本。The obtaining unit 21 is used to obtain the question text.

问句实体确定单元22,用于根据所述问句文本,确定问句实体。The question entity determination unit 22 is configured to determine the question entity according to the question text.

三元组确定单元23,用于根据所述问句实体,确定所述问句实体对应的目标三元组。The triplet determining unit 23 is configured to determine the target triplet corresponding to the question entity according to the question entity.

转换单元24,用于将所述目标三元组转换为自然语言形式,得到候选文本。The conversion unit 24 is configured to convert the target triplet into a natural language form to obtain candidate texts.

匹配单元25,用于将所述问句文本与所述候选文本进行匹配,确定目标回答信息。The matching unit 25 is configured to match the question text with the candidate text to determine target answer information.

可选地,所述问句实体确定单元22,具体用于将所述问句文本输入已训练的实体识别模型进行处理,得到问句实体。Optionally, the question entity determining unit 22 is specifically configured to input the question text into a trained entity recognition model for processing to obtain a question entity.

可选地,所述三元组确定单元23,包括:Optionally, the triple determination unit 23 includes:

候选实体确定模块,用于根据所述问句实体,从预设的实体库中确定候选实体;a candidate entity determination module, configured to determine candidate entities from a preset entity library according to the question entity;

目标三元组确定模块,用于根据所述候选实体,从预设的三元组数据库中确定所述目标三元组。A target triplet determination module, configured to determine the target triplet from a preset triplet database according to the candidate entity.

可选地,所述候选实体确定模块,包括:Optionally, the candidate entity determination module includes:

第一实体确定单元,用于根据所述问句实体,从所述实体库中获取与所述问句实体的字符相匹配的第一实体;a first entity determining unit, configured to obtain, according to the question entity, a first entity that matches the character of the question entity from the entity library;

候选实体确定单元,用于确定所述问句实体与所述第一实体之间的实体相似度,并根据所述实体相似度从所述第一实体中筛选出候选实体。A candidate entity determination unit, configured to determine the entity similarity between the question entity and the first entity, and filter out candidate entities from the first entity according to the entity similarity.

可选地,在所述候选实体确定单元中,所述确定所述问句实体与所述第一实体之间的实体相似度,包括:Optionally, in the candidate entity determining unit, the determining the entity similarity between the question entity and the first entity includes:

将所述问句实体进行分词及词性提取处理,确定所述问句实体对应的问句实体关键词;Perform word segmentation and part-of-speech extraction processing on the question entity, and determine the question entity keyword corresponding to the question entity;

将所述第一实体进行分词及词性提取处理,确定所述第一实体对应的第一实体关键词;Perform word segmentation and part-of-speech extraction processing on the first entity to determine the first entity keyword corresponding to the first entity;

将所述问句实体关键词与所述第一实体关键词进行词级别的相似度计算,得到所述实体相似度。Perform word-level similarity calculation on the question sentence entity keyword and the first entity keyword to obtain the entity similarity.

可选地,所述目标三元组确定模块,具体用于根据所述候选实体,从所述三元组数据库中获取头部信息与所述候选实体相匹配的三元组作为候选三元组;根据预设过滤条件,从所述候选三元组中筛选出目标三元组。Optionally, the target triplet determination module is specifically configured to obtain, according to the candidate entity, a triplet whose header information matches the candidate entity from the triplet database as a candidate triplet ; Screen out the target triplet from the candidate triplet according to the preset filter conditions.

可选地,所述匹配单元25,具体用于将所述问句文本分别与各个所述候选文本组成的各个语句对输入预设的二分类模型进行处理,得到各个候选文本分别对应的目标分类结果及对应的置信度;根据各个所述候选文本分别对应的目标分类结果及对应的置信度,确定目标回答信息。Optionally, the matching unit 25 is specifically configured to process each sentence composed of the question text and each of the candidate texts into a preset two-class model to obtain the target classification corresponding to each candidate text. The result and the corresponding confidence level; the target answer information is determined according to the target classification result and the corresponding confidence level corresponding to each of the candidate texts respectively.

需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information exchange, execution process and other contents between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For specific functions and technical effects, please refer to the method embodiments section. It is not repeated here.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated to different functional units, Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

实施例三:Embodiment three:

图3是本申请一实施例提供的电子设备的示意图。如图3所示,该实施例的电子设备3包括:处理器30、存储器31以及存储在所述存储器31中并可在所述处理器30上运行的计算机程序32,例如问答匹配程序。所述处理器30执行所述计算机程序32时实现上述各个问答匹配方法实施例中的步骤,例如图1所示的步骤S101至S105。或者,所述处理器30执行所述计算机程序32时实现上述各装置实施例中各模块/单元的功能,例如图2所示获取单元21至匹配单元25的功能。FIG. 3 is a schematic diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 3 , the electronic device 3 of this embodiment includes: a processor 30 , a memory 31 , and a computer program 32 stored in the memory 31 and executable on the processor 30 , such as a question-answer matching program. When the processor 30 executes the computer program 32 , the steps in each of the above-mentioned question-answer matching method embodiments are implemented, for example, steps S101 to S105 shown in FIG. 1 . Alternatively, when the processor 30 executes the computer program 32, the functions of the modules/units in the above device embodiments, such as the functions of the acquisition unit 21 to the matching unit 25 shown in FIG. 2, are implemented.

示例性的,所述计算机程序32可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器31中,并由所述处理器30执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序32在所述电子设备3中的执行过程。Exemplarily, the computer program 32 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 31 and executed by the processor 30 to complete the this application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 32 in the electronic device 3 .

所述电子设备3可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述电子设备可包括,但不仅限于,处理器30、存储器31。本领域技术人员可以理解,图3仅仅是电子设备3的示例,并不构成对电子设备3的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子设备还可以包括输入输出设备、网络接入设备、总线等。The electronic device 3 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The electronic device may include, but is not limited to, the processor 30 and the memory 31 . Those skilled in the art can understand that FIG. 3 is only an example of the electronic device 3 , and does not constitute a limitation on the electronic device 3 , and may include more or less components than those shown in the figure, or combine some components, or different components For example, the electronic device may further include an input and output device, a network access device, a bus, and the like.

所称处理器30可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 30 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

所述存储器31可以是所述电子设备3的内部存储单元,例如电子设备3的硬盘或内存。所述存储器31也可以是所述电子设备3的外部存储设备,例如所述电子设备3上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器31还可以既包括所述电子设备3的内部存储单元也包括外部存储设备。所述存储器31用于存储所述计算机程序以及所述电子设备所需的其他程序和数据。所述存储器31还可以用于暂时地存储已经输出或者将要输出的数据。The memory 31 may be an internal storage unit of the electronic device 3 , such as a hard disk or a memory of the electronic device 3 . The memory 31 may also be an external storage device of the electronic device 3, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the electronic device 3. card, flash card (Flash Card) and so on. Further, the memory 31 may also include both an internal storage unit of the electronic device 3 and an external storage device. The memory 31 is used to store the computer program and other programs and data required by the electronic device. The memory 31 can also be used to temporarily store data that has been output or will be output.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated to different functional units, Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

在本申请所提供的实施例中,应该理解到,所揭露的装置/电子设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/电子设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the above-described embodiments of the apparatus/electronic device are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units. Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium. Based on this understanding, the present application can implement all or part of the processes in the methods of the above embodiments, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the readable medium of the computer can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction area. For example, in certain jurisdictions, according to legislation and patent practice, computer readable medium Excluding electric carrier signals and telecommunications signals.

以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it is still possible to implement the above-mentioned implementations. The technical solutions described in the examples are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the application, and should be included in the within the scope of protection of this application.

Claims (10)

1.一种问答匹配方法,其特征在于,包括:1. a question and answer matching method, is characterized in that, comprises: 获取问句文本;Get the question text; 根据所述问句文本,确定问句实体;According to the question text, determine the question entity; 根据所述问句实体,确定所述问句实体对应的目标三元组;According to the question entity, determine the target triplet corresponding to the question entity; 将所述目标三元组转换为自然语言形式,得到候选文本;Converting the target triplet into a natural language form to obtain candidate text; 将所述问句文本与所述候选文本进行匹配,确定目标回答信息。Matching the question text and the candidate text to determine target answer information. 2.如权利要求1所述的问答匹配方法,其特征在于,所述根据所述问句文本,确定问句实体,包括:2. The question-answer matching method as claimed in claim 1, wherein, determining the question entity according to the question text, comprising: 将所述问句文本输入已训练的实体识别模型进行处理,得到问句实体。The question text is input into the trained entity recognition model for processing, and the question entity is obtained. 3.如权利要求1所述的问答匹配方法,其特征在于,所述根据所述问句实体,确定所述问句实体对应的目标三元组,包括:3. The question-answer matching method according to claim 1, wherein determining the target triplet corresponding to the question entity according to the question entity, comprising: 根据所述问句实体,从预设的实体库中确定候选实体;According to the question entity, determine a candidate entity from a preset entity library; 根据所述候选实体,从预设的三元组数据库中确定所述目标三元组。According to the candidate entity, the target triplet is determined from a preset triplet database. 4.如权利要求2所述的问答匹配方法,其特征在于,所述根据所述问句实体,从预设的实体库中确定候选实体,包括:4. The question-and-answer matching method of claim 2, wherein determining a candidate entity from a preset entity library according to the question entity, comprising: 根据所述问句实体,从所述实体库中获取与所述问句实体的字符相匹配的第一实体;According to the question entity, obtain a first entity matching the character of the question entity from the entity library; 确定所述问句实体与所述第一实体之间的实体相似度,并根据所述实体相似度从所述第一实体中筛选出候选实体。Determine the entity similarity between the question entity and the first entity, and filter out candidate entities from the first entity according to the entity similarity. 5.如权利要求4所述的问答匹配方法,其特征在于,所述确定所述问句实体与所述第一实体之间的实体相似度,包括:5. The question-answer matching method of claim 4, wherein the determining the entity similarity between the question entity and the first entity comprises: 将所述问句实体进行分词及词性提取处理,确定所述问句实体对应的问句实体关键词;Perform word segmentation and part-of-speech extraction processing on the question entity, and determine the question entity keyword corresponding to the question entity; 将所述第一实体进行分词及词性提取处理,确定所述第一实体对应的第一实体关键词;Perform word segmentation and part-of-speech extraction processing on the first entity to determine the first entity keyword corresponding to the first entity; 将所述问句实体关键词与所述第一实体关键词进行词级别的相似度计算,得到所述实体相似度。Perform word-level similarity calculation on the question sentence entity keyword and the first entity keyword to obtain the entity similarity. 6.如权利要求3所述的问答匹配方法,其特征在于,所述根据所述候选实体,从预设的三元组数据库中确定所述目标三元组,包括:6. The question-answer matching method according to claim 3, wherein determining the target triplet from a preset triplet database according to the candidate entity, comprising: 根据所述候选实体,从所述三元组数据库中获取头部信息与所述候选实体相匹配的三元组作为候选三元组;According to the candidate entity, the triplet whose header information matches the candidate entity is obtained from the triplet database as a candidate triplet; 根据预设过滤条件,从所述候选三元组中筛选出目标三元组。According to preset filter conditions, the target triplet is filtered out from the candidate triplet. 7.如权利要求1至6任意一项所述的问答匹配方法,其特征在于,所述将所述问句文本与所述候选文本进行匹配,确定目标回答信息,包括:7. The question-and-answer matching method according to any one of claims 1 to 6, wherein the matching of the question text with the candidate text to determine target answer information comprises: 将所述问句文本分别与各个所述候选文本组成的各个语句对输入预设的二分类模型进行处理,得到各个候选文本分别对应的目标分类结果及对应的置信度;The question text is processed with each statement formed by each of the candidate texts, and the input preset two-classification model is processed to obtain the target classification result corresponding to each candidate text and the corresponding confidence level; 根据各个所述候选文本分别对应的目标分类结果及对应的置信度,确定目标回答信息。The target answer information is determined according to the target classification results and corresponding confidence levels corresponding to each of the candidate texts respectively. 8.一种问答匹配装置,其特征在于,包括:8. A question and answer matching device, comprising: 获取单元,用于获取问句文本;Get unit, used to get the question text; 问句实体确定单元,用于根据所述问句文本,确定问句实体;The question entity determination unit is used to determine the question entity according to the question text; 三元组确定单元,用于根据所述问句实体,确定所述问句实体对应的目标三元组;The triplet determining unit is configured to determine the target triplet corresponding to the question entity according to the question entity; 转换单元,用于将所述目标三元组转换为自然语言形式,得到候选文本;a conversion unit for converting the target triplet into a natural language form to obtain candidate text; 匹配单元,用于将所述问句文本与所述候选文本进行匹配,确定目标回答信息。A matching unit, configured to match the question text with the candidate text to determine target answer information. 9.一种电子设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,当所述处理器执行所述计算机程序时,使得电子设备实现如权利要求1至7任一项所述方法的步骤。9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic The device implements the steps of the method as claimed in any one of claims 1 to 7. 10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,当所述计算机程序被处理器执行时,使得电子设备实现如权利要求1至7任一项所述方法的步骤。10. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the electronic device is made to implement any one of claims 1 to 7 the steps of the method.
CN202210704092.6A 2022-06-21 2022-06-21 Question and answer matching method and device, electronic equipment and storage medium Pending CN115221298A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210704092.6A CN115221298A (en) 2022-06-21 2022-06-21 Question and answer matching method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210704092.6A CN115221298A (en) 2022-06-21 2022-06-21 Question and answer matching method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115221298A true CN115221298A (en) 2022-10-21

Family

ID=83608838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210704092.6A Pending CN115221298A (en) 2022-06-21 2022-06-21 Question and answer matching method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115221298A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118227756A (en) * 2024-03-26 2024-06-21 北京环球医疗救援有限责任公司 A voice guidance system and method for large-model intelligent question and answer

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118227756A (en) * 2024-03-26 2024-06-21 北京环球医疗救援有限责任公司 A voice guidance system and method for large-model intelligent question and answer
CN118227756B (en) * 2024-03-26 2024-12-20 北京环球医疗救援有限责任公司 Voice guidance system and method for large-model intelligent question and answer

Similar Documents

Publication Publication Date Title
US11301637B2 (en) Methods, devices, and systems for constructing intelligent knowledge base
CN107436864B (en) Chinese question-answer semantic similarity calculation method based on Word2Vec
CN112784696B (en) Lip language identification method, device, equipment and storage medium based on image identification
CN108717408B (en) A sensitive word real-time monitoring method, electronic equipment, storage medium and system
CN116795973B (en) Text processing method and device based on artificial intelligence, electronic equipment and medium
CN110413787B (en) Text clustering method, device, terminal and storage medium
CN107679039A (en) The method and apparatus being intended to for determining sentence
CN110619051B (en) Question sentence classification method, device, electronic equipment and storage medium
CN111428028A (en) Information classification method based on deep learning and related equipment
US11120214B2 (en) Corpus generating method and apparatus, and human-machine interaction processing method and apparatus
WO2021063089A1 (en) Rule matching method, rule matching apparatus, storage medium and electronic device
CN105956053A (en) Network information-based search method and apparatus
CN110489548A (en) A kind of Chinese microblog topic detecting method and system based on semanteme, time and social networks
CN115203421A (en) Method, device and equipment for generating label of long text and storage medium
CN113761125B (en) Dynamic summary determination method and device, computing device and computer storage medium
CN112149389A (en) Resume information structured processing method and device, computer equipment and storage medium
CN118797005A (en) Intelligent question-answering method, device, electronic device, storage medium and product
CN116401344A (en) Method and device for searching table according to question
CN111126084A (en) Data processing method and device, electronic equipment and storage medium
CN115329754A (en) A text topic extraction method, device, device and storage medium
CN115017886A (en) Text matching method, text matching device, electronic device and storage medium
CN114328894A (en) Document processing method, document processing device, electronic equipment and medium
CN115221298A (en) Question and answer matching method and device, electronic equipment and storage medium
CN114385819B (en) Ontology construction method, device and related equipment in the field of environmental justice
CN116992329A (en) Automatic classification and identification method and device for public network sensitive data

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