Methods used to augment the dataset

By using the semantic knowledge base to expand the training data of the VQA system, the problems of high manual annotation costs and limited data volume are solved, automatic and low-cost training data generation is achieved, and the accuracy and training efficiency of the model are improved.

CN113535915BActive Publication Date: 2024-09-13BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110734340.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-09-28
Publication Date
2024-09-13
Estimated Expiration
2038-09-28

AI Technical Summary

Technical Problem

The training data of the existing VQA system mainly relies on manual annotation, which results in high cost, slow speed and limited training data volume, which affects the model training effect.

Method used

By obtaining questions and answers from existing training data, using the semantic knowledge base to determine associated new questions, and constructing new answers based on semantic relationships, we can expand the data set and improve the amount of training data and model accuracy.

Benefits of technology

It achieves automatic and low-cost generation of training data, significantly improving the accuracy and training efficiency of the VQA system model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113535915B
    Figure CN113535915B
Patent Text Reader

Abstract

The present disclosure provides a method for expanding question-answering data, which relates to the field of artificial intelligence, especially knowledge graphs and deep learning. The method includes obtaining a first question and a first answer corresponding to the first question, determining a second question semantically associated with the first question based on a semantic knowledge base; and determining a second answer corresponding to the second question based on the answer to the first question and the semantic relationship between the first question and the second question. According to an embodiment of the present disclosure, a knowledge base can be used to expand a data set.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of application number "201811142228.9" and titled "Method, device, apparatus and computer-readable medium for generating VAQ training data". Technical Field

[0002] Embodiments of the present disclosure relate to the computer field, specifically to the field of artificial intelligence, especially the field of knowledge graphs and deep learning, and more specifically to methods, devices, electronic devices, and computer-readable storage media for expanding data sets. Background Art

[0003] The VQA system involves multiple fields such as computer vision, natural language processing and knowledge representation (KR), and has become a hot topic in artificial intelligence research. In the VQA system, given an image, questions surrounding the image need to be answered. In other words, the image and the question need to be taken as input, and these two parts of information are combined to generate a human language as output. The current VQA system is implemented based on supervised machine learning methods, in which a large number of images and examples of questions and answers surrounding the image are used as training data to learn how to answer questions based on the content of the image. The effectiveness of this method directly depends on the amount of training data.

[0004] Currently, training data is usually obtained through manual annotation. For example, for a given input image, an annotator asks questions about the image and annotates the corresponding answers. This method is costly, slow, and has limited training data. It is expected to provide an improved solution to obtain training data so as to improve the effect of model training and thus improve the accuracy of the VQA system. Summary of the invention

[0005] According to an exemplary embodiment of the present disclosure, a technical solution for expanding a data set is provided.

[0006] In a first aspect of the present disclosure, a method for expanding a data set is provided, comprising: obtaining a first question and a first answer corresponding to the first question; determining, based on a semantic knowledge base, a second question semantically associated with the first question; and determining a second answer corresponding to the second question based on the answer to the first question and a semantic relationship between the first question and the second question.

[0007] In a second aspect of the present disclosure, a device for expanding a data set is provided, comprising: an acquisition unit configured to acquire a first question and a first answer corresponding to the first question; a question determination unit configured to determine, based on a semantic knowledge base, a second question semantically associated with the first question; and an answer determination unit configured to determine a second answer corresponding to the second question based on the answer to the first question and a semantic relationship between the first question and the second question.

[0008] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: one or more processors; and a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to the first aspect of the present disclosure.

[0009] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method according to the first aspect of the present disclosure is implemented.

[0010] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0012] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure may be implemented;

[0013] Figure 2 A flowchart of a method for generating training data in a VQA system according to an embodiment of the present disclosure is shown;

[0014] Figure 3 A flowchart of a method for determining a second problem according to an embodiment of the present disclosure is shown;

[0015] Figure 4 A schematic block diagram showing an apparatus for generating training data in a VQA system according to an embodiment of the present disclosure; and

[0016] Figure 5 A block diagram of a computing device in which embodiments of the present disclosure may be implemented is shown. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.

[0019] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.

[0020] Figure 1 1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure may be implemented. The example environment 100 shows a model training process for a VQA system. Figure 1 As shown, the example environment 100 may include a storage device 110 and a computing device 120. The storage device 110 may be used to store training data 130 for the VQA system. It should be understood that the storage device 110 may be any storage device known in the art or developed in the future. The computing device 120 may be a server or client device that supports the VQA model 140, such as a search engine server, a database server, a computing cluster, etc. The computing device 120 may obtain the training data 130 from the storage device 110 for use in training the VQA model. The training data 130 may include an image, a question for the image, and a collection of answers corresponding to the question. It should be understood that Figure 1 This is only an example, and the present application is not limited thereto. In fact, the embodiments of the present disclosure can be applied to any scenario of VQA system model training.

[0021] As mentioned above, the training data 130 is currently determined by manual annotation. This method is costly, slow, and has a limited amount of training data. In view of this, the basic concept of the present application is to automatically expand the training data by using semantics based on the existing training data through computer implementation. In this way, the training data can be obtained automatically, at low cost and efficiently, and the amount of training data can be significantly increased, thereby improving the accuracy of the VQA system model.

[0022] Combine the following Figure 2 and Figure 3An exemplary implementation of a scheme for generating training data for a VQA system according to an embodiment of the present disclosure is described in more detail. Figure 2 A flowchart of a method 200 for generating training data in a VQA system according to an embodiment of the present disclosure is shown. The method 200 may be used, for example, in Figure 1 It should be understood that the method 200 may also be implemented at other computing devices separate from the computing device 120 supporting the VQA model 140. In other words, the generation of training data may be implemented separately from the training of the VQA model.

[0023] like Figure 2 As shown, in block 210, a first set of training data for the VQA system may be obtained. According to an embodiment of the present disclosure, the first set of training data may include a first question for an image in the VQA system and a first answer corresponding to the first question. Figure 1 As shown in the training data 130, for each image in the VQA system, at least one question and an answer corresponding to the question may be included. According to some embodiments of the present disclosure, the image may be in the form of a picture. In an alternative embodiment, the image may be a frame in video data.

[0024] According to some embodiments of the present disclosure, the first set of training data can be obtained from an existing training data set for the VQA system obtained by manual annotation. In an alternative embodiment, the first set of training data can be obtained from an existing training data set for the VQA system obtained by computer implementation. Through the scheme of the embodiments of the present disclosure, the existing training data set can be automatically expanded, thereby increasing the amount of training data, thereby enhancing the effect of VQA system model training.

[0025] Continue to refer Figure 2 , in box 220, a second question semantically associated with the first question can be determined. According to an embodiment of the present disclosure, the second question can be constructed based on the first question using semantic analysis. In some embodiments, the keywords in the first question can be determined based on semantic analysis, and then the extended words semantically associated with the keywords can be determined, and the second question can be constructed based on the extended words. It should be understood that in an embodiment of the present disclosure, semantic analysis can be implemented based on any semantic analysis algorithm or technology for natural language known in the art or developed in the future. In addition, the questions and answers in the embodiments of the present disclosure can be expressed in any natural language. Examples of natural languages ​​include, but are not limited to, Chinese, English, German, Spanish, French, etc. In the following description, Chinese and English will be used as examples of natural languages. However, it should be understood that this is only for the purpose of example and is not intended to limit the scope of the present disclosure. The embodiments of the present disclosure can be applicable to various natural languages.

[0026] According to some embodiments of the present disclosure, the keywords in the first question may be determined based on the type of the first question, such as sentence pattern, sentence structure, etc., so as to facilitate the construction of the subsequent second question. Figure 3 An exemplary implementation of a solution for constructing the second problem according to an embodiment of the present disclosure is described in detail. Figure 3 FIG. 3 is a flow chart of a method 300 for determining a second problem according to an embodiment of the present disclosure. Similar to the method 200, the method 300 may be performed in, for example, Figure 1 The VQA model 140 may be implemented at the computing device 120 or may be implemented at another computing device separate from the computing device 120 supporting the VQA model 140 .

[0027] like Figure 3 As shown, after obtaining the first set of training data for images in the VQA system (such as Figure 2 After the first question is answered in box 210, in box 310, it is determined whether the type of the first question for the image is a general question or a special question. A general question refers to a question that can be answered with "Yes" or "No" or similar words. A special question is a question that contains a special question word. More generally, a question other than a general question is a special question.

[0028] According to some embodiments of the present disclosure, the first question can be matched with a set of special question words to determine whether the type of the first question is a general question or a special question. If the match fails, the type of the first question is determined to be a general question. If the match is successful, the type of the first question is determined to be a special question. According to an embodiment of the present disclosure, the set of special question words may include, but is not limited to: "why", "who", "how", "what", "when", "how many / how much".

[0029] In an alternative embodiment, it is possible to determine whether the type of the first question is a general question or a special question based on the type of the first answer. For example, if the type of the first answer is an affirmative or negative answer, the type of the first question is determined to be a general question. If the type of the first answer is not an affirmative or negative answer, the type of the first question is determined to be a special question. It should be understood that any other suitable method can be used to determine the type of the first question, without being limited to the above examples.

[0030] If it is determined at block 310 that the type of the first question is a special question, proceed to block 320. At block 320, based on the first question and the first answer, the special question is converted into a general question. For example, Figure 1As shown in 130 in FIG. 1 , the question is: How many people are there in the image? The answer is: 3 people. The question contains "how many", so it is a special question. Accordingly, the general question after conversion is: Are there 3 people in the image? It should be understood that the conversion of the question can be implemented based on any appropriate grammatical analysis technology, and in order to avoid confusing the present invention, it will not be described in detail here.

[0031] In block 330, keywords are extracted from the converted general question sentences. According to some embodiments of the present disclosure, keywords may be one or more of the subject, object, etc. in the question sentence. According to embodiments of the present disclosure, keyword extraction may be implemented based on any suitable word segmentation algorithm known in the art. In order to avoid confusing the present invention, this will not be described in detail here.

[0032] For example, in the above example, the general question sentence after conversion is "Are there 3 people in the image?", from which the keyword "3" can be extracted.

[0033] If it is determined in block 310 that the type of the first question is a general question, the process proceeds to block 330 to extract keywords.

[0034] In block 340, it is determined whether the keyword matches a predetermined word in the predetermined word set. According to an embodiment of the present disclosure, the predetermined word set includes at least one of the following: numbers, letters, and characters.

[0035] If it is determined in box 340 that the keyword matches a predetermined word in the predetermined word set, then in box 350, based on semantic analysis, an extended word of the matched predetermined word is determined. According to an embodiment of the present disclosure, an extended word of a number may include one or more numbers other than the number. According to an embodiment of the present disclosure, an extended word of a letter may include one or more letters other than the letter. According to an embodiment of the present disclosure, an extended word of a character may include one or more characters other than the character. According to an embodiment of the present disclosure, the number or type of extended words may be determined based on experience or need.

[0036] For example, in the above example, for the converted general question sentence "Are there 3 people in the image?", the keyword is "3", and it can be determined that the keyword matches a number in the predetermined word set, thereby determining that the keyword's extended word can be other numbers other than "3", such as 1, 4, and 6. It should be understood that the numbers here are only examples, and in other embodiments, they can be any other numbers.

[0037] If it is determined in box 340 that the keyword does not match all the predetermined words in the predetermined word set, then enter box 360 to determine the extended word of the keyword based on semantic analysis. According to an embodiment of the present disclosure, the extended word may include at least one of the following: antonym, synonym, hypernym and hyponym. Table 1 below shows some examples of semantic relationships.

[0038] Table 1

[0039]

[0040] In some embodiments of the present disclosure, the extended words of the keyword can be determined with the help of a semantic word library or a semantic dictionary. The semantic word library or the semantic dictionary can be obtained by any related technology known in the art or developed in the future, and the embodiments of the present application do not impose any restrictions on this. According to the embodiments of the present disclosure, the number or type of extended words can be determined based on experience or needs.

[0041] For example, Figure 1 As shown in 130, the question is: What color is the batsman's top? The answer is: red. By matching with the set of special question words, it is determined that the question is a special question sentence. The converted general question sentence is "Is the color of the batsman's top red?". The keyword "red" can be extracted. Since red, blue, yellow, etc. are all hyponyms of colors, it can be determined that "blue" is an extended word of the keyword "red". It should be understood that the embodiments of the present application are not limited to this, and may also include various other examples. For the sake of brevity, it will not be repeated here.

[0042] After the expansion word is determined in box 350 or 360, box 370 is entered to replace the key words in the first question with the expansion word. Thus, the second question is constructed from the first question. For example, in the previous example, through the expansion word replacement, a new question "Is there one person in the image?" can be constructed from the question "How many people are there in the image?" and the answer "3 people". For example, a new question "Is the color of the batsman's top red?" can be constructed from the question "Is the color of the batsman's top blue?".

[0043] Back Reference Figure 2 After constructing the second question, enter box 230, determine the second answer corresponding to the second question based on the first question and the first answer, so as to obtain a second set of training data for the image in the VQA system. The second set of training data includes the second question and the second answer. According to some embodiments of the present disclosure, the second answer can be determined based on the logical relationship between the first question and the first answer and the semantic relationship between the first question and the second question. It should be understood that the second answer can be determined from the first question, the first answer and the second question based on other reasoning methods, and is not limited to the embodiments of the present disclosure.

[0044] For example, in the previous example, from the question "How many people are there in the image?" and the answer "3 people" and the constructed question "Is there a person in the image?", a new answer "No" can be obtained through logical reasoning. Therefore, a second set of training data including "Question: Is there a person in the image? Answer: No" is constructed.

[0045] For example, from the question "What color is the batsman's top?" and the answer "red" and the constructed question "Is the color of the batsman's top blue?", a new answer "no" can be obtained through logical reasoning. Therefore, a second set of training data including "Question: Is the color of the batsman's top blue? Answer: No" is constructed. The above logical reasoning can be implemented by any relational reasoning algorithm known in the art or developed in the future. In order to avoid confusing the present invention, it will not be described here.

[0046] So far combined Figure 2 and Figure 3 A method for generating training data in a VQA system according to an embodiment of the present disclosure is described. According to an embodiment of the present disclosure, training data for a VQA system is generated by a computer-implemented method, so that compared with the traditional manual annotation method, training data can be automatically and inexpensively generated, thereby improving operational efficiency. In addition, according to an embodiment of the present disclosure, based on existing training data for VQA, a semantic knowledge base can be used to expand the training data, thereby greatly increasing the amount of training data, thereby improving the accuracy of VQA system model training.

[0047] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0048] The embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 4 FIG. 4 is a schematic block diagram of an apparatus 400 for generating training data in a VQA system according to an embodiment of the present disclosure. The apparatus 400 may be used, for example, in Figure 1 The computing device 120 is implemented as Figure 4 As shown, the apparatus 400 may include an acquisition unit 410 , a question determination unit 420 , and an answer determination unit 430 .

[0049] In some embodiments, the acquisition unit 410 may be configured to acquire a first set of training data for the VQA system, the first set of training data including a first question for an image in the VQA system and a first answer corresponding to the first question. According to an embodiment of the present disclosure, the acquisition unit 410 may acquire the first set of training data from an existing training data set for the visual question answering system obtained through manual annotation.

[0050] In some embodiments, the question determination unit 420 may be configured to determine a second question that is semantically associated with the first question. According to some embodiments of the present disclosure, the question determination unit 420 may include (not shown): a keyword determination unit configured to determine keywords in the first question based on the type of the first question; an expansion word determination unit configured to determine expansion words associated with the keywords based on semantic analysis; and a construction unit configured to construct the second question based on the expansion words.

[0051] In some embodiments, the keyword determination unit may include: an extraction unit, configured to extract the keywords from the general question in response to the type of the first question being a general question; and a conversion unit, configured to convert the special question into a general question based on the first question and the first answer in response to the type of the first question being a special question, and extract the keywords from the converted general question.

[0052] In some embodiments, the extended word determination unit may include: a matching unit, configured to determine, in response to the keyword matching a predetermined word in a predetermined word set, an extended word of the matched predetermined word based on semantic analysis; and in response to the keyword not matching all predetermined words in the predetermined word set, determine the extended word of the keyword.

[0053] In some embodiments, the predetermined word set may include at least one of the following: numbers, letters, and characters. In some embodiments, the expanded words may include at least one of the following: antonyms, synonyms, hypernyms, and hyponyms.

[0054] In some embodiments, the constructing unit may replace the keywords in the first question with the expanded words to construct the second question.

[0055] In some embodiments, the answer determination unit 430 may determine the second answer based on a logical relationship between the first question and the first answer and a semantic relationship between the first question and the second question.

[0056] It should be understood that each unit described in the device 400 is respectively related to the reference Figure 2 and Figure 3 Each step in the methods 200 and 300 described above corresponds. In addition, the operations and features of the apparatus 400 and the units included therein correspond to those described above in conjunction with Figure 2 and Figure 3 The operations and features described above are the same and have the same effects, and the specific details are not repeated here.

[0057] The units included in the device 400 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units in the device 400 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0058] Figure 4 The units shown in the can be partially or completely implemented as hardware modules, software modules, firmware modules or any combination thereof. In particular, in some embodiments, the processes, methods or procedures described above can be implemented by hardware in the storage system or a host corresponding to the storage system or other computing devices independent of the storage system.

[0059] Figure 5 Schematic block diagram of an exemplary computing device 500 that can be used to implement the embodiments of the present disclosure. The device 500 can be used to implement Figure 1 The computing device 120 of the present invention. As shown in the figure, the device 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 502 or computer program instructions loaded from a storage unit 808 to a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0060] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0061] The processing unit 501 performs the various methods and processes described above, such as methods 200 and 300. For example, in some embodiments, methods 200 and 300 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the CPU 501, one or more steps of the methods 200 and 300 described above may be performed. Alternatively, in other embodiments, the CPU 501 may be configured to perform methods 200 and 300 in any other suitable manner (e.g., by means of firmware).

[0062] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0063] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0064] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0065] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A method for expanding a data set, comprising: Obtaining a first question and a first answer corresponding to the first question; Determining, based on the semantic knowledge base, a second question semantically associated with the first question; as well as Based on the logical relationship between the first question and the first answer and the semantic relationship between the first question and the second question, a second answer corresponding to the second question and different from the first answer is directly determined.

2. The method according to claim 1, wherein determining a second question associated with the first question based on a semantic knowledge base comprises: Determine keywords in the first question based on the type of the first question Determining, based on a semantic word library, an expansion word associated with a keyword of the first question; as well as Based on the expanded word, the second question is constructed.

3. The method according to claim 2, wherein determining keywords of the first question comprises: In response to the type of the first question being a general question sentence, extracting the keyword from the general question sentence; as well as In response to the type of the first question being a special question, the first question is converted into a general question based on the first question and the first answer, and the keyword and the expansion word associated with the keyword are extracted from the converted general question.

4. The method according to claim 2, wherein determining an expansion word associated with the keyword comprises: In response to the keyword matching a predetermined word in the predetermined word set, Based on semantic analysis, determining a matching extended word of the predetermined word; as well as In response to the keyword not matching any of the predetermined words in the predetermined word set, an expanded word of the keyword is determined. The method according to claim 4 , wherein the predetermined word set includes at least one of the following: numbers, letters, and characters. The method according to claim 2 , wherein the expanded word comprises at least one of the following: antonyms, synonyms, hypernyms, and hyponyms.

7. The method of claim 2, wherein constructing the second question comprises: The keywords in the first question are replaced with the expanded words to construct the second question.

8. An apparatus for expanding a data set, comprising: an acquisition unit, configured to acquire a first question and a first answer corresponding to the first question; a question determination unit configured to determine, based on a semantic knowledge base, a second question semantically associated with the first question; The answer determination unit is configured to directly determine a second answer corresponding to the second question that is different from the first answer based on a logical relationship between the first question and the first answer and a semantic relationship between the first question and the second question.

9. The apparatus according to claim 8, wherein the problem determination unit comprises: a keyword determination unit, configured to determine keywords in the first question based on the type of the first question; an expansion word determination unit, configured to determine an expansion word associated with the keyword based on semantic analysis; as well as A constructing unit is configured to construct the second question based on the expanded word.

10. The device according to claim 9, wherein the keyword determination unit comprises: an extraction unit, configured to extract the keyword from the general question sentence in response to the type of the first question being a general question sentence; as well as The conversion unit is configured to, in response to the type of the first question being a special question sentence, convert the special question sentence into a general question sentence based on the first question and the first answer, and extract the keyword from the converted general question sentence.

11. The apparatus according to claim 9, wherein the expansion word determination unit comprises: A matching unit, configured to determine, in response to the keyword matching a predetermined word in the predetermined word set, an expansion word of the matched predetermined word based on semantic analysis; And in response to the keyword not matching any of the predetermined words in the predetermined word set, determining an expanded word of the keyword.

12. The apparatus according to claim 11, wherein the predetermined word set comprises at least one of the following: numbers, letters, and characters.

13. The apparatus according to claim 9, wherein the expanded word comprises at least one of the following: antonyms, synonyms, hypernyms, and hyponyms.

14. The apparatus according to claim 9, wherein the constructing unit replaces the key words in the first question with the expanded words to construct the second question.

15. An electronic device, comprising: one or more processors; as well as A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

16. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.