Method and apparatus for generating conflict sentence

The method employs neural network-based models to generate conflict sentences, addressing the lack of engaging narratives in automated story generation by effectively introducing conflict elements, thus enhancing story engagement.

WO2024195908A1PCT designated stage expired Publication Date: 2024-09-26NCSOFT CORP +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/KR2023/003851
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Current automated story generation systems fail to create engaging narratives due to their inability to effectively incorporate conflict elements, resulting in monotonous stories.

Method used

A method and device utilizing artificial neural network-based inference models, specifically fine-tuned transformer-based language models, to generate conflict sentences by determining the goal of a seed sentence and introducing conflict elements, with a classification model to ensure the generated sentences accurately represent conflict.

Benefits of technology

Enables the creation of stories that incorporate conflict, thereby increasing reader interest and avoiding monotony by accurately identifying and generating conflict elements within the narrative.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2023003851_26092024_PF_FP
    Figure KR2023003851_26092024_PF_FP
Patent Text Reader

Abstract

Disclosed are a method and apparatus for generating a conflict sentence. The method for generating a conflict sentence, according to an embodiment, comprises the steps of: generating a first output sentence describing a target of a subject of a seed sentence on the basis of the seed sentence, by using a first inference model; and generating a second output sentence describing a conflict element for the first output sentence on the basis of the seed sentence and the first output sentence, by using a second inference model.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for generating conflict sentences

[0001] The disclosed embodiments relate to conflict sentence generation techniques.

[0002] Conflict, whether external or internal, is a key element that piques readers' interest and keeps them reading until the end. While research into automatically generating stories using computers has been steadily progressing, these studies generally result in monotonous stories devoid of conflict.

[0003] The disclosed embodiments are intended to provide a method and device for generating conflict sentences.

[0004] A method for generating a conflict sentence according to one embodiment is a method performed by a computing device including one or more processors, the method including: using a first inference model, generating a first output sentence describing a target of a subject of a seed sentence based on the seed sentence; and using a second inference model, generating a second output sentence describing a conflict element for the first output sentence based on the seed sentence and the first output sentence.

[0005] The above first inference model may be a model based on an artificial neural network trained to perform common sense-based inference using a pre-built knowledge base as learning data.

[0006] The above first inference model may be a model that fine-tunes a pre-trained transformer-based language model using the pre-built knowledge base.

[0007] The second inference model may be an artificial neural network-based model trained using first learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the target of the subject of the premise sentence, and a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence.

[0008] The second inference model may be a model that fine-tunes a pre-trained transformer-based language model using the first learning data.

[0009] The method may further include an operation of determining whether the second output sentence describes a conflict element with respect to the first output sentence using a classification model.

[0010] The above classification model may be an artificial neural network-based model trained using second learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the goal of the subject of the premise sentence, a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence, and a non-conflict sentence pre-classified as describing a non-conflict element for the hypothesis sentence.

[0011] The above classification model may be a model that fine-tunes a pre-learned transformer-based language model using the second learning data.

[0012] The above classification model outputs a preset classification label indicating whether the second output sentence describes a conflict element for the first output sentence based on the seed sentence, the first output sentence, and the second output sentence, and the determining operation can determine whether the second output sentence describes a conflict element for the first output sentence based on the classification label.

[0013] A conflict sentence generation device according to one embodiment comprises: one or more processors; and a memory storing one or more programs executed by the one or more processors, wherein the one or more processors generate a first output sentence describing a target of a subject of a seed sentence based on the seed sentence using a first inference model, and generate a second output sentence describing a conflict element for the first output sentence based on the seed sentence and the first output sentence using a second inference model.

[0014] The above first inference model may be a model based on an artificial neural network trained to perform common sense-based inference using a pre-built knowledge base as learning data.

[0015] The above first inference model may be a model that fine-tunes a pre-trained transformer-based language model using the pre-built knowledge base.

[0016] The second inference model may be an artificial neural network-based model trained using first learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the target of the subject of the premise sentence, and a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence.

[0017] The second inference model may be a model that fine-tunes a pre-trained transformer-based language model using the first learning data.

[0018] The one or more processors may use a classification model to determine whether the second output sentence describes a conflict element with respect to the first output sentence.

[0019] The above classification model may be an artificial neural network-based model trained using second learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the goal of the subject of the premise sentence, a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence, and a non-conflict sentence pre-classified as describing a non-conflict element for the hypothesis sentence.

[0020] The above classification model may be a model that fine-tunes a pre-learned transformer-based language model using the second learning data.

[0021] The classification model outputs a preset classification label indicating whether the second output sentence describes a conflict element with respect to the first output sentence based on the seed sentence, the first output sentence, and the second output sentence, and the one or more processors can determine whether the second output sentence describes a conflict element with respect to the first output sentence based on the classification label.

[0022] According to the disclosed embodiments, a target sentence is generated by inferring the target of the subject of the seed sentence based on the seed sentence, and a sentence including a conflict element for the target sentence is generated based on the seed sentence and the target sentence, thereby enabling generation of a story including a conflict that stimulates the interest of the reader, rather than a monotonous story generation without conflict.

[0023] Fig. 1 is a diagram showing the configuration of a conflict sentence generation device according to one embodiment.

[0024] FIG. 2 is a diagram illustrating an example of generating a first output sentence using a first inference model according to one embodiment.

[0025] FIG. 3 is a diagram illustrating an example of generating a second output sentence using a second inference model according to one embodiment.

[0026] Fig. 4 is a configuration diagram of a conflict sentence generation device according to an additional embodiment.

[0027] FIG. 5 is a diagram showing an example of generating a classification label using a classification model according to one embodiment.

[0028] Figure 6 is a flowchart of a method for generating conflict sentences according to one embodiment.

[0029] Figure 7 is a flowchart of a method for generating conflict sentences according to an additional embodiment.

[0030] FIG. 8 is a block diagram illustrating a computing environment including a computing device according to one embodiment.

[0031] Hereinafter, specific embodiments will be described with reference to the drawings. The following detailed description is provided to facilitate a comprehensive understanding of the methods, devices, and / or systems described herein. However, these are merely examples and the present invention is not limited thereto.

[0032] In describing the embodiments, if a detailed description of a related known technology is judged to unnecessarily obscure the main point, the detailed description will be omitted. In addition, the terms described below are terms defined in consideration of function, and this may vary depending on the intention or custom of the user or operator. Therefore, the definitions should be made based on the contents throughout this specification. The terminology used in the detailed description is only for the purpose of describing the embodiments and should not be limited in any way. Unless clearly used otherwise, the singular form includes the plural form. In this description, expressions such as “comprises” or “comprising” are intended to indicate certain features, numbers, steps, operations, elements, parts or combinations thereof, and should not be construed to exclude the presence or possibility of one or more other features, numbers, steps, operations, elements, parts or combinations thereof other than those described.

[0033] Fig. 1 is a diagram showing the configuration of a conflict sentence generation device according to one embodiment.

[0034] Referring to FIG. 1, a conflict sentence generation device (100) according to one embodiment includes a first sentence generation unit (110) and a second sentence generation unit (120).

[0035] According to one embodiment, the first sentence generation unit (110) and the second sentence generation unit (120) may be implemented using one or more physically separate devices, or may be implemented by one or more hardware processors or a combination of one or more hardware processors and software, and may not be clearly distinguished in specific operations, unlike the illustrated example.

[0036] The first sentence generation unit (110) uses the first inference model to generate a first output sentence that describes the goal of the subject of the seed sentence based on the seed sentence.

[0037] In one embodiment, a seed sentence may be a sentence that includes a subject and describes the subject's state, situation, emotion, thought, action, etc. Furthermore, the target of the subject of the seed sentence may refer to a state, situation, emotion, thought, or action of the subject that may occur as a premise or cause of the subject's state, situation, emotion, thought, or action described in the seed sentence.

[0038] According to one embodiment, the first inference model may be an artificial neural network-based language model trained to infer the target of the subject of the seed sentence based on the seed sentence. Specifically, according to one embodiment, the first inference model may be trained to perform common sense-based inference on the target of the subject of the seed sentence input to the first inference model by using a pre-built knowledge base as training data. Specifically, the first inference model may be a model that fine-tunes a pre-trained transformer-based language model, such as BART (Bidirectional Auto-Regressive Transformer), T5 (Text-to-Text Transfer Transformer), GPT-2, GPT-2 XL, GPT-3, BERT (Bidirectional Encoder Representations from Transformers), RoBERTa (Robustly optimized BERT approach), ALBERT (A Lite BERT), etc., using a pre-built knowledge base.

[0039] FIG. 2 is a diagram illustrating an example of generating a first output sentence using a first inference model according to one embodiment.

[0040] In the example illustrated in FIG. 2, the first inference model (210) is assumed to be a model that is fine-tuned using a knowledge base based on a pre-trained BART model including a bidirectional encoder (211) and an autoregressive decoder (212) based on a transformer model. However, the first inference model (210) is sufficient as a trained model that can generate a sentence that infers the target of the subject of the seed sentence based on the seed sentence, and the artificial neural network structure and learning method of the first inference model (210) are not limited to a specific embodiment.

[0041] Referring to FIG. 2, a bidirectional encoder (211) can receive a seed sentence (220), a relation token (230), and a special token (240) as input and generate a multidimensional vector corresponding to the seed sentence (220). At this time, the special token (240), '[GEN]', indicates that the first inference model (210) should generate a sentence following '[GEN]', and the relation token (230), 'xWant', indicates that the sentence to be generated by the first inference model (210) should be an inference of the goal of the subject (221) of the seed sentence (220).

[0042] The autoregressive decoder (212) can receive a multidimensional vector generated by a bidirectional encoder (211) as input and generate a sentence (250) that infers the target of the subject (221) of the seed sentence (220) in an autoregressive manner.

[0043] Meanwhile, the first sentence generation unit (120) can generate a first output sentence (260) by replacing the first word 'to' of the sentence (250) generated by the autoregressive decoder (212) with the subject (221) of the seed sentence (220).

[0044] Meanwhile, the input format of the first inference model (210) is not necessarily limited to the example illustrated in FIG. 2, and may be changed in various ways depending on the type of the first inference model (210), the learning method for the first inference model (210), etc.

[0045] Referring again to FIG. 1, the second sentence generation unit (120) uses the second inference model to generate a second output sentence that describes a conflict element for the first output sentence based on the seed sentence and the first output sentence.

[0046] In one embodiment, a conflict element for the first output sentence may refer to an element that weakens the likelihood that the subject of the seed sentence will achieve the goal described in the first output sentence. For example, a conflict element for the first output sentence may be a state, emotion, thought, action, or surrounding situation of the subject that hinders the likelihood that the state, emotion, thought, or action of the subject described in the seed sentence will lead to the state, emotion, thought, or action of the subject described in the first output sentence.

[0047] In one embodiment, the second inference model may be an artificial neural network-based language model trained to generate conflict sentences for a target sentence based on a seed sentence and a target sentence for the seed sentence. In this case, the target sentence for the seed sentence may refer to a sentence describing the goal of the subject of the seed sentence, and the conflict sentence for the target sentence may refer to a sentence describing a conflict element for the target sentence.

[0048] According to one embodiment, the second inference model can be trained to infer a conflict sentence for the hypothesis sentence from the premise sentence and the hypothesis sentence using first training data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the target of the subject of the premise sentence, and a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence. Specifically, the second inference model can be a model that fine-tunes a language model based on a pre-trained transformer model, such as BART, T5, GPT-2, GPT-2 XL, GPT-3, BERT, RoBERTa, ALBERT, etc., using the first training data.

[0049] FIG. 3 is a diagram illustrating an example of generating a second output sentence using a second inference model according to one embodiment.

[0050] In the example illustrated in FIG. 3, the second inference model (310) is assumed to be a fine-tuned pre-trained GPT-2 model using the first training data. However, the second inference model (310) is sufficient as a trained model capable of generating conflict sentences for a target sentence from a seed sentence and a target sentence corresponding to the seed sentence, and the artificial neural network structure and training method of the second inference model (310) are not limited to a specific embodiment.

[0051] Referring to FIG. 3, the second inference model (310) can receive a seed sentence (320) and a first output sentence (330) generated based on the seed sentence (320) as a premise sentence and a hypothesis sentence, respectively, and generate a second output sentence (340) that describes a conflict element for the first output sentence (330).

[0052] Meanwhile, the input of the second inference model (310) may further include special tokens “[premise]”, “[hypo]”, and “[weakener]” in addition to the seed sentence (320) and the first output sentence (330). “[premise]” and “[hypo]” are tokens for distinguishing between premise sentences and hypothesis sentences, and “[weakener]” is a token indicating that the second inference model (310) should infer a conflict sentence.

[0053] Meanwhile, the input format of the second inference model (310) is not necessarily limited to the example shown in FIG. 3, and may be changed in various ways depending on the type of the second inference model (310) or the learning method for the second inference model (310).

[0054] Fig. 4 is a configuration diagram of a conflict sentence generation device according to an additional embodiment.

[0055] Referring to FIG. 4, a conflict sentence generation device (100) according to an additional embodiment may further include a determination unit (130).

[0056] According to one embodiment, the first sentence generation unit (110), the second sentence generation unit (120), and the determination unit (130) may be implemented using one or more physically separate devices, or may be implemented by one or more hardware processors or a combination of one or more hardware processors and software, and may not be clearly distinguished in specific operations, unlike the illustrated example.

[0057] The judgment unit (130) can use a classification model to determine whether the second output sentence generated by the second sentence generation unit (120) describes a conflict element with respect to the first output sentence.

[0058] According to one embodiment, the classification model may output a preset classification label indicating whether the second output sentence describes a conflict element for the first output sentence based on the seed sentence, the first output sentence, and the second output sentence, and the determination unit (130) may determine whether the second output sentence describes a conflict element for the first output sentence based on the classification label output by the classification model.

[0059] According to one embodiment, the classification model may be an artificial neural network-based model trained using second learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing a target of the subject of the premise sentence, a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence, and a non-conflict sentence pre-classified as describing a non-conflict element for the hypothesis sentence.

[0060] Here, according to one embodiment, a non-conflict element for a hypothetical sentence may refer to an element that enhances the likelihood that the subject of the premise sentence will achieve the goal described in the hypothetical sentence. For example, a non-conflict element for a hypothetical sentence may be a state, emotion, thought, action, or surrounding situation of the subject that enhances the likelihood that the state, emotion, thought, or action of the subject described in the premise sentence will lead to the state, emotion, thought, or action of the subject described in the hypothetical sentence.

[0061] According to one embodiment, the classification model may be a binary classification model trained to output a first label corresponding to a conflict sentence from the premise sentences, hypothesis sentences, and conflict sentences included in the second learning data, and to output a second label corresponding to a non-conflict sentence from the premise sentences, hypothesis sentences, and non-conflict sentences included in the second learning data. Specifically, the classification model may be a model that fine-tunes a pre-trained transformer-based language model, such as BART, T5, GPT-2, GPT-2 XL, GPT-3, BERT, RoBERTa, ALBERT, etc., using the second learning data.

[0062] FIG. 5 is a diagram showing an example of generating a classification label using a classification model according to one embodiment.

[0063] In the example illustrated in FIG. 5, the classification model (510) is assumed to be a fine-tuned language model based on a pre-trained RoBERTa model using the second learning data. However, the classification model (510) is sufficient as a model that can generate a label indicating whether the query sentence contains a conflict element with respect to the target sentence from a seed sentence, a target sentence for the seed sentence, and a query sentence using the second learning data, and the artificial neural network structure and learning method of the classification model (510) are not necessarily limited to a specific embodiment.

[0064] Referring to FIG. 5, the classification model (510) may include a RoBERTa model (511) and a linear layer (513). The classification model (510) may receive a seed sentence (520), a first output sentence (530), and a second output sentence (540) as inputs as a premise sentence, a hypothesis sentence, and a query sentence, respectively, and may output “ <s>”, "[premise]”, "[hypo]” and "[update]” and "< / s> ” can be input as a special token. At this time, “[premise]”, “[hypo]” and “[update]” are tokens to distinguish between premise sentences, hypothesis sentences and query sentences, respectively, and “<s> "and "< / s> ” is a token that indicates the beginning and end of input.

[0065] Meanwhile, the linear layer (513) is one of the hidden states of the last hidden layer of the RoBERTa model (511). <s>” A vector representing a hidden state (512) for a token may be input and “0” or “1” may be output as a classification label for a query sentence (540). At this time, “0” may be a classification label indicating that the query sentence (540) does not contain a conflict element, and “1” may be a classification label indicating that the query sentence (540) contains a conflict element. However, the type of classification label is not necessarily limited to the example illustrated in FIG. 5 and may be set in various ways depending on the embodiment.

[0066] Meanwhile, the input format of the classification model (510) is not necessarily limited to the example shown in FIG. 5, and may be changed in various ways depending on the type of the classification model (510) or the learning method for the classification model (510).

[0067] Figure 6 is a flowchart of a method for generating conflict sentences according to one embodiment.

[0068] The method illustrated in FIG. 6 can be performed, for example, by a conflict sentence generation device (100) illustrated in FIG. 1 or FIG. 4.

[0069] Referring to FIG. 6, the conflict sentence generation device (100) uses the first inference model to generate a first output sentence describing the goal of the subject of the seed sentence based on the seed sentence (610).

[0070] Thereafter, the conflict sentence generation device (100) uses a second inference model to generate a second output sentence describing a conflict element for the first output sentence based on the seed sentence and the first output sentence (620).

[0071] Meanwhile, in the flowchart illustrated in FIG. 6, at least some of the steps may be performed together by combining with other steps, may be performed by dividing into substeps, or may be performed by adding one or more steps not illustrated.

[0072] Figure 7 is a flowchart of a method for generating conflict sentences according to an additional embodiment.

[0073] The method illustrated in FIG. 7 can be performed, for example, by the conflict sentence generation device (100) illustrated in FIG. 4.

[0074] Referring to FIG. 7, the conflict sentence generation device (100) uses the first inference model to generate a first output sentence describing the goal of the subject of the seed sentence based on the seed sentence (710).

[0075] Thereafter, the conflict sentence generation device (100) uses a second inference model to generate a second output sentence describing a conflict element for the first output sentence based on the seed sentence and the first output sentence (720).

[0076] Thereafter, the conflict sentence generation device (100) uses a classification model to determine whether the second output sentence includes a conflict element with respect to the first output sentence (730).

[0077] Meanwhile, in the flowchart illustrated in FIG. 7, at least some of the steps may be performed together by combining with other steps, may be performed by dividing into substeps, or may be performed by adding one or more steps not illustrated.

[0078] FIG. 8 is a block diagram illustrating a computing environment including a computing device according to one embodiment.

[0079] In the embodiment illustrated in FIG. 8, each component may have different functions and capabilities other than those described below, and may include additional components other than those described below.

[0080] The illustrated computing environment (10) includes a computing device (12). The computing device (12) may be one or more components included in a conflict sentence generation device (100) according to one embodiment.

[0081] A computing device (12) includes at least one processor (14), a computer-readable storage medium (16), and a communication bus (18). The processor (14) may cause the computing device (12) to operate according to the exemplary embodiments mentioned above. For example, the processor (14) may execute one or more programs stored in the computer-readable storage medium (16). The one or more programs may include one or more computer-executable instructions, which, when executed by the processor (14), may be configured to cause the computing device (12) to perform operations according to the exemplary embodiments.

[0082] A computer-readable storage medium (16) is configured to store computer-executable instructions or program code, program data, and / or other suitable forms of information. A program (20) stored in the computer-readable storage medium (16) includes a set of instructions executable by the processor (14). In one embodiment, the computer-readable storage medium (16) may be a memory (volatile memory such as random access memory, non-volatile memory, or a suitable combination thereof), one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, any other form of storage medium that can be accessed by the computing device (12) and store desired information, or a suitable combination thereof.

[0083] A communication bus (18) interconnects various other components of the computing device (12), including the processor (14) and computer-readable storage media (16).

[0084] The computing device (12) may also include one or more input / output interfaces (22) that provide interfaces for one or more input / output devices (24) and one or more network communication interfaces (26). The input / output interfaces (22) and the network communication interfaces (26) are connected to the communication bus (18). The input / output devices (24) may be connected to other components of the computing device (12) via the input / output interfaces (22). Exemplary input / output devices (24) may include input devices such as pointing devices (such as a mouse or a trackpad), a keyboard, a touch input device (such as a touchpad or a touchscreen), a voice or sound input device, various types of sensor devices and / or photographing devices, and / or output devices such as display devices, printers, speakers and / or network cards. The exemplary input / output devices (24) may be included within the computing device (12) as a component constituting the computing device (12), or may be connected to the computing device (12) as a separate device distinct from the computing device (12).

[0085] While the present invention has been described in detail above through representative examples, those skilled in the art will appreciate that various modifications to the above-described embodiments are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined not only by the claims set forth below but also by equivalents thereof.< / s>

Claims

1. A method performed by a computing device including one or more processors, An operation of generating a first output sentence describing the goal of the subject of the seed sentence based on the seed sentence using the first inference model; and A method for generating a conflict sentence, comprising an operation of generating a second output sentence describing a conflict element for the first output sentence based on the seed sentence and the first output sentence using a second inference model.

2. In claim 1, A method for generating conflict sentences, wherein the first inference model is an artificial neural network-based model trained to perform common sense-based inference using a pre-built knowledge base as learning data.

3. In claim 2, A method for generating conflict sentences, wherein the first inference model is a fine-tuned model based on a pre-trained transformer language model using the pre-built knowledge base.

4. In claim 1, A method for generating a conflict sentence, wherein the second inference model is an artificial neural network-based model trained using first learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the goal of the subject of the premise sentence, and a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence.

5. In claim 4, A method for generating conflict sentences, wherein the second inference model is a model that is fine-tuned using a pre-trained transformer-based language model using the first learning data.

6. In claim 1, A method for generating a conflict sentence, further comprising an operation of determining whether the second output sentence describes a conflict element with respect to the first output sentence using a classification model.

7. In claim 6, A method for generating conflict sentences, wherein the classification model is an artificial neural network-based model trained using second learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the goal of the subject of the premise sentence, a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence, and a non-conflict sentence pre-classified as describing a non-conflict element for the hypothesis sentence.

8. In claim 7, A method for generating conflict sentences, wherein the above classification model is a model that is fine-tuned using a pre-trained transformer-based language model using the second learning data.

9. In claim 7, The classification model outputs a preset classification label indicating whether the second output sentence describes a conflict element for the first output sentence based on the seed sentence, the first output sentence, and the second output sentence, A method for generating conflict sentences, wherein the above-described determining operation determines whether the second output sentence describes a conflict element for the first output sentence based on the classification label.

10. One or more processors; and A memory storing one or more programs executed by the one or more processors, One or more of the above processors, Using the first inference model, a first output sentence describing the goal of the subject of the seed sentence is generated based on the seed sentence, A conflict sentence generation device that generates a second output sentence describing a conflict element for the first output sentence based on the seed sentence and the first output sentence using a second inference model.

11. In claim 10, The above first inference model is a conflict sentence generation device based on an artificial neural network that is trained to perform common sense-based inference using a pre-built knowledge base as learning data.

12. In claim 11, The above first inference model is a conflict sentence generation device that is a model that fine-tunes a pre-learned transformer-based language model using the pre-built knowledge base.

13. In claim 10, The second inference model is a conflict sentence generation device, which is an artificial neural network-based model trained using first learning data including a premise sentence, a hypothesis sentence pre-classified as a target sentence describing the goal of the subject of the premise sentence, and a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence.

14. In claim 13, A conflict sentence generation device wherein the second inference model is a model that is fine-tuned using a pre-trained transformer-based language model using the first learning data.

15. In claim 10, One or more of the above processors, A conflict sentence generation device that determines whether the second output sentence describes a conflict element with respect to the first output sentence using a classification model.

16. In claim 15, The above classification model is a conflict sentence generation device, which is an artificial neural network-based model learned using second learning data including a hypothesis sentence pre-classified as a premise sentence, a target sentence describing the goal of the subject of the premise sentence, a conflict sentence pre-classified as describing a conflict element for the hypothesis sentence, and a non-conflict sentence pre-classified as describing a non-conflict element for the hypothesis sentence.

17. In claim 16, The above classification model is a conflict sentence generation device that is a model that is fine-tuned using the second learning data of a pre-learned transformer-based language model.

18. In claim 16, The classification model outputs a preset classification label indicating whether the second output sentence describes a conflict element for the first output sentence based on the seed sentence, the first output sentence, and the second output sentence, A conflict sentence generation device, wherein the one or more processors determine whether the second output sentence describes a conflict element for the first output sentence based on the classification label.

Citation Information

Patent Citations

  • Self-adaptive theme story ending generation method and storage medium

    CN113762474A

  • Data story generation method

    CN113792053A

  • Scenario plot generation device and scenario plot generation method

    JP2019220039A

  • System for visual commonsense reasoning using knowledge graph

    KR102244086B1

  • Method, system and non-transitory computer-readable recording medium for supporting search of contents

    KR102396881B1