GENERATION APPARATUS, GENERATION METHOD, AND PROGRAM
A generation apparatus that generates an output sequence that is a sequence of another piece of information from an input sequence that is a sequence of information includes: a generation unit that generates the output sequence from the input sequence and constraint information given, by using a sequence conversion model; and a correction unit that corrects the output sequence obtained by the generation unit so that the output sequence includes the constraint information.
1 . A generation apparatus that generates an output sequence that is a sequence of another piece of information from an input sequence that is a sequence of information, the generation apparatus comprising:
a processor; and
a memory that includes instructions, which when executed, cause the processor to execute:
generating the output sequence from the input sequence and constraint information given, by using a sequence conversion model; and
correcting the output sequence obtained by the generating so that the output sequence includes the constraint information.
2 . The generation apparatus according to claim 1 ,
wherein the correcting includes setting the constraint information as a query, performing normalization on at least one of the generated output sequence or the query, searching the output sequence using the query, and replacing a part matched with the query in the output sequence with original constraint information corresponding to the query and not subjected to processing of the normalization.
3 . The generation apparatus according to claim 2 ,
wherein the correcting includes performing at least one of normalization of a character system factor, normalization of a tokenizer factor, normalization of a predetermined character, or normalization of an unknown word factor as the normalization.
4 . A generation method performed by a computer that generates an output sequence that is a sequence of another piece of information from an input sequence that is a sequence of information, the generation method comprising:
generating the output sequence from the input sequence and constraint information given, by using a sequence conversion model; and
correcting the output sequence so that the output sequence includes the constraint information.
5 . A non-transitory computer-readable recording medium having computer-readable instructions stored thereon, which when executed, cause a computer that generates an output sequence that is a sequence of another piece of information from an input sequence that is a sequence of information, the computer including a memory and a processor, to execute:
generating the output sequence from the input sequence and constraint information given, by using a sequence conversion model; and
correcting the output sequence so that the output sequence includes the constraint information.