Text processing method and device, electronic equipment and storage medium
A text processing and text technology, applied in the fields of electronic equipment, devices, text processing methods, and computer-readable storage media, can solve the problems of complex and laborious construction and maintenance, and obstacles to the deployment of speech synthesis systems
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] refer to Figure 1A , shows a flow chart of the steps of the text processing method according to the first exemplary embodiment of the present disclosure.
[0029] Specifically, the text processing method provided by the present disclosure includes the following steps:
[0030] In step S101, a grammar tree of the text to be processed is generated by a grammar tool.
[0031] In this embodiment, the grammatical tool can be a SyntaxNet toolkit, the text to be processed can be a Chinese text to be speech-synthesized, and the grammatical tree can be understood as a tree representation describing the language dependency between words in the text , which is conducive to understanding the level of the grammatical structure of the text. Simply put, a syntax tree is a tree representation formed when deriving according to preset rules. In the tree structure, directly related words in the text are connected, while others are not directly connected.
[0032] In some optional embodi...
Embodiment 2
[0071] figure 2 It shows a schematic structural diagram of a text processing device according to the second exemplary embodiment of the present disclosure, see figure 2 , the device consists of:
[0072] A generation module 201, configured to generate a syntax tree of the text to be processed through a syntax tool;
[0073] A conversion module 202, configured to convert the syntax tree of the text to be processed to obtain a syntax graph of the text to be processed;
[0074] A grammatical relationship encoding module 203, configured to encode the grammatical relationship of the characters in the text to be processed based on the grammatical graph of the text to be processed, so as to obtain the features of the grammatical relationship of the characters in the text to be processed data;
[0075] Grammatical enhancement processing module 204, configured to perform grammatical enhancement processing on the grammatical relationship of the character based on the grammatical re...
Embodiment 3
[0089] Exemplary embodiments of the present disclosure also provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor. The memory stores a computer program executable by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the text processing method according to the embodiment of the present disclosure.
[0090]Exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor of a computer, the computer is used to cause the computer to execute the Text processing method.
[0091] Exemplary embodiments of the present disclosure also provide a computer program product, including a computer program, wherein the computer program is configured to cause the computer to execute the text processing m...
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