WO2022111241A1 - Data generation method and apparatus, readable medium and electronic device - Google Patents

Data generation method and apparatus, readable medium and electronic device Download PDF

Info

Publication number
WO2022111241A1
WO2022111241A1 PCT/CN2021/128308 CN2021128308W WO2022111241A1 WO 2022111241 A1 WO2022111241 A1 WO 2022111241A1 CN 2021128308 W CN2021128308 W CN 2021128308W WO 2022111241 A1 WO2022111241 A1 WO 2022111241A1
Authority
WO
WIPO (PCT)
Prior art keywords
word
speech
combined
words
target part
Prior art date
Application number
PCT/CN2021/128308
Other languages
French (fr)
Chinese (zh)
Inventor
顾宇
Original Assignee
北京有竹居网络技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京有竹居网络技术有限公司 filed Critical 北京有竹居网络技术有限公司
Publication of WO2022111241A1 publication Critical patent/WO2022111241A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • a pronunciation dictionary (also called a pronunciation dictionary) is generally used to query the phonemes that can represent the pronunciation of a word, wherein the pronunciation dictionary contains a set of words that can be processed by a speech synthesis system, and indicates its pronunciation.
  • the present disclosure provides a data generation method, the method comprising: obtaining a word set that is consistent with a target part of speech from words contained in an initial pronunciation dictionary; At least one keyword corresponding to the target part of speech is determined from the set of words that match the part of speech; the keywords are combined according to a preset word combination to obtain a plurality of combined words, wherein the preset word combination
  • the method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; determining the phoneme sequence corresponding to each combined word to generate a mapping relationship between the combined word and the phoneme sequence.
  • the present disclosure provides a data generation device, the device includes: a first acquisition module, configured to acquire a word set that matches a target part of speech from words included in an initial pronunciation dictionary; a first determination module, For each target part-of-speech, from a set of words that match the target part-of-speech, at least one keyword corresponding to the target part-of-speech is determined; a combination module is used to combine all words according to a preset word combination.
  • the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing apparatus, implements the steps of the data generation method described in the first aspect of the present disclosure.
  • the present disclosure provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the first aspect of the present disclosure The steps of the data generation method.
  • the present disclosure provides a computer program, comprising: instructions, when executed by a processor, the instructions cause the processor to perform the steps of the data generation method provided in the first aspect of the present disclosure.
  • the present disclosure provides a computer program product, comprising instructions that, when executed by a processor, cause the processor to perform the steps of the data generation method provided in the first aspect of the present disclosure.
  • FIG. 1 is a flowchart of a data generation method provided according to an embodiment of the present disclosure
  • FIG. 2 is a data generation method provided according to the present disclosure, for each target part of speech, An exemplary flowchart of the steps of determining at least one keyword corresponding to the target part of speech in the matched word set
  • FIG. 1 is a flowchart of a data generation method provided according to an embodiment of the present disclosure
  • FIG. 2 is a data generation method provided according to the present disclosure, for each target part of speech, An exemplary flowchart of the steps of determining at least one keyword corresponding to the target part of speech in the matched word set
  • FIG. 1 is a flowchart of a data generation method provided according to an embodiment of the present disclosure
  • FIG. 2 is a data generation method provided according to the present disclosure, for each target part of speech, An exemplary flowchart of the steps of determining at least one keyword corresponding to the target part of speech in the matched word set
  • FIG. 1 is a flowchart of
  • FIG. 3 is a flowchart of a data generation method provided by another embodiment of the present disclosure
  • FIG. 4 is a A block diagram of a data generating apparatus provided according to an embodiment of the present disclosure
  • FIG. 5 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure.
  • the words covered by the existing pronunciation dictionary are limited, and it is often impossible to find the phoneme corresponding to the word, and thus the problem of not being able to recognize the pronunciation of the word occurs. Therefore, G2P errors are often caused, which in turn causes speech synthesis to fail to synthesize the pronunciation of certain words.
  • words whose pronunciation cannot be obtained from the pronunciation dictionary may be abbreviated as OOV (Out of Vocabulary, unregistered words).
  • OOV Out of Vocabulary, unregistered words.
  • the present disclosure provides a data generation method, device, readable medium, and electronic device to construct the above-mentioned mapping relationship between 00V and phonemes, and further, when performing model training with the constructed mapping relationship as training data, it can effectively improve The generalization ability of the model.
  • a set of words that is consistent with the target part of speech is obtained, and then, for each target part of speech, from the set of words that are consistent with the target part of speech, the word set that matches the target is determined.
  • the keywords are combined according to a preset word combination mode to obtain a plurality of combined words, and the phoneme sequence corresponding to each combined word is determined to generate a mapping relationship between the combined word and the phoneme sequence.
  • FIG. 1 is a flowchart of a data generation method provided according to an embodiment of the present disclosure.
  • the method may include the following steps: In step 11, from the words contained in the initial pronunciation dictionary, obtain a set of words that is consistent with the target part of speech; In step 12, for each target part of speech, Determine at least one keyword corresponding to the target part-of-speech from the set of words that match the target part-of-speech; in step 13, combine the keywords according to a preset word combination mode to obtain a plurality of combined words; In step 14, the phoneme sequence corresponding to each compound word is determined to generate a mapping relationship between the compound word and the phoneme sequence.
  • the initial pronunciation dictionary contains the words and their pronunciations (represented as phonemes) that the dictionary can handle.
  • the target part of speech may include, but is not limited to, at least one of the following: noun, verb, adjective. Therefore, in step 11, from the words contained in the initial pronunciation dictionary, a set of words that is consistent with the target part of speech is obtained, which is equivalent to extracting the corresponding words from the words contained in the initial pronunciation dictionary for each target part of speech. Words of a part of speech, and constitute a set of words corresponding to the part of speech. For example, if the target part of speech includes nouns, verbs, and adjectives, step 11 is equivalent to extracting nouns from the words contained in the initial pronunciation dictionary to form a noun set, extracting verbs to form a verb set, and extracting adjectives to form an adjective set .
  • step 12 for each target part of speech, at least one keyword corresponding to the target part of speech is determined from the set of words that match the target part of speech.
  • several words may be randomly determined from a set of words that match the target part of speech as at least one keyword corresponding to the target part of speech.
  • step 12 may include the following steps, as shown in FIG. 2: In step 21, for each word in the word set that matches the target part-of-speech, determine the word's relative value in the target corpus Word frequency; In step 22, the words corresponding to the largest top N word frequencies are determined as keywords corresponding to the target part of speech. where N is a positive integer.
  • the word frequency of a word in the target corpus can be obtained by the ratio of the number of times the word appears in the target corpus to the total number of words in the target corpus.
  • the words corresponding to the largest top N word frequencies may be determined as keywords corresponding to the target part of speech.
  • the words with higher word frequency in the target corpus are used as keywords.
  • the keywords can more effectively represent the situation of the words corresponding to the target part of speech, and on the other hand, the resources consumed by subsequent data processing can be saved. .
  • keywords are combined according to a preset word combination mode to obtain a plurality of combined words.
  • the preset word combination method includes at least combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech.
  • the keywords VI, V2, V3 corresponding to the target part of speech S1 are obtained after processing in step 12, the keywords corresponding to the target part of speech S2 are V4 and V5, and the keyword corresponding to the target part of speech S3 is V6. Then, to combine keywords belonging to the same target part-of-speech, taking the target part-of-speech S1 as an example, the keywords in S1 are combined, for example, the combination is V1V2, V3V2V1 and so on.
  • Combining keywords belonging to different target parts of speech taking the target parts of speech S2 and S3 as an example, is to combine keywords in S2 and S3, for example, to combine V4V6, V5V6 and so on.
  • the preset word method can also be a combination of keywords belonging to the same target part of speech and keywords belonging to different target parts of speech.
  • the parts of speech SI, S2, and S3 in the above example they can be combined into V1V2V4V6 and so on.
  • step 13 may include at least one of the following: combining a first preset number of keywords belonging to different target parts of speech to obtain a combined word; combining a second preset number of keywords belonging to the same target part of speech Set a number of keywords to combine to obtain combined words.
  • two keywords whose part of speech is a noun can be combined to obtain a combined word.
  • the second preset number is 2, and the target part of speech is a noun.
  • one keyword can be selected from each of the noun and the adjective to be combined to obtain a combined word.
  • the first preset number is 2, and the target parts of speech are noun and adjective respectively.
  • the sequence of each keyword during combination is different, and different combined words can also be obtained. For example, if keyword A and keyword B are combined, two combined words AB and BA can be obtained.
  • step 13 may include at least one of the following: combining the word prefix with the keyword The combination is performed in a front-to-back order to obtain a compound word; the keywords and the word suffix are combined in a front-to-back order to obtain a compound word.
  • word prefixes and word suffixes may be summed up by relevant personnel according to the words contained in the initial pronunciation dictionary, and the pronunciation of these word prefixes and word suffixes may also be obtained from the initial pronunciation dictionary.
  • word prefixes and word suffixes can also be obtained directly from places that can provide word prefix and word suffix information.
  • word prefixes and word suffixes when word prefixes and word suffixes are obtained, word prefixes and word suffixes can also be obtained together. corresponding pronunciation.
  • the word prefix is located at the beginning of the word. Therefore, when obtaining a compound word, it is necessary to associate the word prefix with the keyword Combine in first-to-last order.
  • the word prefix C and the keyword D can be combined into a compound word CD.
  • the word suffix is located at the end of the word. Therefore, when obtaining a compound word, it is necessary to combine the keyword and the word suffix in a first-to-last order.
  • the keyword E and the word suffix F can be combined into the compound word EF.
  • the method provided by the present disclosure may further include the following steps: if there is a combined word that cannot form a syllable, delete the combined word that cannot form a syllable from a plurality of combined words.
  • the compound words formed in step 13 there may be compound words that cannot form syllables, and such compound words are meaningless for subsequent data processing. Therefore, such compound words can be deleted from multiple compound words, instead of It will be processed in the subsequent step 14.
  • judgment conditions can be preset to judge whether a compound word can form a syllable. For example, in general, two consonants appearing at the same time cannot be pronounced.
  • the judgment condition can be set as whether there are adjacent consonants in the combined word. If there are adjacent consonants, it can be determined that the combined word cannot form a syllable. , which in turn is removed from the compound word. In the above manner, the unpronounceable compound word is deleted from the multiple compound words, which can save subsequent data processing overhead and avoid meaningless waste of computing resources.
  • the phoneme sequence corresponding to each compound word is determined to generate a mapping relationship between the compound word and the phoneme sequence.
  • step 14 may include the following steps: for each combined word, perform the following operations: from the initial pronunciation dictionary, obtain the initial phonemes corresponding to each word constituting the combined word; arrange the initial phonemes according to the arrangement of the words in the combined word The combination is performed in order to obtain the phoneme sequence corresponding to the combined word, so as to generate the correspondence between the combined word and the phoneme sequence.
  • the initial phoneme corresponding to each word that constitutes the combined word can be obtained from the initial pronunciation dictionary, and further, According to the arrangement order of each word in the combined word, the obtained initial phonemes are combined, and then the phoneme sequence corresponding to the combined word is obtained, and the corresponding relationship between the combined word and the phoneme sequence is generated. For example, if the combined word W1W2W3, wherein the pronunciation phoneme corresponding to W1 is P1, the pronunciation phoneme corresponding to W2 is P2, and the pronunciation phoneme corresponding to W3 is P3, then the phoneme sequence corresponding to the combination word W1W2W3 is P1P2P3.
  • a set of words that is consistent with the target part of speech is obtained, and then, for each target part of speech, from the set of words that are consistent with the target part of speech
  • the at least one keyword of the keyword is combined according to a preset word combination mode to obtain a plurality of combined words, and the phoneme sequence corresponding to each combined word is determined to generate a mapping relationship between the combined word and the phoneme sequence.
  • the words in the initial pronunciation dictionary can automatically generate new combined words, and can automatically obtain the phoneme sequence that can characterize the pronunciation of the combined word without manual participation in the construction process.
  • the generated combined words and their phoneme sequences can also be used for the model.
  • the generalization ability of the model is improved.
  • the method provided by the present disclosure may further include the following steps, as shown in FIG. 3 .
  • step 31 the generated mapping relationship between the combined word and the phoneme sequence is added to the initial pronunciation dictionary to generate a target pronunciation dictionary. That is to say, the generated mapping relationship between the combined word and the phoneme sequence can be added to the initial pronunciation dictionary to update the initial pronunciation dictionary to the target pronunciation dictionary, and the target pronunciation dictionary can be directly used in subsequent data processing.
  • using the target pronunciation dictionary for model training of speech synthesis can improve the generalization ability of the model.
  • FIG. 4 is a block diagram of a data generating apparatus provided according to an embodiment of the present disclosure.
  • the device 40 includes: a first obtaining module 41, used for obtaining a word set that matches the target part of speech from the words contained in the initial pronunciation dictionary; a first determining module 42, used for each A target part-of-speech, which determines at least one keyword corresponding to the target part-of-speech from a set of words that match the target part-of-speech.
  • the preset word combination method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; the second determination module 44 is used to determine each The phoneme sequence corresponding to the combined word is used to generate the mapping relationship between the combined word and the phoneme sequence.
  • the first determination module 42 includes: a first determination sub-module for determining, for each word in the set of words that match the target part of speech, the word frequency of the word in the target corpus; The second determination sub-module is used to determine the words corresponding to the largest top N word frequencies as keywords corresponding to the target part of speech, where N is a positive integer.
  • the combining module 43 includes at least one of the following: a first combining sub-module, configured to combine a first preset number of keywords belonging to different target parts of speech to obtain a combined word; a second combination A sub-module for combining the second preset number of keywords belonging to the same target part of speech to obtain compound words.
  • the apparatus 40 further includes: a second obtaining module, configured to obtain at least one of a word prefix or a word suffix; the combining module 43, including at least one of the following: a third combining submodule, is used to combine the word prefix and the keyword in a front-to-back order to obtain a combined word; the fourth combining submodule is used to combine the keyword and the word suffix in a front-to-back order , to get compound words.
  • a second obtaining module configured to obtain at least one of a word prefix or a word suffix
  • the combining module 43 including at least one of the following: a third combining submodule, is used to combine the word prefix and the keyword in a front-to-back order to obtain a combined word; the fourth combining submodule is used to combine the keyword and the word suffix in a front-to-back order , to get compound words.
  • the device 40 further includes: after the combination module combines the keywords according to a preset word combination mode to obtain a plurality of combination words, if there is a combination word that cannot form a syllable, the combination word The compound words that describe the inability to form a syllable are deleted from the plurality of compound words.
  • the second determining module 44 is configured to perform the following operations for each of the combined words: from the initial pronunciation dictionary, obtain the initial phonemes corresponding to the words constituting the combined word; The words are combined according to the arrangement order of the combined words to obtain a phoneme sequence corresponding to the combined word, so as to generate a correspondence between the combined word and the phoneme sequence.
  • the apparatus 40 further includes: a dictionary generation module, configured to add the generated mapping relationship between the combined word and the phoneme sequence to the initial pronunciation dictionary, so as to generate a target pronunciation dictionary.
  • a dictionary generation module configured to add the generated mapping relationship between the combined word and the phoneme sequence to the initial pronunciation dictionary, so as to generate a target pronunciation dictionary.
  • Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, Mobile terminals such as car navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like.
  • PDAs personal digital assistants
  • PADs tablets
  • PMPs portable multimedia players
  • vehicle-mounted terminals eg, Mobile terminals such as car navigation terminals
  • stationary terminals such as digital TVs, desktop computers, and the like.
  • the electronic device shown in FIG. 5 is only an example, and should not impose any limitations on the function and scope of use of the embodiments of the present disclosure. As shown in FIG.
  • the electronic device 600 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 601, which may be loaded into random access according to a program stored in a read only memory (ROM) 602 or from a storage device 608
  • a program in the memory (RAM) 603 executes various appropriate actions and processes.
  • various programs and data necessary for the operation of the electronic device 600 are also stored.
  • the processing device 601 , the ROM 602 and the RAM 603 are connected to each other through a bus 604 .
  • An input/output (I/O) interface 605 is also connected to bus 604 .
  • Input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration The output device 607 of the device, etc.; the storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and the communication device 609.
  • Communication means 609 may allow electronic device 600 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 5 shows electronic device 600 having various means, it should be understood that not all of the illustrated means are required to be implemented or available. More or fewer devices may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication device 609 , or from the storage device 608 , or from the ROM 602 .
  • the processing device 601 the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device .
  • Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • the server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium (eg, , communication network) interconnection.
  • HTTP HyperText Transfer Protocol
  • Examples of communication networks include local area networks ("LAN”), wide area networks (“WAN”), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), and any currently known or future developed networks.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device causes the electronic device to: From the words contained in the initial pronunciation dictionary, obtain words that match the target part of speech set; for each target part of speech, determine at least one keyword corresponding to the target part of speech from a set of words that match the target part of speech; combine the keywords according to a preset word combination mode to obtain a plurality of combined words, wherein the preset word combination mode includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; determining the phoneme sequence corresponding to each combined word to generate a combination The mapping relationship between words and phoneme sequences.
  • Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages such as Java, Smalltalk, C++, and This includes conventional procedural programming languages such as "C" or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code that contains one or more logic functions for implementing the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block in the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented with dedicated hardware-based systems that perform the specified functions or operations , or can be implemented using a combination of dedicated hardware and computer instructions.
  • the modules involved in the embodiments of the present disclosure may be implemented in software or hardware. Wherein, the name of the module does not constitute a limitation of the module itself under certain circumstances, for example, the first acquisition module can also be described as "from the words contained in the initial pronunciation dictionary, acquire words that match the target part of speech. A collection of modules".
  • the functions described herein above may be performed, at least in part, by one or more hardware logic components.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs) Application Specific Standard Products (ASSPs) System on Chips (SOCs) Complex Programmable Logic Devices (CPLD) and so on.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs System on Chips
  • CPLD Complex Programmable Logic Devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • optical storage devices magnetic storage devices, or any suitable combination of the foregoing.
  • the method includes: obtaining a word set consistent with a target part-of-speech from words contained in an initial pronunciation dictionary; for each target part-of-speech , determine at least one keyword corresponding to the target part-of-speech from the set of words that match the target part-of-speech; combine the keywords according to a preset word combination mode to obtain a plurality of combined words, wherein , the preset word combination method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; determining the phoneme sequence corresponding to each combined word to generate a mapping between the combined word and the phoneme sequence relation.
  • determining at least one keyword corresponding to the target part-of-speech from a set of words that match the target part-of-speech includes: For each word in the set of words that is consistent with the target part of speech, determine the word frequency of the word in the target corpus; Determine the word corresponding to the largest top N word frequencies as the keyword corresponding to the target part of speech, wherein , where N is a positive integer.
  • a data generation method wherein the keywords are combined according to a preset word combination mode to obtain a plurality of combined words, including at least one of the following : combining a first preset number of keywords belonging to different target parts of speech to obtain a combined word; combining a second preset number of keywords belonging to the same target part of speech to obtain a combined word.
  • a data generation method comprising: Obtaining at least one of a word prefix or a word suffix; combining the keywords according to a preset word combination method to obtain a plurality of combined words, including at least one of the following: combining the word prefix with The keywords are combined in a front-to-back order to obtain a combined word; and the keyword and the word suffix are combined in a front-to-back order to obtain a combined word.
  • a data generation method is provided.
  • the method also includes: if there is a compound word that cannot form a syllable, deleting the compound word that cannot form a syllable from the plurality of compound words.
  • a data generation method is provided.
  • the determining the phoneme sequence corresponding to each combined word to generate a mapping relationship between the combined word and the phoneme sequence includes: for each of the Combining words, perform the following operations: from the initial pronunciation dictionary, obtain the initial phonemes corresponding to each word that constitutes the combined word; combine the initial phonemes according to the arrangement order of the words in the combined word, and obtain the corresponding initial phonemes.
  • a data generation method is provided, the method further comprising: adding the generated mapping relationship between the combined word and the phoneme sequence to the initial pronunciation dictionary to generate a target pronunciation dictionary.
  • a data generation apparatus includes: a first acquisition module, configured to acquire a word set that matches a target part of speech from words included in an initial pronunciation dictionary ; a first determination module for determining at least one keyword corresponding to the target part-of-speech from a set of words consistent with the target part-of-speech for each target part-of-speech; A word combination method, combining the keywords to obtain a plurality of combined words, wherein the preset word combination method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; The second determination module is used to determine the phoneme sequence corresponding to each combined word, so as to generate the mapping relationship between the combined word and the phoneme sequence.
  • a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processing apparatus, implements the steps of the data generation method described in any embodiment of the present disclosure.
  • an electronic device including: A storage device, on which a computer program is stored; and a processing device, configured to execute the computer program in the storage device, so as to implement the steps of the data generation method described in any embodiment of the present disclosure.
  • a computer program comprising: instructions that, when executed by a processor, cause the processor to perform the steps of the data generation method according to any embodiment of the present disclosure .
  • a computer program product comprising instructions that, when executed by a processor, cause the processor to perform the steps of the data generation method described in any embodiment of the present disclosure .
  • the above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed.
  • Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features.
  • a technical solution is formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Machine Translation (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A data generation method and apparatus, a readable medium, and an electronic device. The method comprises: acquiring, from graphemes included in an initial pronunciation dictionary, grapheme sets conforming to target parts of speech (11); for each target part of speech, determining, from the grapheme set conforming to the target part of speech, at least one keyword corresponding to the target part of speech (12); combining keywords according to a preset grapheme combination mode, so as to obtain a plurality of combined graphemes, wherein the preset grapheme combination mode comprises combining the keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech (13); and determining a phoneme sequence corresponding to each combined grapheme, so as to generate a mapping relationship between the combined grapheme and the phoneme sequence (14). Therefore, a new combined grapheme can be automatically generated, a phoneme sequence capable of representing the pronunciation of the combined grapheme can be automatically obtained, and manual construction is not needed. In addition, the generated combined grapheme and the phoneme sequence thereof can also be used in augmentation training of a model, so as to improve the generalization capability of the model.

Description

数 据 生成 方法 、 装置 、 可读介 质及 电子 设 备 本申请要求于 2020年 11月 26日递交、 申请号为 202011355899.0、 名称为 “数据生 成方法、 装置、 可读介质及电子设备” 的中国专利申请的优先权, 其全部内容通过引用并 入本文。 技术领域 本公开涉及数据处理领域, 具体地, 涉及一种数据生成方法、 装置、 可读介质及电子 设备。 背景技术 在语音合成场景中, 通常需要针对一段文本, 确定文本的音素, 进而根据音素实现发 音,这是语音合成前端的一个重要环节,简称为 G2P( Grapheme-to-Phoneme ,单词到音素)。 相关技术中, 一般使用发音字典 (也可称为发音词典) 查询能够表征单词读音的音素, 其 中, 发音字典包含语音合成系统所能处理的单词的集合, 并标明了其发音。 发明内容 提供该发明内容部分以便以简要的形式介绍构思,这些构思将在后面的具体实施方式 部分被详细描述。 该发明内容部分并不旨在标识要求保护的技术方案的关键特征或必要特 征, 也不旨在用于限制所要求的保护的技术方案的范围。 第一方面, 本公开提供一种数据生成方法, 所述方法包括: 从初始发音字典所包含的 单词中, 获取与目标词性相符合的单词集合; 针对每一种目标词性, 从与所述目标词性相 符合的单词集合中确定出与所述目标词性对应的至少一个关键词; 按照预设的单词组合方 式, 对所述关键词进行组合, 获得多个组合词, 其中, 预设的单词组合方式包括将属于同 一目标词性的关键词进行组合以及将属于不同目标词性的关键词进行组合; 确定各组合词 对应的音素序列, 以生成组合词与音素序列之间的映射关系。 第二方面, 本公开提供一种数据生成装置, 所述装置包括: 第一获取模块, 用于从初 始发音字典所包含的单词中, 获取与目标词性相符合的单词集合; 第一确定模块, 用于针 对每一种目标词性, 从与所述目标词性相符合的单词集合中确定出与所述目标词性对应的 至少一个关键词; 组合模块, 用于按照预设的单词组合方式, 对所述关键词进行组合, 获 得多个组合词, 其中, 预设的单词组合方式包括将属于同一目标词性的关键词进行组合以 及将属于不同目标词性的关键词进行组合; 第二确定模块, 用于确定各组合词对应的音素 序列, 以生成组合词与音素序列之间的映射关系。 第三方面, 本公开提供一种计算机可读介质, 其上存储有计算机程序, 该程序被处理 装置执行时实现本公开第一方面所述数据生成方法的步骤。 第四方面, 本公开提供一种电子设备, 包括: 存储装置, 其上存储有计算机程序; 处 理装置, 用于执行所述存储装置中的所述计算机程序, 以实现本公开第一方面所述数据生 成方法的步骤。 第五方面, 本公开提供一种计算机程序, 包括: 指令, 所述指令当由处理器执行时使 所述处理器执行本公开第一方面提供的所述数据生成方法的步骤。 第六方面, 本公开提供一种计算机程序产品, 包括指令, 所述指令当由处理器执行时 使所述处理器执行本公开第一方面提供的所述数据生成方法的步骤。 附图说明 结合附图并参考以下具体实施方式, 本公开各实施例的上述和其他特征、优点及方面 将变得更加明显。 贯穿附图中, 相同或相似的附图标记表示相同或相似的元素。 应当理解 附图是示意性的, 原件和元素不一定按照比例绘制。 在附图中: 图 1是根据本公开的一种实施方式提供的数据生成方法的流程图; 图 2是根据本公开提供的数据生成方法中, 针对每一种目标词性, 从与目标词性相符 合的单词集合中确定出与目标词性对应的至少一个关键词的步骤的一种示例性的流程图; 图 3是本公开的另一种实施方式提供的数据生成方法的流程图; 图 4是根据本公开的一种实施方式提供的数据生成装置的框图; 图 5示出了适于用来实现本公开实施例的电子设备的结构示意图。 具体实施方式 下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施 例, 然而应当理解的是, 本公开可以通过各种形式来实现, 而且不应该被解释为限于这里 阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是, 本公开的附图及实施例仅用于示例性作用, 并非用于限制本公开的保护范围。 应当理解, 本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行, 和 / 或并行执行。 此外, 方法实施方式可以包括附加的步骤和 /或省略执行示出的步骤。 本公开 的范围在此方面不受限制。 本文使用的术语 “包括 ”及其变形是开放性包括, 即 “包括但不限于”。术语“基于”是“至 少部分地基于”。 术语“一个实施例”表示“至少一个实施例”; 术语 “另一实施例 ”表示 “至少 一个另外的实施例”; 术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在 下文描述中给出。 需要注意, 本公开中提及的“第一”、 “第二”等概念仅用于对不同的装置、 模块或单元 进行区分, 并非用于限定这些装置、 模块或单元所执行的功能的顺序或者相互依存关系。 需要注意, 本公开中提及的“一个”、 “多个 ”的修饰是示意性而非限制性的, 本领域技 术人员应当理解, 除非在上下文另有明确指出, 否则应该理解为“一个或多个”。 本公开实施方式中的多个装置之间所交互 的消息或者信息的名称仅用于说明性的目 的, 而并不是用于对这些消息或信息的范围进行限制。 现有的发音字典所覆盖的单词有限, 常常无法查找到单词对应的音素,进而出现无法 识别单词读音的问题。 因此, 常常导致 G2P错误, 进而导致语音合成无法合成某些单词的 读音。 其中, 无法从发音词典中获得读音的单词可以简称为 OOV (Out of Vocabulary, 未 登录词)。 本公开提供一种数据生成方法、 装置、 可读介质及电子设备, 以构建上述 00V与音 素之间的映射关系, 进而, 在以构建出的映射关系为训练数据进行模型训练时, 能够有效 提升模型的泛化能力。 通过本公开的技术方案, 从初始发音字典所包含的单词中, 获取与目标词性相符合的 单词集合, 之后, 针对每一种目标词性, 从与目标词性相符合的单词集合中确定出与目标 词性对应的至少一个关键词, 按照预设的单词组合方式, 对关键词进行组合, 获得多个组 合词, 确定各组合词对应的音素序列, 以生成组合词与音素序列之间的映射关系。 由此, 能够基于初始发音字典的单词自动生成新的组合词, 并能自动获得能够表征组合词读音的 音素序列, 构建过程中无需人工参与, 另外, 还可将生成的组合词及其音素序列用于模型 的增广训练中, 提升模型的泛化能力。 本公开的其他特征和优点将在后面予以详细说明。 图 1是根据本公开的一种实施方式提供的数据生成方法的流程图。如图 1所示, 该方 法可以包括以下步骤: 在步骤 11中,从初始发音字典所包含的单词中,获取与目标词性相符合的单词集合; 在步骤 12中, 针对每一种目标词性, 从与目标词性相符合的单词集合中确定出与目 标词性对应的至少一个关键词; 在步骤 13中, 按照预设的单词组合方式, 对关键词进行组合, 获得多个组合词; 在步骤 14中, 确定各组合词对应的音素序列, 以生成组合词与音素序列之间的映射 关系。 初始发音字典中包含了字典所能处理的单词及其发音 (体现为音素)。 目标词性可以 包括但不限于以下中的至少一者: 名词、 动词、 形容词。 因此, 在步骤 11中, 从初始发音字典所包含的单词中, 获取与目标词性相符合的单 词集合, 相当于针对每一种目标词性, 分别从初始发音字典所包含的单词中, 提取出对应 词性的单词, 并构成与该词性对应的单词集合。 示例地, 若目标词性包括名词、 动词、 形容词这三者, 则步骤 11相当于从初始发音 字典所包含的单词中, 提取名词构成名词集合, 并提取动词构成动词集合, 并提取形容词 构成形容词集合。 之后, 在步骤 12中, 针对每一种目标词性, 从与目标词性相符合的单词集合中确定 出与目标词性对应的至少一个关键词。 在一种可能的实施方式中,可以从与目标词性相符合的单词集合中随机确定若干单词 作为与目标词性对应的至少一个关键词。 在另一种可能的实施方式中, 步骤 12可以包括以下步骤, 如图 2所示: 在步骤 21中, 针对与目标词性相符合的单词集合中的每一单词, 确定单词在目标语 料库中的词频; 在步骤 22中, 将最大的前 N个词频对应的单词确定为与目标词性对应的关键词。 其中, N为正整数。 示例地,单词在目标语料库中的词频可以通过单词在目标语料库出现的次数与目标语 料库的总词数的比值获得。 再例如, 可以通过 TF-IDF (Term Frequency-Inverse Document Frequency, 词频 -逆文 档频率) 方式计算单词在目标语料库中的词频, 其中, 计算式可以如下所示: 单词在目标语料库中的词频 =(单词的 TF) * (单词的 IDF) =(单词在目标语料库出 现的次数 /目标语料库的总词数) *lg (目标语料库包含的文章总数 /目标语料库中出现单词 的文章数)。 在计算出每个单词对应的词频后, 可以将最大的前 N个词频对应的单词确定为与目 标词性对应的关键词。 通过上述方式, 将在目标语料库中词频较高的单词作为关键词, 一方面, 关键词能够 更为有效地表征对应于目标词性的单词情况, 另一方面, 能够节省后续数据处理所消耗的 资源。 回到图 1, 在步骤 13 中, 按照预设的单词组合方式, 对关键词进行组合, 获得多个 组合词。 其中,预设的单词组合方式至少包括将属于同一目标词性的关键词进行组合以及将属 于不同目标词性的关键词进行组合。 举例来说, 若经步骤 12处理后得到目标词性 S1对应的关键词 VI、 V2、 V3, 目标词 性 S2对应的关键词为 V4、 V5, 目标词性 S3对应的关键词为 V6。 那么, 将属于同一目标词性的关键词进行组合, 以目标词性 S1为例, 就是将 S1中的 各关键词进行组合, 例如, 组合为 V1V2、 V3V2V1 等。 将属于不同目标词性的关键词进 行组合, 以目标词性 S2、 S3 为例, 就是将 S2、 S3 中的关键词进行组合, 例如, 组合为 V4V6、 V5V6等。 除此之外,预设的单词这方式还可以为既将属于同一目标词性的关键词进行组合又将 属于不同目标词性的关键词进行组合。 例如, 针对上述示例中的词性 SI、 S2、 S3, 可以组 合为 V1V2V4V6等。 在一种可能的实施方式中, 步骤 13可以包括以下中的至少一者: 将属于不同目标词性的第一预设数量的关键词进行组合, 获得组合词; 将属于相同目标词性的第二预设数量的关键词进行组合, 获得组合词。 例如, 可以将词性为名词的两个关键词进行组合, 获得组合词, 在这一示例中, 第二 预设数量为 2, 目标词性为名词。 再例如, 可以将从名词和形容词找那个各选一个关键词 进行组合, 以获得组合词, 在这一示例中, 第一预设数量为 2, 目标词性分别为名词和形 容词。 同时, 组合时各关键词的先后顺序不同, 还可获得不同的组合词。 例如, 若将关键词 A 和关键词 B进行组合, 则可以获得 AB和 BA两种组合词。 在另一种可能的实施方式中, 还可以获取词前缀或词后缀中的至少一者, 并且, 在这 一实施方式中, 步骤 13可以包括以下中的至少一者: 将词前缀与关键词按照由前到后的顺序进行组合, 以获得组合词; 将关键词与词后缀按照由前到后的顺序进行组合, 以获得组合词。 示例地, 词前缀、 词后缀可以是相关人员根据初始发音字典所包含的单词总结出的, 这些词前缀、 词后缀的读音也可从初始发音字典中获知。 再例如, 词前缀、 词后缀也可以 是从能够提供词前缀、 词后缀信息的地方直接获得的, 这一示例中, 在获取词前缀、 词后 缀时, 也可一并获取词前缀、 词后缀对应的读音。 一般情况下, 词前缀位于词的首部, 因此, 在获得组合词时, 需要将词前缀与关键词 按照由先到后的顺序进行组合。 例如, 词前缀 C与关键词 D, 可以组合为组合词 CD。 同时, 一般情况下, 词后缀位于词的尾部, 因此, 在获得组合词时, 需要将关键词和 词后缀按照由先到后的顺序进行组合。例如,关键词 E和词后缀 F,可以组合为组合词 EF。 另外, 在步骤 13之后, 本公开提供的方法还可以包括以下步骤: 若存在无法构成音节的组合词, 将无法构成音节的组合词从多个组合词中删除。 在经步骤 13构成的组合词中, 可能存在无法构成音节的组合词, 这样的组合词对于 后续的数据处理毫无意义, 因此, 可以将这样的组合词从多个组合词中删除, 而不会对其 进行后续步骤 14的处理。 判断能否构成音节可以存在多种方式, 因此, 可以预先设置一些判断条件, 用于判断 组合词能否构成音节。 示例地, 一般情况下, 两个辅音同时出现是无法发音的, 因此, 可 以设置判断条件为组合词中是否存在相邻的辅音, 若存在相邻的辅音, 则可以确定该组合 词无法构成音节, 进而将其从组合词中删除。 通过上述方式, 将无法发音的组合词从多个组合词中删除, 能够节省后续的数据处理 开销, 避免无意义的计算资源浪费。 在步骤 14中, 确定各组合词对应的音素序列, 以生成组合词与音素序列之间的映射 关系。 示例地, 步骤 14可以包括以下步骤: 针对每一组合词, 执行如下操作: 从初始发音字典中, 获取构成组合词的各单词对应的初始音素; 将初始音素按照各单词在组合词中的排列顺序进行组合,获得与组合词对应的音素序 列, 以生成组合词与音素序列之间的对应关系。 针对每个组合词, 由于组合词是由初始发音字典所包含的单词组合而成的,其读音可 知, 因此, 可以从初始发音字典中, 获取构成组合词的各单词对应的初始音素, 进而, 按 照各单词在组合词中的排列顺序, 将获得的各初始音素进行组合, 进而获得与组合词对应 的音素序列, 生成组合词与音素序列之间的对应关系。 示例地, 若组合词 W1W2W3, 其中, W1对应的发音音素为 Pl, W2对应的发音音 素为 P2, W3对应的发音音素为 P3, 则组合词 W1W2W3对应的音素序列为 P1P2P3。 通过上述技术方案, 从初始发音字典所包含的单词中, 获取与目标词性相符合的单词 集合, 之后, 针对每一种目标词性, 从与目标词性相符合的单词集合中确定出与目标词性 对应的至少一个关键词,按照预设的单词组合方式,对关键词进行组合,获得多个组合词, 确定各组合词对应的音素序列, 以生成组合词与音素序列之间的映射关系。 由此, 能够基 于初始发音字典的单词自动生成新的组合词, 并能自动获得能够表征组合词读音的音素序 列, 构建过程中无需人工参与, 另外, 还可将生成的组合词及其音素序列用于模型的增广 训练中, 提升模型的泛化能力。 可选地, 本公开提供的方法还可以包括以下步骤, 如图 3所示。 在步骤 31中, 将生成的组合词与音素序列之间的映射关系添加至初始发音字典, 以 生成目标发音字典。 也就是说, 可以将生成的组合词与音素序列之间的映射关系添加至初始发音字典, 以 将初始发音字典更新为目标发音字典, 后续的数据处理中可以直接使用目标发音字典。 例 如, 将目标发音字典用于语音合成的模型训练中, 可以提升模型的泛化能力。 再例如, 在 利用初始发音字典训练得到语音合成模型后, 还可利用目标发音字典对该模型进行增广训 练, 以对模型进行微调, 有利于获得效果更好的模型。 图 4是根据本公开的一种实施方式提供的数据生成装置的框图。如图 4所示,所述装 置 40包括: 第一获取模块 41, 用于从初始发音字典所包含的单词中, 获取与目标词性相符合的 单词集合; 第一确定模块 42, 用于针对每一种目标词性, 从与所述目标词性相符合的单词集合 中确定出与所述目标词性对应的至少一个关键词; 组合模块 43, 用于按照预设的单词组合方式, 对所述关键词进行组合, 获得多个组 合词, 其中, 预设的单词组合方式包括将属于同一目标词性的关键词进行组合以及将属于 不同目标词性的关键词进行组合; 第二确定模块 44, 用于确定各组合词对应的音素序列, 以生成组合词与音素序列之 间的映射关系。 可选地, 所述第一确定模块 42包括: 第一确定子模块, 用于针对与所述目标词性相符合的单词集合中的每一单词,确定所 述单词在目标语料库中的词频; 第二确定子模块, 用于将最大的前 N个词频对应的单词确定为与所述目标词性对应 的关键词, 其中, N为正整数。 可选地, 所述组合模块 43, 包括以下中的至少一者: 第一组合子模块, 用于将属于不同目标词性的第一预设数量的关键词进行组合, 获得 组合词; 第二组合子模块, 用于将属于相同目标词性的第二预设数量的关键词进行组合, 获得 组合词。 可选地, 所述装置 40还包括: 第二获取模块, 用于获取词前缀或词后缀中的至少一者; 所述组合模块 43, 包括以下中的至少一者: 第三组合子模块, 用于将所述词前缀与关键词按照由前到后的顺序进行组合, 以获得 组合词; 第四组合子模块, 用于将关键词与所述词后缀按照由前到后的顺序进行组合, 以获得 组合词。 可选地, 所述装置 40还包括: 在所述组合模块按照预设的单词组合方式, 对所述关键词进行组合, 获得多个组合词 之后, 若存在无法构成音节的组合词, 将所述无法构成音节的组合词从所述多个组合词中 删除。 可选地, 所述第二确定模块 44用于针对每一所述组合词, 执行如下操作: 从所述初始发音字典中, 获取构成所述组合词的各单词对应的初始音素; 将初始音素按照各单词在所述组合词中的排列顺序进行组合,获得与所述组合词对应 的音素序列, 以生成所述组合词与音素序列之间的对应关系。 可选地, 所述装置 40还包括: 字典生成模块,用于将生成的组合词与音素序列之间的映射关系添加至所述初始发音 字典, 以生成目标发音字典。 关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实 施例中进行了详细描述, 此处将不做详细阐述说明。 下面参考图 5, 其示出了适于用来实现本公开实施例的电子设备 600的结构示意图。 本公开实施例中的终端设备可以包括但不限于诸如移动电话、 笔记本电脑、 数字广播接收 器、 PDA(个人数字助理)、 PAD(平板电脑)、 PMP(便携式多媒体播放器)、车载终端(例 如车载导航终端) 等等的移动终端以及诸如数字 TV、 台式计算机等等的固定终端。 图 5 示出的电子设备仅仅是一个示例, 不应对本公开实施例的功能和使用范围带来任何限制。 如图 5所示,电子设备 600可以包括处理装置(例如中央处理器、图形处理器等)601, 其可以根据存储在只读存储器 (ROM) 602中的程序或者从存储装置 608加载到随机访问 存储器 (RAM) 603中的程序而执行各种适当的动作和处理。 在 RAM 603中, 还存储有 电子设备 600操作所需的各种程序和数据。 处理装置 601、 ROM 602以及 RAM 603通过 总线 604彼此相连。 输入 /输出 (I/O) 接口 605也连接至总线 604。 通常, 以下装置可以连接至 I/O接口 605: 包括例如触摸屏、 触摸板、 键盘、 鼠标、 摄像头、 麦克风、 加速度计、 陀螺仪等的输入装置 606; 包括例如液晶显示器 (LCD)、 扬 声器、 振动器等的输出装置 607; 包括例如磁带、 硬盘等的存储装置 608; 以及通信装置 609。 通信装置 609可以允许电子设备 600与其他设备进行无线或有线通信以交换数据。 虽然图 5示出了具有各种装置的电子设备 600, 但是应理解的是, 并不要求实施或具备所 有示出的装置。 可以替代地实施或具备更多或更少的装置。 特别地, 根据本公开的实施例, 上文参考流程图描述的过程可以被实现为计算机软件 程序。 例如, 本公开的实施例包括一种计算机程序产品, 其包括承载在非暂态计算机可读 介质上的计算机程序, 该计算机程序包含用于执行流程图所示的方法的程序代码。 在这样 的实施例中, 该计算机程序可以通过通信装置 609从网络上被下载和安装, 或者从存储装 置 608被安装, 或者从 ROM 602被安装。 在该计算机程序被处理装置 601执行时, 执行 本公开实施例的方法中限定的上述功能。 需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机 可读存储介质或者是上述两者的任意组合。 计算机可读存储介质例如可以是一但不限于 — 电、 磁、 光、 电磁、 红外线、 或半导体的系统、 装置或器件, 或者任意以上的组合。 计算机可读存储介质的更具体的例子可以包括但不限于 : 具有一个或多个导线的电连接、 便携式计算机磁盘、 硬盘、 随机访问存储器 (RAM)、 只读存储器 (ROM)、 可擦式可编 程只读存储器 (EPROM 或闪存)、 光纤、 便携式紧凑磁盘只读存储器 (CD-ROM)、 光存 储器件、 磁存储器件、 或者上述的任意合适的组合。 在本公开中, 计算机可读存储介质可 以是任何包含或存储程序的有形介质, 该程序可以被指令执行系统、 装置或者器件使用或 者与其结合使用。 而在本公开中, 计算机可读信号介质可以包括在基带中或者作为载波一 部分传播的数据信号, 其中承载了计算机可读的程序代码。 这种传播的数据信号可以采用 多种形式, 包括但不限于电磁信号、 光信号或上述的任意合适的组合。 计算机可读信号介 质还可以是计算机可读存储介质以外的任何计算机可读介质, 该计算机可读信号介质可以 发送、 传播或者传输用于由指令执行系统、 装置或者器件使用或者与其结合使用的程序。 计算机可读介质上包含的程序代码可以用任何适当的介质传输, 包括但不限于: 电线、 光 缆、 RF (射频) 等等, 或者上述的任意合适的组合。 在一些实施方式中, 服务器可以利用诸如 HTTP (HyperText Transfer Protocol, 超文 本传输协议) 之类的任何当前已知或未来研发的网络协议进行通信, 并且可以与任意形式 或介质的数字数据通信 (例如, 通信网络) 互连。 通信网络的示例包括局域网 (“LAN”), 广域网 (“WAN”), 网际网(例如, 互联网)以及端对端网络(例如, ad hoc端对端网络), 以及任何当前已知或未来研发的网络。 上述计算机可读介质可以是上述电子设备中所包含的; 也可以是单独存在, 而未装配 入该电子设备中。 上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设 备执行时, 使得该电子设备: 从初始发音字典所包含的单词中, 获取与目标词性相符合的 单词集合; 针对每一种目标词性, 从与所述目标词性相符合的单词集合中确定出与所述目 标词性对应的至少一个关键词; 按照预设的单词组合方式, 对所述关键词进行组合, 获得 多个组合词, 其中, 预设的单词组合方式包括将属于同一目标词性的关键词进行组合以及 将属于不同目标词性的关键词进行组合; 确定各组合词对应的音素序列, 以生成组合词与 音素序列之间的映射关系。 可以以一种或多种程序设计语言或其组合来编写用于执行本公开 的操作的计算机程 序代码,上述程序设计语言包括但不限于面向对象的程序设计语言一诸如 Java、 Smalltalk、 C++,还包括常规的过程式程序设计语言一 诸如 “C”语言或类似的程序设计语言。程序代 码可以完全地在用户计算机上执行、 部分地在用户计算机上执行、 作为一个独立的软件包 执行、 部分在用户计算机上部分在远程计算机上执行、 或者完全在远程计算机或服务器上 执行。 在涉及远程计算机的情形中, 远程计算机可以通过任意种类的网络一包括局域网 (LAN)或广域网 (WAN) —连接到用户计算机, 或者, 可以连接到外部计算机(例如 利用因特网服务提供商来通过因特网连接)。 附图中的流程图和框图, 图示了按照本公开各种实施例的系统、方法和计算机程序产 品的可能实现的体系架构、 功能和操作。 在这点上, 流程图或框图中的每个方框可以代表 一个模块、 程序段、 或代码的一部分, 该模块、 程序段、 或代码的一部分包含一个或多个 用于实现规定的逻辑功能的可执行指令。 也应当注意, 在有些作为替换的实现中, 方框中 所标注的功能也可以以不同于附图中所标注的顺序发生。 例如, 两个接连地表示的方框实 际上可以基本并行地执行, 它们有时也可以按相反的顺序执行, 这依所涉及的功能而定。 也要注意的是, 框图和 /或流程图中的每个方框、 以及框图和 /或流程图中的方框的组合, 可以用执行规定的功能或操作的专用的基于硬件的系统来实现, 或者可以用专用硬件与计 算机指令的组合来实现。 描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的 方式来实现。 其中, 模块的名称在某种情况下并不构成对该模块本身的限定, 例如, 第一 获取模块还可以被描述为 “从初始发音字典所包含的单词中,获取与目标词性相符合的单词 集合的模块”。 本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如, 非 限制性地, 可以使用的示范类型的硬件逻辑部件包括: 现场可编程门阵列 (FPGA)、 专用 集成电路( ASIC) 专用标准产品( ASSP) 片上系统( SOC) 复杂可编程逻辑设备( CPLD) 等等。 在本公开的上下文中, 机器可读介质可以是有形的介质,其可以包含或存储以供指令 执行系统、 装置或设备使用或与指令执行系统、 装置或设备结合地使用的程序。 机器可读 介质可以是机器可读信号介质或机器可读储存介质。 机器可读介质可以包括但不限于电子 的、 磁性的、 光学的、 电磁的、 红外的、 或半导体系统、 装置或设备, 或者上述内容的任 何合适组合。 机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、 便携 式计算机盘、 硬盘、 随机存取存储器 (RAM)、 只读存储器 (ROM)、 可擦除可编程只读 存储器 (EPROM 或快闪存储器)、 光纤、 便捷式紧凑盘只读存储器 (CD-ROM)、 光学储 存设备、 磁储存设备、 或上述内容的任何合适组合。 根据本公开的一个或多个实施例, 提供了一种数据生成方法, 所述方法包括: 从初始发音字典所包含的单词中, 获取与目标词性相符合的单词集合; 针对每一种目标词性,从与所述目标词性相符合的单词集合中确定出与所述目标词性 对应的至少一个关键词; 按照预设的单词组合方式, 对所述关键词进行组合, 获得多个组合词, 其中, 预设的 单词组合方式包括将属于 同一目标词性的关键词进行组合以及将属于不同目标词性的关 键词进行组合; 确定各组合词对应的音素序列, 以生成组合词与音素序列之间的映射关系。 根据本公开的一个或多个实施例, 提供了一种数据生成方法,所述从与所述目标词性 相符合的单词集合中确定出与所述目标词性对应的至少一个关键词, 包括: 针对与所述目标词性相符合的单词集合中的每一单词,确定所述单词在目标语料库中 的词频; 将最大的前 N个词频对应的单词确定为与所述目标词性对应的关键词, 其中, N为 正整数。 根据本公开的一个或多个实施例, 提供了一种数据生成方法,所述按照预设的单词组 合方式, 对所述关键词进行组合, 获得多个组合词, 包括以下中的至少一者: 将属于不同目标词性的第一预设数量的关键词进行组合, 获得组合词; 将属于相同目标词性的第二预设数量的关键词进行组合, 获得组合词。 根据本公开的一个或多个实施例, 提供了一种数据生成方法, 所述方法还包括: 获取词前缀或词后缀中的至少一者; 所述按照预设的单词组合方式, 对所述关键词进行组合, 获得多个组合词, 包括以下 中的至少一者: 将所述词前缀与关键词按照由前到后的顺序进行组合, 以获得组合词; 将关键词与所述词后缀按照由前到后的顺序进行组合, 以获得组合词。 根据本公开的一个或多个实施例, 提供了一种数据生成方法,在所述按照预设的单词 组合方式, 对所述关键词进行组合, 获得多个组合词的步骤之后, 所述方法还包括: 若存在无法构成音节的组合词,将所述无法构成音节的组合词从所述多个组合词中删 除。 根据本公开的一个或多个实施例, 提供了一种数据生成方法,所述确定各组合词对应 的音素序列, 以生成组合词与音素序列之间的映射关系, 包括: 针对每一所述组合词, 执行如下操作: 从所述初始发音字典中, 获取构成所述组合词的各单词对应的初始音素; 将初始音素按照各单词在所述组合词中的排列顺序进行组合,获得与所述组合词对应 的音素序列, 以生成所述组合词与音素序列之间的对应关系。 根据本公开的一个或多个实施例, 提供了一种数据生成方法, 所述方法还包括: 将生成的组合词与音素序列之间的映射关系添加至所述初始发音字典,以生成目标发 音字典。 根据本公开的一个或多个实施例, 提供了一种数据生成装置, 所述装置包括: 第一获取模块, 用于从初始发音字典所包含的单词中, 获取与目标词性相符合的单词 集合; 第一确定模块, 用于针对每一种目标词性, 从与所述目标词性相符合的单词集合中确 定出与所述目标词性对应的至少一个关键词; 组合模块,用于按照预设的单词组合方式,对所述关键词进行组合,获得多个组合词, 其中, 预设的单词组合方式包括将属于同一目标词性的关键词进行组合以及将属于不同目 标词性的关键词进行组合; 第二确定模块, 用于确定各组合词对应的音素序列, 以生成组合词与音素序列之间的 映射关系。 根据本公开的一个或多个实施例, 提供了一种计算机可读介质,其上存储有计算机程 序, 该计算机程序被处理装置执行时实现本公开任意实施例所述的数据生成方法的步骤。 根据本公开的一个或多个实施例, 提供了一种电子设备, 包括: 存储装置, 其上存储有计算机程序; 处理装置, 用于执行所述存储装置中的所述计算机程序, 以实现本公开任意实施例所 述的数据生成方法的步骤。 根据本公开的一个或多个实施例, 提供了一种计算机程序, 包括: 指令, 所述指令当 由处理器执行时使所述处理器执行本公开任意实施例所述的数据生成方法的步骤。 根据本公开的一个或多个实施例, 提供了一种计算机程序产品, 包括指令, 所述指令 当由处理器执行时使所述处理器执行本公开任意实施例所述的数据生成方法的步骤。 以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应 当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案, 同时也应涵盖在不脱离上述公开构思的情况下, 由上述技术特征或其等同特征进行任意组 合而形成的其它技术方案。 例如上述特征与本公开中公开的 (但不限于) 具有类似功能的 技术特征进行互相替换而形成的技术方案。 此外, 虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出 的特定次序或以顺序次序执行来执行。 在一定环境下, 多任务和并行处理可能是有利的。 同样地, 虽然在上面论述中包含了若干具体实现细节, 但是这些不应当被解释为对本公开 的范围的限制。 在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施 例中。 相反地, 在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子 组合的方式实现在多个实施例中。 尽管已经采用特定于结构特征和 /或方法逻辑动作的语言描述了本主题, 但是应当理 解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。 相反, 上面所 描述的特定特征和动作仅仅是实现权利要求书的示例形式。 关于上述实施例中的装置, 其 中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述, 此处将不 做详细阐述说明。 Data Generation Method, Apparatus, Readable Medium, and Electronic Device This application requires a Chinese patent application filed on November 26, 2020, with the application number of 202011355899.0 and titled "Data Generation Method, Device, Readable Medium, and Electronic Device" Priority, the entire contents of which are incorporated herein by reference. FIELD OF THE DISCLOSURE The present disclosure relates to the field of data processing, and in particular, to a data generation method, apparatus, readable medium, and electronic device. BACKGROUND In a speech synthesis scenario, it is usually necessary to determine the phonemes of the text for a piece of text, and then implement pronunciation according to the phonemes, which is an important part of the speech synthesis front-end, referred to as G2P (Grapheme-to-Phoneme, word-to-phoneme). In the related art, a pronunciation dictionary (also called a pronunciation dictionary) is generally used to query the phonemes that can represent the pronunciation of a word, wherein the pronunciation dictionary contains a set of words that can be processed by a speech synthesis system, and indicates its pronunciation. SUMMARY This Summary section is provided to introduce concepts in a simplified form that are described in detail in the Detailed Description section that follows. This summary section is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution. In a first aspect, the present disclosure provides a data generation method, the method comprising: obtaining a word set that is consistent with a target part of speech from words contained in an initial pronunciation dictionary; At least one keyword corresponding to the target part of speech is determined from the set of words that match the part of speech; the keywords are combined according to a preset word combination to obtain a plurality of combined words, wherein the preset word combination The method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; determining the phoneme sequence corresponding to each combined word to generate a mapping relationship between the combined word and the phoneme sequence. In a second aspect, the present disclosure provides a data generation device, the device includes: a first acquisition module, configured to acquire a word set that matches a target part of speech from words included in an initial pronunciation dictionary; a first determination module, For each target part-of-speech, from a set of words that match the target part-of-speech, at least one keyword corresponding to the target part-of-speech is determined; a combination module is used to combine all words according to a preset word combination. Combining the described keywords to obtain a plurality of combined words, wherein the preset word combination method includes combining keywords belonging to the same target part of speech to and combining keywords belonging to different target parts of speech; the second determining module is used to determine the phoneme sequence corresponding to each combined word, so as to generate a mapping relationship between the combined word and the phoneme sequence. In a third aspect, the present disclosure provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processing apparatus, implements the steps of the data generation method described in the first aspect of the present disclosure. In a fourth aspect, the present disclosure provides an electronic device, comprising: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the first aspect of the present disclosure The steps of the data generation method. In a fifth aspect, the present disclosure provides a computer program, comprising: instructions, when executed by a processor, the instructions cause the processor to perform the steps of the data generation method provided in the first aspect of the present disclosure. In a sixth aspect, the present disclosure provides a computer program product, comprising instructions that, when executed by a processor, cause the processor to perform the steps of the data generation method provided in the first aspect of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent with reference to the following detailed description taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale. In the accompanying drawings: FIG. 1 is a flowchart of a data generation method provided according to an embodiment of the present disclosure; FIG. 2 is a data generation method provided according to the present disclosure, for each target part of speech, An exemplary flowchart of the steps of determining at least one keyword corresponding to the target part of speech in the matched word set; FIG. 3 is a flowchart of a data generation method provided by another embodiment of the present disclosure; FIG. 4 is a A block diagram of a data generating apparatus provided according to an embodiment of the present disclosure; FIG. 5 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of 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 used for exemplary purposes, and are not intended to limit the protection scope of the present disclosure. It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard. As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or interdependence. It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless the context clearly indicates otherwise, they should be understood as "one or a plurality of"multiple". The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes, and are not used to limit the scope of these messages or information. The words covered by the existing pronunciation dictionary are limited, and it is often impossible to find the phoneme corresponding to the word, and thus the problem of not being able to recognize the pronunciation of the word occurs. Therefore, G2P errors are often caused, which in turn causes speech synthesis to fail to synthesize the pronunciation of certain words. Among them, words whose pronunciation cannot be obtained from the pronunciation dictionary may be abbreviated as OOV (Out of Vocabulary, unregistered words). The present disclosure provides a data generation method, device, readable medium, and electronic device to construct the above-mentioned mapping relationship between 00V and phonemes, and further, when performing model training with the constructed mapping relationship as training data, it can effectively improve The generalization ability of the model. Through the technical solution of the present disclosure, from the words included in the initial pronunciation dictionary, a set of words that is consistent with the target part of speech is obtained, and then, for each target part of speech, from the set of words that are consistent with the target part of speech, the word set that matches the target is determined. For at least one keyword corresponding to the part of speech, the keywords are combined according to a preset word combination mode to obtain a plurality of combined words, and the phoneme sequence corresponding to each combined word is determined to generate a mapping relationship between the combined word and the phoneme sequence. As a result, a new compound word can be automatically generated based on the words in the initial pronunciation dictionary, and a phoneme sequence that can characterize the pronunciation of the compound word can be automatically obtained without manual participation in the construction process. In addition, the generated compound word and its phoneme sequence can also be It is used in the augmentation training of the model to improve the generalization ability of the model. Other features and advantages of the present disclosure will be described in detail later. FIG. 1 is a flowchart of a data generation method provided according to an embodiment of the present disclosure. As shown in Figure 1, the method may include the following steps: In step 11, from the words contained in the initial pronunciation dictionary, obtain a set of words that is consistent with the target part of speech; In step 12, for each target part of speech, Determine at least one keyword corresponding to the target part-of-speech from the set of words that match the target part-of-speech; in step 13, combine the keywords according to a preset word combination mode to obtain a plurality of combined words; In step 14, the phoneme sequence corresponding to each compound word is determined to generate a mapping relationship between the compound word and the phoneme sequence. The initial pronunciation dictionary contains the words and their pronunciations (represented as phonemes) that the dictionary can handle. The target part of speech may include, but is not limited to, at least one of the following: noun, verb, adjective. Therefore, in step 11, from the words contained in the initial pronunciation dictionary, a set of words that is consistent with the target part of speech is obtained, which is equivalent to extracting the corresponding words from the words contained in the initial pronunciation dictionary for each target part of speech. Words of a part of speech, and constitute a set of words corresponding to the part of speech. For example, if the target part of speech includes nouns, verbs, and adjectives, step 11 is equivalent to extracting nouns from the words contained in the initial pronunciation dictionary to form a noun set, extracting verbs to form a verb set, and extracting adjectives to form an adjective set . Then, in step 12, for each target part of speech, at least one keyword corresponding to the target part of speech is determined from the set of words that match the target part of speech. In a possible implementation, several words may be randomly determined from a set of words that match the target part of speech as at least one keyword corresponding to the target part of speech. In another possible implementation, step 12 may include the following steps, as shown in FIG. 2: In step 21, for each word in the word set that matches the target part-of-speech, determine the word's relative value in the target corpus Word frequency; In step 22, the words corresponding to the largest top N word frequencies are determined as keywords corresponding to the target part of speech. where N is a positive integer. For example, the word frequency of a word in the target corpus can be obtained by the ratio of the number of times the word appears in the target corpus to the total number of words in the target corpus. For another example, the term frequency of a word in the target corpus can be calculated by TF-IDF (Term Frequency-Inverse Document Frequency), where the calculation formula can be as follows: Word frequency in the target corpus = ( TF of the word) * (IDF of the word) = (the number of times the word appears in the target corpus / the total number of words in the target corpus) *lg (the total number of articles contained in the target corpus / the number of articles in which the word appears in the target corpus). After calculating the word frequency corresponding to each word, the words corresponding to the largest top N word frequencies may be determined as keywords corresponding to the target part of speech. In the above manner, the words with higher word frequency in the target corpus are used as keywords. On the one hand, the keywords can more effectively represent the situation of the words corresponding to the target part of speech, and on the other hand, the resources consumed by subsequent data processing can be saved. . Returning to FIG. 1, in step 13, keywords are combined according to a preset word combination mode to obtain a plurality of combined words. The preset word combination method includes at least combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech. For example, if the keywords VI, V2, V3 corresponding to the target part of speech S1 are obtained after processing in step 12, the keywords corresponding to the target part of speech S2 are V4 and V5, and the keyword corresponding to the target part of speech S3 is V6. Then, to combine keywords belonging to the same target part-of-speech, taking the target part-of-speech S1 as an example, the keywords in S1 are combined, for example, the combination is V1V2, V3V2V1 and so on. Combining keywords belonging to different target parts of speech, taking the target parts of speech S2 and S3 as an example, is to combine keywords in S2 and S3, for example, to combine V4V6, V5V6 and so on. In addition, the preset word method can also be a combination of keywords belonging to the same target part of speech and keywords belonging to different target parts of speech. For example, for the parts of speech SI, S2, and S3 in the above example, they can be combined into V1V2V4V6 and so on. In a possible implementation, step 13 may include at least one of the following: combining a first preset number of keywords belonging to different target parts of speech to obtain a combined word; combining a second preset number of keywords belonging to the same target part of speech Set a number of keywords to combine to obtain combined words. For example, two keywords whose part of speech is a noun can be combined to obtain a combined word. In this example, the second preset number is 2, and the target part of speech is a noun. For another example, one keyword can be selected from each of the noun and the adjective to be combined to obtain a combined word. In this example, the first preset number is 2, and the target parts of speech are noun and adjective respectively. At the same time, the sequence of each keyword during combination is different, and different combined words can also be obtained. For example, if keyword A and keyword B are combined, two combined words AB and BA can be obtained. In another possible implementation manner, at least one of a word prefix or a word suffix may also be obtained, and, in this implementation manner, step 13 may include at least one of the following: combining the word prefix with the keyword The combination is performed in a front-to-back order to obtain a compound word; the keywords and the word suffix are combined in a front-to-back order to obtain a compound word. For example, word prefixes and word suffixes may be summed up by relevant personnel according to the words contained in the initial pronunciation dictionary, and the pronunciation of these word prefixes and word suffixes may also be obtained from the initial pronunciation dictionary. For another example, word prefixes and word suffixes can also be obtained directly from places that can provide word prefix and word suffix information. In this example, when word prefixes and word suffixes are obtained, word prefixes and word suffixes can also be obtained together. corresponding pronunciation. In general, the word prefix is located at the beginning of the word. Therefore, when obtaining a compound word, it is necessary to associate the word prefix with the keyword Combine in first-to-last order. For example, the word prefix C and the keyword D can be combined into a compound word CD. At the same time, in general, the word suffix is located at the end of the word. Therefore, when obtaining a compound word, it is necessary to combine the keyword and the word suffix in a first-to-last order. For example, the keyword E and the word suffix F can be combined into the compound word EF. In addition, after step 13, the method provided by the present disclosure may further include the following steps: if there is a combined word that cannot form a syllable, delete the combined word that cannot form a syllable from a plurality of combined words. In the compound words formed in step 13, there may be compound words that cannot form syllables, and such compound words are meaningless for subsequent data processing. Therefore, such compound words can be deleted from multiple compound words, instead of It will be processed in the subsequent step 14. There are many ways to judge whether a syllable can be formed, and therefore, some judgment conditions can be preset to judge whether a compound word can form a syllable. For example, in general, two consonants appearing at the same time cannot be pronounced. Therefore, the judgment condition can be set as whether there are adjacent consonants in the combined word. If there are adjacent consonants, it can be determined that the combined word cannot form a syllable. , which in turn is removed from the compound word. In the above manner, the unpronounceable compound word is deleted from the multiple compound words, which can save subsequent data processing overhead and avoid meaningless waste of computing resources. In step 14, the phoneme sequence corresponding to each compound word is determined to generate a mapping relationship between the compound word and the phoneme sequence. Exemplarily, step 14 may include the following steps: for each combined word, perform the following operations: from the initial pronunciation dictionary, obtain the initial phonemes corresponding to each word constituting the combined word; arrange the initial phonemes according to the arrangement of the words in the combined word The combination is performed in order to obtain the phoneme sequence corresponding to the combined word, so as to generate the correspondence between the combined word and the phoneme sequence. For each combined word, since the combined word is composed of words contained in the initial pronunciation dictionary, and its pronunciation is known, therefore, the initial phoneme corresponding to each word that constitutes the combined word can be obtained from the initial pronunciation dictionary, and further, According to the arrangement order of each word in the combined word, the obtained initial phonemes are combined, and then the phoneme sequence corresponding to the combined word is obtained, and the corresponding relationship between the combined word and the phoneme sequence is generated. For example, if the combined word W1W2W3, wherein the pronunciation phoneme corresponding to W1 is P1, the pronunciation phoneme corresponding to W2 is P2, and the pronunciation phoneme corresponding to W3 is P3, then the phoneme sequence corresponding to the combination word W1W2W3 is P1P2P3. Through the above technical solution, from the words contained in the initial pronunciation dictionary, a set of words that is consistent with the target part of speech is obtained, and then, for each target part of speech, from the set of words that are consistent with the target part of speech To determine the set of words corresponding to the target part of speech The at least one keyword of the keyword is combined according to a preset word combination mode to obtain a plurality of combined words, and the phoneme sequence corresponding to each combined word is determined to generate a mapping relationship between the combined word and the phoneme sequence. Thus, it is possible to base The words in the initial pronunciation dictionary can automatically generate new combined words, and can automatically obtain the phoneme sequence that can characterize the pronunciation of the combined word without manual participation in the construction process. In addition, the generated combined words and their phoneme sequences can also be used for the model. In augmented training, the generalization ability of the model is improved. Optionally, the method provided by the present disclosure may further include the following steps, as shown in FIG. 3 . In step 31, the generated mapping relationship between the combined word and the phoneme sequence is added to the initial pronunciation dictionary to generate a target pronunciation dictionary. That is to say, the generated mapping relationship between the combined word and the phoneme sequence can be added to the initial pronunciation dictionary to update the initial pronunciation dictionary to the target pronunciation dictionary, and the target pronunciation dictionary can be directly used in subsequent data processing. For example, using the target pronunciation dictionary for model training of speech synthesis can improve the generalization ability of the model. For another example, after using the initial pronunciation dictionary to train the speech synthesis model, the target pronunciation dictionary may also be used to perform augmentation training on the model, so as to fine-tune the model, which is beneficial to obtain a model with better effect. FIG. 4 is a block diagram of a data generating apparatus provided according to an embodiment of the present disclosure. As shown in FIG. 4 , the device 40 includes: a first obtaining module 41, used for obtaining a word set that matches the target part of speech from the words contained in the initial pronunciation dictionary; a first determining module 42, used for each A target part-of-speech, which determines at least one keyword corresponding to the target part-of-speech from a set of words that match the target part-of-speech. Combining to obtain a plurality of combined words, wherein the preset word combination method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; the second determination module 44 is used to determine each The phoneme sequence corresponding to the combined word is used to generate the mapping relationship between the combined word and the phoneme sequence. Optionally, the first determination module 42 includes: a first determination sub-module for determining, for each word in the set of words that match the target part of speech, the word frequency of the word in the target corpus; The second determination sub-module is used to determine the words corresponding to the largest top N word frequencies as keywords corresponding to the target part of speech, where N is a positive integer. Optionally, the combining module 43 includes at least one of the following: a first combining sub-module, configured to combine a first preset number of keywords belonging to different target parts of speech to obtain a combined word; a second combination A sub-module for combining the second preset number of keywords belonging to the same target part of speech to obtain compound words. Optionally, the apparatus 40 further includes: a second obtaining module, configured to obtain at least one of a word prefix or a word suffix; the combining module 43, including at least one of the following: a third combining submodule, is used to combine the word prefix and the keyword in a front-to-back order to obtain a combined word; the fourth combining submodule is used to combine the keyword and the word suffix in a front-to-back order , to get compound words. Optionally, the device 40 further includes: after the combination module combines the keywords according to a preset word combination mode to obtain a plurality of combination words, if there is a combination word that cannot form a syllable, the combination word The compound words that describe the inability to form a syllable are deleted from the plurality of compound words. Optionally, the second determining module 44 is configured to perform the following operations for each of the combined words: from the initial pronunciation dictionary, obtain the initial phonemes corresponding to the words constituting the combined word; The words are combined according to the arrangement order of the combined words to obtain a phoneme sequence corresponding to the combined word, so as to generate a correspondence between the combined word and the phoneme sequence. Optionally, the apparatus 40 further includes: a dictionary generation module, configured to add the generated mapping relationship between the combined word and the phoneme sequence to the initial pronunciation dictionary, so as to generate a target pronunciation dictionary. Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be described in detail here. 5, which shows a schematic structural diagram of an electronic device 600 suitable for implementing an embodiment of the present disclosure. Terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals (eg, Mobile terminals such as car navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in FIG. 5 is only an example, and should not impose any limitations on the function and scope of use of the embodiments of the present disclosure. As shown in FIG. 5, the electronic device 600 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 601, which may be loaded into random access according to a program stored in a read only memory (ROM) 602 or from a storage device 608 A program in the memory (RAM) 603 executes various appropriate actions and processes. In the RAM 603, various programs and data necessary for the operation of the electronic device 600 are also stored. The processing device 601 , the ROM 602 and the RAM 603 are connected to each other through a bus 604 . An input/output (I/O) interface 605 is also connected to bus 604 . Typically, the following devices can be connected to the I/O interface 605: Input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration The output device 607 of the device, etc.; the storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and the communication device 609. Communication means 609 may allow electronic device 600 to communicate wirelessly or by wire with other devices to exchange data. While FIG. 5 shows electronic device 600 having various means, it should be understood that not all of the illustrated means are required to be implemented or available. More or fewer devices may alternatively be implemented or provided. In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 609 , or from the storage device 608 , or from the ROM 602 . When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed. It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device . Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing. In some embodiments, the server can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can communicate with digital data in any form or medium (eg, , communication network) interconnection. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), and any currently known or future developed networks. The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or may exist alone without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the electronic device, the electronic device causes the electronic device to: From the words contained in the initial pronunciation dictionary, obtain words that match the target part of speech set; for each target part of speech, determine at least one keyword corresponding to the target part of speech from a set of words that match the target part of speech; combine the keywords according to a preset word combination mode to obtain a plurality of combined words, wherein the preset word combination mode includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; determining the phoneme sequence corresponding to each combined word to generate a combination The mapping relationship between words and phoneme sequences. Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages such as Java, Smalltalk, C++, and This includes conventional procedural programming languages such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through the Internet connect). The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of code that contains one or more logic functions for implementing the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block in the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented with dedicated hardware-based systems that perform the specified functions or operations , or can be implemented using a combination of dedicated hardware and computer instructions. The modules involved in the embodiments of the present disclosure may be implemented in software or hardware. Wherein, the name of the module does not constitute a limitation of the module itself under certain circumstances, for example, the first acquisition module can also be described as "from the words contained in the initial pronunciation dictionary, acquire words that match the target part of speech. A collection of modules". The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs) Application Specific Standard Products (ASSPs) System on Chips (SOCs) Complex Programmable Logic Devices ( CPLD) and so on. 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 connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. According to one or more embodiments of the present disclosure, a method for generating data is provided. The method includes: obtaining a word set consistent with a target part-of-speech from words contained in an initial pronunciation dictionary; for each target part-of-speech , determine at least one keyword corresponding to the target part-of-speech from the set of words that match the target part-of-speech; combine the keywords according to a preset word combination mode to obtain a plurality of combined words, wherein , the preset word combination method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; determining the phoneme sequence corresponding to each combined word to generate a mapping between the combined word and the phoneme sequence relation. According to one or more embodiments of the present disclosure, a data generation method is provided, wherein determining at least one keyword corresponding to the target part-of-speech from a set of words that match the target part-of-speech includes: For each word in the set of words that is consistent with the target part of speech, determine the word frequency of the word in the target corpus; Determine the word corresponding to the largest top N word frequencies as the keyword corresponding to the target part of speech, wherein , where N is a positive integer. According to one or more embodiments of the present disclosure, a data generation method is provided, wherein the keywords are combined according to a preset word combination mode to obtain a plurality of combined words, including at least one of the following : combining a first preset number of keywords belonging to different target parts of speech to obtain a combined word; combining a second preset number of keywords belonging to the same target part of speech to obtain a combined word. According to one or more embodiments of the present disclosure, a data generation method is provided, the method further comprising: Obtaining at least one of a word prefix or a word suffix; combining the keywords according to a preset word combination method to obtain a plurality of combined words, including at least one of the following: combining the word prefix with The keywords are combined in a front-to-back order to obtain a combined word; and the keyword and the word suffix are combined in a front-to-back order to obtain a combined word. According to one or more embodiments of the present disclosure, a data generation method is provided. After the step of combining the keywords according to a preset word combination mode to obtain a plurality of combined words, the method The method also includes: if there is a compound word that cannot form a syllable, deleting the compound word that cannot form a syllable from the plurality of compound words. According to one or more embodiments of the present disclosure, a data generation method is provided. The determining the phoneme sequence corresponding to each combined word to generate a mapping relationship between the combined word and the phoneme sequence includes: for each of the Combining words, perform the following operations: from the initial pronunciation dictionary, obtain the initial phonemes corresponding to each word that constitutes the combined word; combine the initial phonemes according to the arrangement order of the words in the combined word, and obtain the corresponding initial phonemes. The phoneme sequence corresponding to the combination word is described to generate the correspondence between the combination word and the phoneme sequence. According to one or more embodiments of the present disclosure, a data generation method is provided, the method further comprising: adding the generated mapping relationship between the combined word and the phoneme sequence to the initial pronunciation dictionary to generate a target pronunciation dictionary. According to one or more embodiments of the present disclosure, a data generation apparatus is provided, the apparatus includes: a first acquisition module, configured to acquire a word set that matches a target part of speech from words included in an initial pronunciation dictionary ; a first determination module for determining at least one keyword corresponding to the target part-of-speech from a set of words consistent with the target part-of-speech for each target part-of-speech; A word combination method, combining the keywords to obtain a plurality of combined words, wherein the preset word combination method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; The second determination module is used to determine the phoneme sequence corresponding to each combined word, so as to generate the mapping relationship between the combined word and the phoneme sequence. According to one or more embodiments of the present disclosure, there is provided a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processing apparatus, implements the steps of the data generation method described in any embodiment of the present disclosure. According to one or more embodiments of the present disclosure, an electronic device is provided, including: A storage device, on which a computer program is stored; and a processing device, configured to execute the computer program in the storage device, so as to implement the steps of the data generation method described in any embodiment of the present disclosure. According to one or more embodiments of the present disclosure, there is provided a computer program, comprising: instructions that, when executed by a processor, cause the processor to perform the steps of the data generation method according to any embodiment of the present disclosure . According to one or more embodiments of the present disclosure, there is provided a computer program product comprising instructions that, when executed by a processor, cause the processor to perform the steps of the data generation method described in any embodiment of the present disclosure . The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) with similar functions. Additionally, although operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although the above discussion contains several implementation-specific details, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Although the subject matter has been described in language specific to structural features and/or logical acts of method, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims. Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

Claims

权 利 要 求 Rights request
1、 一种数据生成方法, 包括: 从初始发音字典所包含的单词中, 获取与目标词性相符合的单词集合; 针对每一种目标词性,从与所述目标词性相符合的单词集合中确定出与所述目标词性 对应的至少一个关键词; 按照预设的单词组合方式, 对所述关键词进行组合, 获得多个组合词, 其中, 预设的 单词组合方式包括将属于 同一目标词性的关键词进行组合以及将属于不同目标词性的关 键词进行组合; 确定各组合词对应的音素序列, 以生成组合词与音素序列之间的映射关系。 1. A data generation method, comprising: from words contained in an initial pronunciation dictionary, obtaining a set of words that is consistent with a target part of speech; for each target part of speech, determining from a set of words that are consistent with the target part of speech At least one keyword corresponding to the target part of speech is obtained; according to a preset word combination mode, the keywords are combined to obtain a plurality of combined words, wherein the preset word combination mode includes combining the words belonging to the same target part of speech The keywords are combined and the keywords belonging to different target parts of speech are combined; the phoneme sequence corresponding to each combined word is determined to generate a mapping relationship between the combined word and the phoneme sequence.
2、 根据权利要求 1所述的数据生成方法, 其中, 所述从与所述目标词性相符合的单 词集合中确定出与所述目标词性对应的至少一个关键词, 包括: 针对与所述目标词性相符合的单词集合中的每一单词,确定所述单词在目标语料库中 的词频; 将最大的前 N个词频对应的单词确定为与所述目标词性对应的关键词, 其中, N为 正整数。 2. The data generation method according to claim 1, wherein the determining at least one keyword corresponding to the target part-of-speech from the set of words that match the target part-of-speech comprises: Determine the word frequency of the word in the target corpus for each word in the set of words that match the part of speech; Determine the word corresponding to the largest top N word frequencies as the keyword corresponding to the target part of speech, where N is positive Integer.
3、 根据权利要求 1所述的数据生成方法, 其中, 所述按照预设的单词组合方式, 对 所述关键词进行组合, 获得多个组合词, 包括以下中的至少一者: 将属于不同目标词性的第一预设数量的关键词进行组合, 获得组合词; 将属于相同目标词性的第二预设数量的关键词进行组合, 获得组合词。 3. The data generation method according to claim 1, wherein the combination of the keywords according to a preset word combination mode to obtain a plurality of combined words, including at least one of the following: will belong to different A first preset number of keywords of the target part of speech are combined to obtain a combined word; and a second preset number of keywords belonging to the same target part of speech are combined to obtain a combined word.
4、 根据权利要求 1所述的数据生成方法, 还包括: 获取词前缀或词后缀中的至少一者; 所述按照预设的单词组合方式, 对所述关键词进行组合, 获得多个组合词, 包括以下 中的至少一者: 将所述词前缀与关键词按照由前到后的顺序进行组合, 以获得组合词; 将关键词与所述词后缀按照由前到后的顺序进行组合, 以获得组合词。 4. The data generation method according to claim 1, further comprising: obtaining at least one of a word prefix or a word suffix; and combining the keywords according to a preset word combination to obtain multiple combinations A word, including at least one of the following: combining the word prefix and the keyword in a front-to-back order to obtain a combined word; combining the keyword and the word suffix in a front-to-back order , to get compound words.
5、 根据权利要求 1所述的数据生成方法, 其中, 在所述按照预设的单词组合方式, 对所述关键词进行组合, 获得多个组合词的步骤之后, 所述方法还包括: 若存在无法构成音节的组合词,将所述无法构成音节的组合词从所述多个组合词中删 除。 5. The data generation method according to claim 1, wherein, after the step of combining the keywords according to a preset word combination mode to obtain a plurality of combined words, the method further comprises: If there is a compound word that cannot form a syllable, the compound word that cannot form a syllable is deleted from the plurality of compound words.
6、根据权利要求 1所述的数据生成方法,其中,所述确定各组合词对应的音素序列, 以生成组合词与音素序列之间的映射关系, 包括: 针对每一所述组合词, 执行如下操作: 从所述初始发音字典中, 获取构成所述组合词的各单词对应的初始音素; 将初始音素按照各单词在所述组合词中的排列顺序进行组合,获得与所述组合词对应 的音素序列, 以生成所述组合词与音素序列之间的对应关系。 6. The data generation method according to claim 1, wherein the determining the phoneme sequence corresponding to each combined word to generate a mapping relationship between the combined word and the phoneme sequence comprises: for each of the combined words, executing The following operations are performed: from the initial pronunciation dictionary, obtain the initial phonemes corresponding to the words constituting the combined word; combine the initial phonemes according to the arrangement order of the words in the combined word, and obtain the corresponding initial phonemes of the combined word to generate the correspondence between the combined word and the phoneme sequence.
7、 根据权利要求 1所述的数据生成方法, 还包括: 将生成的组合词与音素序列之间的映射关系添加至所述初始发音字典,以生成目标发 音字典。 7. The data generation method according to claim 1, further comprising: adding the generated mapping relationship between the combined word and the phoneme sequence to the initial pronunciation dictionary to generate a target pronunciation dictionary.
8、 一种数据生成装置, 包括: 第一获取模块, 用于从初始发音字典所包含的单词中, 获取与目标词性相符合的单词 集合; 第一确定模块, 用于针对每一种目标词性, 从与所述目标词性相符合的单词集合中确 定出与所述目标词性对应的至少一个关键词; 组合模块,用于按照预设的单词组合方式,对所述关键词进行组合,获得多个组合词, 其中, 预设的单词组合方式包括将属于同一目标词性的关键词进行组合以及将属于不同目 标词性的关键词进行组合; 第二确定模块, 用于确定各组合词对应的音素序列, 以生成组合词与音素序列之间的 映射关系。 8. A data generation device, comprising: a first acquisition module for acquiring a set of words that is consistent with a target part of speech from words contained in an initial pronunciation dictionary; a first determination module for each target part of speech , determine at least one keyword corresponding to the target part-of-speech from the set of words that are consistent with the target part-of-speech; a combination module, configured to combine the keywords according to a preset word combination mode to obtain multiple a combination word, wherein the preset word combination method includes combining keywords belonging to the same target part of speech and combining keywords belonging to different target parts of speech; the second determination module is used to determine the phoneme sequence corresponding to each combination word , to generate the mapping relationship between compound words and phoneme sequences.
9、 一种计算机可读介质, 其上存储有计算机程序, 该计算机程序被处理装置执行时 实现权利要求 1-7中任一项所述数据生成方法的步骤。 9. A computer-readable medium on which a computer program is stored, and when the computer program is executed by a processing device, implements the steps of the data generation method according to any one of claims 1-7.
10、 一种电子设备, 包括: 存储装置, 其上存储有计算机程序; 处理装置, 用于执行所述存储装置中的所述计算机程序, 以实现权利要求 1-7中任一 项所述数据生成方法的步骤。 10. An electronic device, comprising: a storage device on which a computer program is stored; a processing device for executing the computer program in the storage device to realize the data in any one of claims 1-7 Generate the steps of the method.
11、 一种计算机程序, 包括 指令,所述指令当由处理器执行时使所述处理器执行根据权利要求 1-7中任一项所述 数据生成方法的步骤。 11. A computer program comprising instructions which, when executed by a processor, cause the processor to perform the steps of the data generation method according to any one of claims 1-7.
12、一种计算机程序产品, 包括指令, 所述指令当由处理器执行时使所述处理器执行 根据权利要求 1-7中任一项所述数据生成方法的步骤。 12. A computer program product comprising instructions which, when executed by a processor, cause the processor to perform the steps of the data generation method according to any of claims 1-7.
PCT/CN2021/128308 2020-11-26 2021-11-03 Data generation method and apparatus, readable medium and electronic device WO2022111241A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011355899.0 2020-11-26
CN202011355899.0A CN112487797B (en) 2020-11-26 2020-11-26 Data generation method and device, readable medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2022111241A1 true WO2022111241A1 (en) 2022-06-02

Family

ID=74935965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/128308 WO2022111241A1 (en) 2020-11-26 2021-11-03 Data generation method and apparatus, readable medium and electronic device

Country Status (2)

Country Link
CN (1) CN112487797B (en)
WO (1) WO2022111241A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826991A (en) * 2023-02-14 2023-03-21 江西曼荼罗软件有限公司 Software script generation method, system, computer and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487797B (en) * 2020-11-26 2024-04-05 北京有竹居网络技术有限公司 Data generation method and device, readable medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6236965B1 (en) * 1998-11-11 2001-05-22 Electronic Telecommunications Research Institute Method for automatically generating pronunciation dictionary in speech recognition system
US20030049588A1 (en) * 2001-07-26 2003-03-13 International Business Machines Corporation Generating homophonic neologisms
US20110093259A1 (en) * 2008-06-27 2011-04-21 Koninklijke Philips Electronics N.V. Method and device for generating vocabulary entry from acoustic data
US9292489B1 (en) * 2013-01-16 2016-03-22 Google Inc. Sub-lexical language models with word level pronunciation lexicons
CN111951779A (en) * 2020-08-19 2020-11-17 广州华多网络科技有限公司 Front-end processing method for speech synthesis and related equipment
CN112487797A (en) * 2020-11-26 2021-03-12 北京有竹居网络技术有限公司 Data generation method and device, readable medium and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5651095A (en) * 1993-10-04 1997-07-22 British Telecommunications Public Limited Company Speech synthesis using word parser with knowledge base having dictionary of morphemes with binding properties and combining rules to identify input word class
US5832428A (en) * 1995-10-04 1998-11-03 Apple Computer, Inc. Search engine for phrase recognition based on prefix/body/suffix architecture
US6208968B1 (en) * 1998-12-16 2001-03-27 Compaq Computer Corporation Computer method and apparatus for text-to-speech synthesizer dictionary reduction
DE10042944C2 (en) * 2000-08-31 2003-03-13 Siemens Ag Grapheme-phoneme conversion

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6236965B1 (en) * 1998-11-11 2001-05-22 Electronic Telecommunications Research Institute Method for automatically generating pronunciation dictionary in speech recognition system
US20030049588A1 (en) * 2001-07-26 2003-03-13 International Business Machines Corporation Generating homophonic neologisms
US20110093259A1 (en) * 2008-06-27 2011-04-21 Koninklijke Philips Electronics N.V. Method and device for generating vocabulary entry from acoustic data
US9292489B1 (en) * 2013-01-16 2016-03-22 Google Inc. Sub-lexical language models with word level pronunciation lexicons
CN111951779A (en) * 2020-08-19 2020-11-17 广州华多网络科技有限公司 Front-end processing method for speech synthesis and related equipment
CN112487797A (en) * 2020-11-26 2021-03-12 北京有竹居网络技术有限公司 Data generation method and device, readable medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115826991A (en) * 2023-02-14 2023-03-21 江西曼荼罗软件有限公司 Software script generation method, system, computer and readable storage medium
CN115826991B (en) * 2023-02-14 2023-05-09 江西曼荼罗软件有限公司 Software script generation method, system, computer and readable storage medium

Also Published As

Publication number Publication date
CN112487797A (en) 2021-03-12
CN112487797B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
WO2022105545A1 (en) Speech synthesis method and apparatus, and readable medium and electronic device
WO2022111241A1 (en) Data generation method and apparatus, readable medium and electronic device
JP5042799B2 (en) Voice chat system, information processing apparatus and program
WO2022143058A1 (en) Voice recognition method and apparatus, storage medium, and electronic device
WO2022151931A1 (en) Speech synthesis method and apparatus, synthesis model training method and apparatus, medium, and device
US20080256033A1 (en) Method and apparatus for distributed voice searching
WO2021190129A1 (en) Method and device for page processing, electronic device, and computer-readable storage medium
WO2022105775A1 (en) Search processing method and apparatus, model training method and apparatus, and medium and device
WO2022156464A1 (en) Speech synthesis method and apparatus, readable medium, and electronic device
WO2022111242A1 (en) Melody generation method, apparatus, readable medium, and electronic device
WO2022095754A1 (en) Speech synthesis method and apparatus, storage medium, and electronic device
WO2022127620A1 (en) Voice wake-up method and apparatus, electronic device, and storage medium
CN111597825B (en) Voice translation method and device, readable medium and electronic equipment
WO2022156413A1 (en) Speech style migration method and apparatus, readable medium and electronic device
CN111883117B (en) Voice wake-up method and device
WO2022037419A1 (en) Audio content recognition method and apparatus, and device and computer-readable medium
WO2024099342A1 (en) Translation method and apparatus, readable medium, and electronic device
WO2022116821A1 (en) Translation method and apparatus employing multi-language machine translation model, device, and medium
WO2022095942A1 (en) Information display method and apparatus, electronic device, and computer readable storage medium
WO2023088280A1 (en) Intention recognition method and apparatus, readable medium, and electronic device
WO2022108527A1 (en) Model processing method, system and apparatus, medium, and electronic device
CN112562633A (en) Singing synthesis method and device, electronic equipment and storage medium
WO2022116819A1 (en) Model training method and apparatus, machine translation method and apparatus, and device and storage medium
WO2022156730A1 (en) Text processing method and apparatus, device, and medium
CN112257459B (en) Language translation model training method, translation method, device and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21896742

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21896742

Country of ref document: EP

Kind code of ref document: A1