Text generation method and device, electronic equipment and medium
A text and screening method technology, applied in the field of data processing, can solve problems such as poor generated results, and achieve the effect of improving poor generated results
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] figure 1 A schematic flowchart of a text generation method provided in the first embodiment of the present disclosure, the method can be applied to the situation of generating target text, the method can be executed by a text generation device, wherein the device can be implemented by software and / or hardware, and It is generally integrated on an electronic device. In this embodiment, the electronic device includes, but is not limited to, a computer, a notebook computer, a smart phone, or a tablet computer and other devices.
[0036] like figure 1 As shown, a text generation method provided by Embodiment 1 of the present disclosure includes the following steps:
[0037] S110. Obtain a text candidate set.
[0038] In this embodiment, the text candidate set can be understood as a set composed of multiple results (the results may include candidate texts) obtained by inputting the text to be processed into the corresponding text generation model. The text candidate set m...
Embodiment 2
[0073] figure 2 This is a schematic flowchart of a text generation method provided in Embodiment 2 of the present disclosure. The second embodiment is refined on the basis of the foregoing embodiments. In this embodiment, the process of acquiring the text candidate set and performing at least two screening method processing on the text candidate set to obtain the target text is described in detail. It should be noted that, for details that are not yet detailed in this embodiment, please refer to Embodiment 1.
[0074] like figure 2 As shown, a text generation method provided in Embodiment 2 of the present disclosure includes the following steps:
[0075] S210. Input the text to be processed into a processing model to obtain a text candidate set, and the processing model processes the text to be processed based on a sampling decoding method to obtain a text candidate set.
[0076] In this embodiment, the processing model can refer to a model that can be used to encode and...
Embodiment 3
[0120] Figure 4 This is a schematic structural diagram of a text generation apparatus provided in Embodiment 3 of the present disclosure, wherein the apparatus can be implemented by software and / or hardware, and is generally integrated on an electronic device.
[0121] like Figure 4 As shown, the apparatus includes: an acquisition module 310 and a processing module 320;
[0122] Wherein, the obtaining module 310 is configured to obtain a text candidate set, the text candidate set includes a plurality of candidate texts, and each of the candidate texts is a text obtained after processing the text to be processed;
[0123] The processing module 320 is configured to obtain the target text after performing at least two screening methods on the text candidate set with reference to the screening strategy of minimum Bayesian risk decoding;
[0124] Wherein, each of the screening methods is a screening method with different functions, the output of each screening is used as the in...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com