Rhythm prediction method, device, equipment and storage medium
By obtaining and utilizing domain feature vectors and pre-trained models of text to determine the prosodic boundary markers of the text, the problem of inaccurate prosodic prediction in the existing technology is solved, fast and accurate prosodic prediction of texts in different fields is achieved, and speech is improved. The naturalness and fluidity of synthesis.
Patent Information
- Application Number
- CN202011323039.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-23
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2040-11-23
AI Technical Summary
The existing text prosody prediction technology is not mature enough, resulting in inaccurate prosody prediction results and affecting the naturalness and fluency of speech synthesis.
By obtaining the domain feature vector of the target text, the pre-trained classification model and conversion model are used to determine the domain identifier and feature vector, and the pre-trained prosody prediction model is combined to determine the prosodic boundary identifier, thereby outputting accurate prosody.
It achieves fast and accurate prosody prediction for texts in different fields, improves the speed and accuracy of prosody prediction, and improves the naturalness and fluency of speech synthesis.
Smart Images

Figure CN112309368B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to speech synthesis, natural language processing, and computer technology, and in particular to a prosody prediction method, apparatus, device, and storage medium. Background Art
[0002] Speech synthesis is a technology that produces artificial speech through mechanical and electronic methods. Its purpose is to enable computers to convert text information into speech and read it aloud, which is equivalent to giving computers the ability to speak like humans.
[0003] Prosody plays a vital role in speech signal processing. Prosody is used to indicate where to pause when reading a text. Obviously, in the process of speech synthesis, if the computer can pause according to natural rhythm, it will help improve the naturalness and fluency of the speech synthesis results.
[0004] However, the current prosody prediction technology for text is not mature, which makes the prosody prediction results inaccurate. Summary of the invention
[0005] The present disclosure provides a prosody prediction method, apparatus, device and storage medium.
[0006] According to one aspect of the present disclosure, a prosody prediction method is provided, comprising: acquiring a target text; determining a domain feature vector of the target text; determining a prosody boundary marker in the target text based on the target text and the domain feature vector; determining the prosody of the target text based on the prosody boundary marker, and outputting it.
[0007] In some embodiments, determining a domain feature vector of a target text includes: determining a domain identifier corresponding to the target text based on the target text and a pre-trained classification model, wherein the pre-trained classification model is used to characterize the correspondence between the text and the domain identifier; determining a domain feature vector corresponding to the target text based on the target text, the domain identifier, and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector.
[0008] In some embodiments, determining a prosodic boundary marker in a target text includes: determining the prosodic boundary marker in the target text based on the target text, a domain feature vector, and a pre-trained prosodic prediction model, wherein the pre-trained prosodic prediction model is used to characterize the correspondence between the text based on the domain feature vector and the prosodic boundary marker.
[0009] According to another aspect of the present disclosure, a method for training a prosody prediction model is provided, comprising: obtaining an initial model, wherein the initial model includes an initial prosody prediction model; obtaining a training sample set, wherein the training sample set includes texts from different fields, domain feature vectors corresponding to each annotated text, and prosody boundary markers corresponding to each annotated text; using the texts from different fields and the domain feature vectors corresponding to each annotated text as inputs to the initial model, using the prosody boundary markers corresponding to the input texts from different fields and the domain feature vectors corresponding to each annotated text as expected outputs, and determining the initial prosody prediction model of the trained initial model as the prosody prediction model.
[0010] In some embodiments, obtaining a training sample set includes: obtaining texts from different fields and domain features of the texts in each field; determining a domain feature vector corresponding to each domain feature based on the correspondence between each domain feature and preset features and vectors; obtaining a first prosodic boundary marker corresponding to the text corresponding to each domain feature vector; and combining texts from different fields, domain feature vectors corresponding to texts from different fields, and first prosodic boundary markers into training samples.
[0011] In some embodiments, obtaining a training sample set includes: obtaining texts from different fields and common features of the texts in each field; determining common feature vectors corresponding to each common feature based on the correspondence between each common feature and preset features and vectors; obtaining second prosodic boundary markers corresponding to the texts corresponding to each common feature vector; and combining texts from different fields, each common feature vector corresponding to the texts in different fields, and each second prosodic boundary marker into a training sample.
[0012] According to another aspect of the present disclosure, a prosody prediction device is provided, comprising: an acquisition unit configured to acquire a target text; a domain feature vector determination unit configured to determine the domain feature vector of the target text; a prosody boundary marker determination unit configured to determine the prosody boundary marker in the target text based on the target text and the domain feature vector; and an output unit configured to determine the prosody of the target text based on the prosody boundary marker and output it.
[0013] In some embodiments, the domain feature vector determination unit is further configured to: determine the domain identifier corresponding to the target text based on the target text and a pre-trained classification model, wherein the pre-trained classification model is used to characterize the correspondence between the text and the domain identifier; determine the domain feature vector corresponding to the target text based on the target text, the domain identifier and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector.
[0014] In some embodiments, the prosodic boundary marker determination unit is further configured to: determine the prosodic boundary marker in the target text based on the target text, the domain feature vector and a pre-trained prosodic prediction model, wherein the pre-trained prosodic prediction model is used to characterize the correspondence between the text based on the domain feature vector and the prosodic boundary marker.
[0015] According to one aspect of the present disclosure, there is provided an apparatus for training a prosody prediction model, comprising: a model acquisition unit, configured to acquire an initial model, wherein the initial model comprises an initial prosody prediction model; a sample acquisition unit, configured to acquire a training sample set, wherein the training sample set comprises texts in different fields, domain feature vectors corresponding to each annotated text, and prosody boundary markers corresponding to each annotated text; a training unit, configured to use the texts in different fields and the domain feature vectors corresponding to each annotated text as inputs of the initial model, use the prosody boundary markers corresponding to the input texts in different fields and the domain feature vectors corresponding to each annotated text as expected outputs, and determine the initial prosody prediction model of the trained initial model as the prosody prediction model.
[0016] In some embodiments, the sample acquisition unit is further configured to: acquire texts in different fields and domain features of the texts in each field; determine the domain feature vector corresponding to each domain feature according to the correspondence between each domain feature and preset features and vectors; acquire the first prosodic boundary marker corresponding to the text corresponding to each domain feature vector; and combine the texts in different fields, the domain feature vectors corresponding to the texts in different fields, and the first prosodic boundary markers into training samples.
[0017] In some embodiments, the sample acquisition unit is further configured to: acquire texts from different fields and common features of texts in each field; determine common feature vectors corresponding to each common feature based on the correspondence between each common feature and preset features and vectors; acquire the second prosodic boundary marker corresponding to the text corresponding to each common feature vector; and combine texts from different fields, the common feature vectors corresponding to texts in different fields, and the second prosodic boundary markers into training samples.
[0018] According to another aspect of the present disclosure, there is provided an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the rhythm prediction method as described above and execute the method for training a rhythm prediction model as described above.
[0019] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to enable a computer to execute the prosody prediction method and the method for training a prosody prediction model as described above.
[0020] According to the technology of the present application, the rhythm of the target text corresponding to the field indicated by the field feature vector can be determined based on the field feature vector of the target text, thereby realizing fast and accurate rhythm prediction of texts in different fields, thereby improving the speed and accuracy of rhythm prediction.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present application.
[0023] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
[0024] Figure 2 is a flow chart of an embodiment of a rhythm prediction method according to the present application;
[0025] Figure 3 is a schematic diagram of an application scenario of the rhythm prediction method according to the present application;
[0026] Figure 4 is a flowchart of another embodiment of the rhythm prediction method according to the present application;
[0027] Figure 5 is a flowchart of an embodiment of a method for training a prosody prediction model according to the present application;
[0028] Figure 6 is a schematic diagram of an application scenario of the method for training a prosody prediction model according to the present application;
[0029] Figure 7 is a flowchart of another embodiment of a method for training a prosody prediction model according to the present application;
[0030] Figure 8 is a structural schematic diagram of an embodiment of a rhythm prediction device according to the present application;
[0031] Fig. 9 is a structural schematic diagram of an embodiment of a device for training a prosody prediction model according to the present application;
[0032] Fig.10 It is a block diagram of an electronic device used to implement the embodiment of the present application. DETAILED DESCRIPTION
[0033] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0034] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0035] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the prosody prediction method or prosody prediction apparatus of the present application can be applied.
[0036] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0037] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications, such as rhythm prediction applications, can be installed on the terminal devices 101, 102, 103.
[0038] The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices, including but not limited to smart phones, tablet computers, car computers, laptop computers, desktop computers, etc. When the terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. They may be implemented as multiple software or software modules, or as a single software or software module. No specific limitation is made here.
[0039] The server 105 may be a server that provides various services, such as a background server that performs rhythm prediction on the target text collected by the terminal devices 101, 102, and 103. The background server may receive the target text submitted by the user through the terminal devices 101, 102, and 103, and determine the domain feature vector corresponding to the target text, and then determine the rhythm boundary mark of the target text according to the domain feature vector and the target text, and determine the rhythm of the target text according to the determined rhythm boundary mark, and finally output the rhythm.
[0040] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules, or it can be implemented as a single software or software module. No specific limitation is made here.
[0041] It should be noted that the prosody prediction method provided in the embodiment of the present application is generally executed by the server 105. Accordingly, the prosody prediction device is generally disposed in the server 105.
[0042] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0043] Continue to refer Figure 2 , shows a process 200 of an embodiment of a prosody prediction method according to the present application. The prosody prediction method of this embodiment includes the following steps:
[0044] Step 201, obtaining the target text.
[0045] In this embodiment, the execution subject of the rhythm prediction method (for example Figure 1 The server 105 in the example can obtain the target text by wired connection or wireless connection. Specifically, the target text can be one or more of ancient Chinese, modern Chinese, poetry, and novels, and this application does not make specific restrictions on this.
[0046] Step 202: determine the domain feature vector of the target text.
[0047] After acquiring the target text, the execution subject can determine the domain feature vector of the target text. Specifically, the execution subject can extract the domain feature vector of the target text through a pre-trained text type classifier, such as a pre-trained classifier based on the Rocchio algorithm. The domain feature vector can be obtained by domain feature calculation. Domain features can be feature words, for example, words that reflect domain types such as "classical text" and "poetry" contained in the target text or determined according to the context of the target text. Then the domain feature vector can be the feature words determined above, such as the word vectors corresponding to the words "classical text" and "poetry". This application does not specifically limit the domain feature vector to be a word vector, a character vector or a phrase vector. The specific method of converting the domain feature vector can be achieved through a pre-trained classifier based on the Rocchio algorithm, which will not be repeated here.
[0048] Step 203: Determine the prosodic boundary marker in the target text according to the target text and the domain feature vector.
[0049] In this embodiment, after obtaining the domain feature vector, the execution subject can determine the prosodic boundary marker in the target text according to the target text and the domain feature vector. Specifically, the execution subject can determine the prosodic boundary marker in the target text according to the target text and the domain feature vector and the preset correspondence between the target text and the domain feature vector and the prosodic boundary marker.
[0050] Step 204: determine the rhythm of the target text according to the rhythm boundary marker and output it.
[0051] After determining the rhythmic boundary marker, the execution subject can determine the rhythm of the target text according to the rhythmic boundary marker and output it. For example, "the moon shines brightly in front of the bed#1" of text 1 and "there is a little white boat#4 in the blue#2 sky#1 Milky Way#2" of text 2.
[0052] Continue to refer Figure 3 , which shows a schematic diagram of an application scenario of the rhythm prediction method according to the present application. Figure 3 In the application scenario, the server 303 obtains the target text 301 through the network 302. The server 303 determines the domain feature vector 304 of the target text 301. The server 303 determines the prosody boundary marker 305 in the target text 301 according to the target text 301 and the domain feature vector 304. The server 303 determines the prosody 306 of the target text 301 according to the prosody boundary marker 305 and outputs it.
[0053] This embodiment can determine the rhythm of the target text corresponding to the field indicated by the field feature vector according to the field feature vector of the target text, thereby realizing fast and accurate rhythm prediction for texts in different fields, thereby improving the speed and accuracy of rhythm prediction.
[0054] Continue to refer Figure 4 , which shows a process 400 of another embodiment of the rhythm prediction method according to the present application. Figure 4 As shown, the rhythm prediction method of this embodiment may include the following steps:
[0055] Step 401, obtaining the target text.
[0056] Step 402: determine the domain feature vector of the target text.
[0057] The principles of step 401 and step 402 are similar to those of step 201 and step 202, and are not described again here.
[0058] Specifically, step 402 can be implemented through steps 4021 and 4022:
[0059] Step 4021, determining the domain identifier corresponding to the target text based on the target text and the pre-trained classification model.
[0060] In this embodiment, the pre-trained classification model is used to characterize the correspondence between text and domain identifier. After obtaining the target text, the execution subject may also first determine the domain identifier corresponding to the target text based on the target text and the pre-trained classification model. Specifically, the execution subject may input the target text into the pre-trained classification model to determine the domain identifier corresponding to the target text. When training the classification model, the training sample set may be texts in various fields, and domain identifiers corresponding to the texts in various fields. The classification model is trained based on the training sample set to obtain a pre-trained classification model that has the ability to accurately match text with the domain identifier corresponding to the text.
[0061] Step 4022, determining the domain feature vector corresponding to the target text according to the target text, the domain identifier and the pre-trained conversion model.
[0062] In this embodiment, the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector. After obtaining the domain identifier, the execution subject can determine the domain feature vector corresponding to the target text according to the target text, the domain identifier and the pre-trained conversion model. Specifically, the execution subject can input the target text and the domain identifier corresponding to each target text into the pre-trained conversion model, and output the domain feature vector corresponding to each text. When training the conversion model, the training sample set can use the target text and the domain identifier corresponding to each target text. The conversion model can first determine the domain of the target text according to the domain identifier corresponding to each target text, and then according to the words or characters or phrases that can reflect the domain in the target text and the corresponding relationship between the preset words, characters or phrases and vectors in the pre-trained conversion model, the words or characters or phrases that can reflect the domain in the target text are converted into domain feature vectors and output. Of course, it can be understood that the execution subject can also directly generate and output the domain feature vectors of each text corresponding to each domain identifier according to the corresponding relationship between the preset identifiers and vectors in the pre-trained conversion model. The present application does not specifically limit the generation method of the domain feature vector.
[0063] This embodiment determines the domain identifier corresponding to the text based on the text, and then determines the domain feature vector based on the text and the domain identifier, thereby laying a foundation for domain classification for rhythm prediction of the text, facilitating the rhythm prediction model to accurately determine the rhythm of the text in the field corresponding to the domain feature vector, and improving the accuracy of rhythm prediction.
[0064] Step 403: Determine the prosodic boundary marker in the target text according to the target text and the domain feature vector.
[0065] The principle of step 403 is similar to that of step 203 and will not be described again here.
[0066] Specifically, the “determining the prosodic boundary markers in the target text” in step 403 can also be implemented by step 4031:
[0067] Step 4031, determining the prosodic boundary markers in the target text according to the target text, the domain feature vector and the pre-trained prosodic prediction model.
[0068] In this embodiment, the pre-trained rhythm prediction model is used to characterize the correspondence between the text based on the domain feature vector and the rhythm boundary mark. Specifically, the execution subject can input the domain feature vectors corresponding to the target text and the texts in each domain included in the target text into the pre-trained rhythm prediction model. The rhythm prediction model first determines the texts corresponding to the domain feature vectors according to the domain feature vectors, and then outputs the rhythm boundary marks of the texts corresponding to the domain feature vectors according to the correspondence between the texts corresponding to the pre-trained domain feature vectors and the rhythm boundary marks. For example, the text 1 "Bright moonlight in front of the bed" and the text 2 "There is a little white boat in the blue sky and the Milky Way" contained in the target text, as well as the domain feature vector "ancient poetry" corresponding to the text 1 and the domain feature vector "modern song" corresponding to the text 2 are input into the pre-trained rhythm prediction model. The rhythm prediction model determines that the rhythm boundary marks of the pauses and breaths corresponding to the pre-trained "ancient poetry" should correspond to the text 1 according to the domain feature vector "ancient poetry", and accordingly determines and outputs the rhythm boundary mark #1 of the text 1. ; The rhythm prediction model determines that text 2 should correspond to the pre-trained rhythmic boundary markers of pauses and breathing corresponding to "modern songs" based on the domain feature vector "modern songs", and accordingly determines and outputs the rhythmic boundary markers #2, #1, and #4 of text 2, where #1 represents the rhythmic word boundary, #2 represents the rhythmic phrase boundary, #3 represents the intonation phrase boundary, and #4 represents the sentence boundary. The boundaries not only represent pauses, but also represent the fundamental frequency, breathing, etc. involved in speech synthesis.
[0069] Step 404: determine the rhythm of the target text according to the rhythm boundary marker and output it.
[0070] The principle of step 404 is similar to that of step 204 and will not be described in detail here.
[0071] Continue to refer Figure 5 , shows a process 500 of an embodiment of a method for training a prosody prediction model according to the present application. The method for training a prosody prediction model of this embodiment includes the following steps:
[0072] Step 501, obtaining an initial model.
[0073] In this embodiment, the initial model includes an initial prosody prediction model. Specifically, the execution subject may obtain the initial model, and the initial model may include the initial prosody prediction model. The initial prosody prediction model may be a prosody prediction model after the initial model is trained.
[0074] Step 502: Obtain a training sample set.
[0075] In this embodiment, after obtaining the initial model, the execution subject can obtain a training sample set. Specifically, the training sample set may include texts in different fields, field feature vectors corresponding to each annotated text, and rhythmic boundary markers corresponding to each annotated text. Texts in different fields may specifically include: novel texts, poetry texts, ancient texts, modern song texts, etc., and this application does not make specific restrictions on this. The field feature vectors corresponding to each annotated text may be the word, word or phrase vectors corresponding to the words, words or phrases in each text in different fields that can represent the fields of each text, or the field feature vectors corresponding to the field words determined according to the context of each text, and this application does not make specific restrictions on this. The rhythmic boundary marker, specifically, may be #1, #2, #3, #4, etc., wherein #1 represents the rhythmic word boundary, #2 represents the rhythmic phrase boundary, #3 represents the intonation phrase boundary, and #4 represents the sentence boundary. The boundary not only represents the pause, but also represents the fundamental frequency, breathing, etc. involved in speech synthesis. As an example, obtain text 1 "Bright moonlight before the bed" and text 2 "There is a small white boat in the blue sky and the Milky Way" from different fields, and annotate the texts corresponding to the feature vectors of each field. For example, annotate text 1 corresponding to the field feature vector corresponding to "ancient poetry" and annotate text 2 corresponding to the field feature vector corresponding to "modern songs", and the rhythmic boundary markers corresponding to the annotated texts can be #1 for annotated text 1 and #1, #2, and #4 for annotated text 2.
[0076] Step 503, taking the domain feature vectors corresponding to the texts in different fields and the annotated texts as the input of the initial model, taking the prosodic boundary markers corresponding to the domain feature vectors corresponding to the input texts in different fields and the annotated texts as the expected output, and determining the initial prosodic prediction model of the trained initial model as the prosodic prediction model.
[0077] In this embodiment, the execution subject can use a machine learning method to take the texts of different fields of the training samples in the training sample set and the field feature vectors corresponding to the annotated texts as the input of the initial model, and take the prosody boundary identifiers corresponding to the field feature vectors corresponding to the input texts of different fields and the annotated texts as the expected output, and train to obtain the above-mentioned prosody prediction model. The hidden layer of the initial prosody prediction model in the above-mentioned initial model can be used to output the prosody boundary identifier. After multiple training iterations, the final prosody prediction model is obtained.
[0078] Continue to refer Figure 6 , which shows a schematic diagram of an application scenario of the method for training a rhythm prediction model according to the present application. Figure 6In an application scenario, a server (not shown in the figure) obtains an initial model 605, wherein the initial model includes an initial prosody prediction model. The server obtains a training sample set 601, wherein the training sample set 601 includes texts 602 in different fields, domain feature vectors 603 corresponding to each annotated text, and prosody boundary identifiers 604 corresponding to each annotated text. The server uses the texts 602 in different fields and the domain feature vectors 603 corresponding to each annotated text as inputs of the initial model 605, uses the prosody boundary identifiers 604 corresponding to the input texts 602 in different fields and the domain feature vectors 603 corresponding to each annotated text as expected outputs, and determines the initial prosody prediction model of the trained initial model 605 as a prosody prediction model 606.
[0079] This embodiment trains a rhythm prediction model by utilizing texts from different fields, domain feature vectors corresponding to texts from different fields, and training samples of rhythm boundary markers corresponding to texts from different fields, so that the generated rhythm prediction model can quickly and accurately predict the rhythm of texts from different fields, thereby improving the speed and accuracy of rhythm prediction.
[0080] Continue to refer Figure 7 , which shows a process 700 of another embodiment of the method for training a prosody prediction model according to the present application. Figure 7 As shown, the method for training a prosody prediction model in this embodiment may include the following steps:
[0081] Step 701, obtaining an initial model.
[0082] The initial model includes an initial rhythm prediction model.
[0083] Step 702: Obtain a training sample set.
[0084] The training sample set includes texts in different fields, field feature vectors corresponding to each annotated text, and prosodic boundary markers corresponding to each annotated text.
[0085] The principles of step 701 and step 702 are similar to those of step 501 and step 502, and are not described again here.
[0086] Specifically, step 702 can be implemented by steps 7021 to 7024 and steps 7025 to 7028:
[0087] Step 7021, obtaining texts in different fields and the field features of the texts in each field.
[0088] Step 7022: Determine the domain feature vector corresponding to each domain feature according to the correspondence between each domain feature and the preset feature and vector.
[0089] In this embodiment, after obtaining the texts of different fields and the field features of the texts of each field, the execution subject can determine the field feature vectors corresponding to the field features according to the correspondence between the field features and the preset features and vectors. Specifically, the execution subject can determine the field feature vectors corresponding to the field features according to the correspondence between the field features and the features and vectors in the pre-trained conversion model. This application does not specifically limit the generation method of the field feature vectors.
[0090] Step 7023, obtaining the first prosodic boundary marker corresponding to the text corresponding to each domain feature vector.
[0091] After determining the domain feature vectors corresponding to each domain feature, the execution subject can obtain the first prosodic boundary marker corresponding to the text corresponding to each domain feature vector. Specifically, in this embodiment, the domain feature vectors of the domain corresponding to each text are first determined, and based on the domain feature vectors of each domain, the domain feature vectors corresponding to the specific domain features of different domains are determined, and the prosodic boundary markers of the text corresponding to the above-mentioned corresponding domain feature vectors are determined accordingly, and the prosodic boundary markers are used to determine the first prosodic boundary marker corresponding to the text corresponding to the above-mentioned corresponding domain feature vectors. In other words, the first prosodic boundary marker is only a prosodic boundary marker generated for the specific domain features of each domain, and the purpose is to train the prosodic prediction classification of texts in different domains, so that the same prosodic prediction model can quickly obtain the prosodic boundary marker corresponding to the target text according to the domain feature vector of the target text, so that the prosodic prediction of the target text can be accurately performed, which is both simple and accurate.
[0092] Step 7024: Combine texts from different fields, feature vectors of each field corresponding to the texts from different fields, and first prosodic boundary markers into training samples.
[0093] After obtaining the first prosodic boundary identifier, the execution subject may combine texts in different fields, feature vectors of each field corresponding to the texts in different fields, and each first prosodic boundary identifier into a training sample.
[0094] This embodiment trains the prosody prediction classification of texts in different fields so that the same prosody prediction model can quickly obtain the prosody boundary marker corresponding to the target text according to the domain feature vector of the target text, thereby accurately predicting the prosody of the target text, which is both simple and accurate.
[0095] Step 7025, obtaining texts in different fields and common features of texts in each field.
[0096] In this embodiment, in the process of obtaining the training sample set, there may be some fields where the training corpus is relatively sparse and insufficient to meet the needs of prosody prediction model training. Therefore, the common features of each text can be shared by texts in different fields, also called underlying features, which are the underlying semantic features common to each text. For example, the character, word or phrase features corresponding to some adjectives, attributives, adverbials, etc.
[0097] Step 7026, determining the common feature vectors corresponding to the common features according to the corresponding relationship between the common features and the preset features and vectors.
[0098] After obtaining the common features, the execution subject can determine the common feature vectors corresponding to each common feature according to the corresponding relationship between each common feature and the preset features and vectors. Specifically, the present embodiment can also digitize each common feature, that is, convert it into a digital sequence, such as [1, 2, 3]. For example, the digital sequence corresponding to "small" is [1, 3], and the digital sequence corresponding to "white ship" is [2, 2, 3, 4]. Then, each digital sequence is converted into the corresponding common feature vectors (1, 3) and (2, 2, 3, 4). The present application does not specifically limit the method for generating the common feature vectors.
[0099] Step 7027, obtaining the second prosodic boundary marker corresponding to the text corresponding to each common feature vector.
[0100] After obtaining each common feature vector, the execution subject can obtain the second prosodic boundary marker corresponding to each common feature vector. Specifically, the execution subject can determine the second prosodic boundary marker corresponding to the text corresponding to each common feature vector based on each common feature vector and the corresponding relationship between the feature vector and the prosodic boundary marker. The second prosodic boundary marker can be a common feature in each text or a prosodic boundary marker corresponding to the underlying feature of each text. The purpose of obtaining the second prosodic boundary marker is to expand the training data of the field with sparse training data, so that the field with sparse training data can share the common underlying features of other fields, so that the training data of the training prosodic prediction model in each field is richer and more accurate, thereby training a prosodic prediction model that can accurately predict the prosodic nature of the text in each field.
[0101] Step 7028: Combine texts from different fields, common feature vectors corresponding to texts from different fields, and second rhyme boundary markers into training samples.
[0102] After obtaining the second prosodic boundary marker, the execution subject can combine texts from different fields, common feature vectors corresponding to the texts from different fields, and the second prosodic boundary markers into a training sample.
[0103] This embodiment shares common underlying features of other fields when acquiring a training sample set, which can make the training data of the prosody prediction models in each field more abundant and accurate, thereby training a prosody prediction model that can accurately predict the prosody of texts in each field.
[0104] Step 703, taking the domain feature vectors corresponding to the texts in different fields and the annotated texts as the input of the initial model, taking the prosodic boundary markers corresponding to the domain feature vectors corresponding to the input texts in different fields and the annotated texts as the expected output, and determining the initial prosodic prediction model of the trained initial model as the prosodic prediction model.
[0105] The principle of step 703 is similar to that of step 503 and will not be described again here.
[0106] Further references Figure 8 As an implementation of the rhythm prediction method shown in the above figures, the present application provides an embodiment of a rhythm prediction device, which is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0107] like Figure 8 As shown, the prosody prediction device 800 of this embodiment includes: an acquisition unit 801 , a domain feature vector determination unit 802 , a prosody boundary marker determination unit 803 and an output unit 804 .
[0108] The acquisition unit 801 is configured to acquire the target text.
[0109] The domain feature vector determining unit 802 is configured to determine the domain feature vector of the target text.
[0110] The prosodic boundary marker determining unit 803 is configured to determine the prosodic boundary marker in the target text according to the target text and the domain feature vector.
[0111] The output unit 804 is configured to determine the prosody of the target text according to the prosodic boundary marker and output it.
[0112] In some optional implementations of this embodiment, the domain feature vector determination unit 802 is further configured to: determine the domain identifier corresponding to the target text based on the target text and a pre-trained classification model, wherein the pre-trained classification model is used to characterize the correspondence between the text and the domain identifier; determine the domain feature vector corresponding to the target text based on the target text, the domain identifier and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector.
[0113] In some optional implementations of this embodiment, the prosodic boundary marker determination unit 803 is further configured to: determine the prosodic boundary marker in the target text based on the target text, the domain feature vector and the pre-trained prosodic prediction model, wherein the pre-trained prosodic prediction model is used to characterize the correspondence between the text based on the domain feature vector and the prosodic boundary marker.
[0114] It should be understood that the units 801 to 804 described in the prosody prediction device 800 are respectively the same as those described in the reference Figure 2 Therefore, the operations and features described above for the prosody prediction method are also applicable to the apparatus 800 and the units contained therein, and will not be described in detail here.
[0115] Further references Fig. 9 As an implementation of the method for training a prosody prediction model shown in the above figures, the present application provides an embodiment of a device for training a prosody prediction model. Figure 5 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0116] like Fig. 9 As shown, the apparatus 900 for training a prosody prediction model in this embodiment includes: a model acquisition unit 901 , a sample acquisition unit 902 , and a training unit 903 .
[0117] The model acquisition unit 901 is configured to acquire an initial model, wherein the initial model includes an initial prosody prediction model.
[0118] The sample acquisition unit 902 is configured to acquire a training sample set.
[0119] The training sample set includes texts in different fields, field feature vectors corresponding to each annotated text, and prosodic boundary markers corresponding to each annotated text.
[0120] The training unit 903 is configured to use the domain feature vectors corresponding to the texts in different fields and the annotated texts as the input of the initial model, use the prosodic boundary markers corresponding to the domain feature vectors corresponding to the input texts in different fields and the annotated texts as the expected output, and determine the initial prosodic prediction model of the trained initial model as the prosodic prediction model.
[0121] In some optional implementations of the present embodiment, the sample acquisition unit 902 is further configured to: acquire texts of different fields and domain features of the texts of each field; determine the domain feature vector corresponding to each domain feature according to the correspondence between each domain feature and preset features and vectors; acquire the first prosodic boundary marker corresponding to the text corresponding to each domain feature vector; and combine the texts of different fields, the domain feature vectors corresponding to the texts of different fields, and the first prosodic boundary markers into training samples.
[0122] In some optional implementations of the present embodiment, the sample acquisition unit 902 is further configured to: acquire texts in different fields and common features of texts in each field; determine common feature vectors corresponding to each common feature based on the correspondence between each common feature and preset features and vectors; acquire the second prosodic boundary marker corresponding to the text corresponding to each common feature vector; and combine the texts in different fields, the common feature vectors corresponding to the texts in different fields, and the second prosodic boundary markers into a training sample.
[0123] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
[0124] like Fig.10 , is a block diagram of an electronic device suitable for implementing an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0125] like Fig.10As shown, the electronic device includes: one or more processors 1001, memory 1002, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses 1005, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In other embodiments, if necessary, multiple processors and / or multiple buses 1005 can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 1001 is taken as an example.
[0126] The memory 1002 is a non-transitory computer-readable storage medium provided in the present application. The memory stores instructions executable by at least one processor, so that at least one processor executes the method for prosody prediction based on a prosody prediction model provided in the present application or executes a method for training a prosody prediction model. The non-transitory computer-readable storage medium of the present application stores computer instructions, which are used to cause a computer to execute the method for prosody prediction based on a prosody prediction model provided in the present application or execute a method for training a prosody prediction model.
[0127] The memory 1002 is a non-transient computer-readable storage medium that can be used to store non-transient software programs, non-transient computer executable programs and units, such as program instructions / units corresponding to the prosody prediction method based on the prosody prediction model in the embodiment of the present application (for example, the attached Figure 8 The processor 1001 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1002, that is, the method for prosody prediction based on the prosody prediction model or the method for training the prosody prediction model in the above method embodiment.
[0128] The memory 1002 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created based on the use of an electronic device for prosody prediction based on a prosody prediction model or an electronic device for training a prosody prediction model, etc. In addition, the memory 1002 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1002 may optionally include a memory remotely arranged relative to the processor 1001, and these remote memories may be connected to an electronic device for prosody prediction based on a prosody prediction model or an electronic device for training a prosody prediction model via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0129] The electronic device for prosody prediction based on the prosody prediction model or the electronic device for training the prosody prediction model may further include: an input device 1003 and an output device 1004. The processor 1001, the memory 1002, the input device 1003 and the output device 1004 may be connected via a bus 1005 or other means. Fig.10 The connection via bus 1005 is taken as an example.
[0130] The input device 1003 can receive input digital or character information, and generate key signal input related to user settings and function control of an electronic device for prosody prediction based on a prosody prediction model or an electronic device for training a prosody prediction model, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, and other input devices. The output device 1004 may include a display device, an auxiliary lighting device (e.g., an LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touch screen.
[0131] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, dedicated ASICs (application specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0132] These computer programs (also referred to as programs, software, software applications, or code) include machine instructions for programmable processors and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, device, and / or means (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0133] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0134] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0135] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
[0136] According to the technical solution of the embodiment of the present application, based on the domain feature vector of the target text, the pre-trained prosody prediction model can output the prosody of the target text corresponding to the domain indicated by the domain feature vector, thereby realizing fast and accurate prosody prediction for texts in different domains, and improving the speed and accuracy of prosody prediction. By training the prosody prediction model using texts in different domains, domain feature vectors corresponding to texts in different domains, and training samples of prosody boundary markers corresponding to texts in different domains, the generated prosody prediction model can quickly and accurately predict the prosody of texts in different domains, and improve the speed and accuracy of prosody prediction.
[0137] According to one or more embodiments of the present disclosure, the present disclosure provides a rhythm prediction method, including: obtaining a target text; determining a domain feature vector of the target text; determining a rhythm boundary marker in the target text based on the target text and the domain feature vector; determining the rhythm of the target text based on the rhythm boundary marker, and outputting it.
[0138] According to one or more embodiments of the present disclosure, determining a domain feature vector of a target text includes: determining a domain identifier corresponding to the target text based on the target text and a pre-trained classification model, wherein the pre-trained classification model is used to characterize the correspondence between the text and the domain identifier; determining a domain feature vector corresponding to the target text based on the target text, the domain identifier, and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector.
[0139] According to one or more embodiments of the present disclosure, determining a prosodic boundary marker in a target text includes: determining the prosodic boundary marker in the target text according to the target text, a domain feature vector and a pre-trained prosodic prediction model, wherein the pre-trained prosodic prediction model is used to characterize the correspondence between the text based on the domain feature vector and the prosodic boundary marker.
[0140] According to one or more embodiments of the present disclosure, the present disclosure also provides a method for training a prosody prediction model, comprising: obtaining an initial model, wherein the initial model includes an initial prosody prediction model; obtaining a training sample set, wherein the training sample set includes texts from different fields, domain feature vectors corresponding to each annotated text, and prosody boundary markers corresponding to each annotated text; using the texts from different fields and the domain feature vectors corresponding to each annotated text as inputs to the initial model, using the prosody boundary markers corresponding to the input texts from different fields and the domain feature vectors corresponding to each annotated text as expected outputs, and determining the initial prosody prediction model of the trained initial model as the prosody prediction model.
[0141] According to one or more embodiments of the present disclosure, a training sample set is obtained, including: obtaining texts in different fields and domain features of the texts in each field; determining a domain feature vector corresponding to each domain feature according to the correspondence between each domain feature and preset features and vectors; obtaining a first prosodic boundary marker corresponding to the text corresponding to each domain feature vector; and combining texts in different fields, domain feature vectors corresponding to texts in different fields, and first prosodic boundary markers into training samples.
[0142] According to one or more embodiments of the present disclosure, a training sample set is obtained, including: obtaining texts from different fields and common features of the texts in each field; determining common feature vectors corresponding to each common feature based on the correspondence between each common feature and preset features and vectors; obtaining second prosodic boundary markers corresponding to the texts corresponding to each common feature vector; and combining texts from different fields, each common feature vector corresponding to the texts in different fields, and each second prosodic boundary marker into a training sample.
[0143] According to one or more embodiments of the present disclosure, the present disclosure provides a rhythm prediction device, including: an acquisition unit, configured to acquire a target text; a domain feature vector determination unit, configured to determine the domain feature vector of the target text; a rhythm boundary identifier determination unit, configured to determine the rhythm boundary identifier in the target text based on the target text and the domain feature vector; and an output unit, configured to determine the rhythm of the target text based on the rhythm boundary identifier and output it.
[0144] According to one or more embodiments of the present disclosure, the domain feature vector determination unit is further configured to: determine the domain identifier corresponding to the target text based on the target text and a pre-trained classification model, wherein the pre-trained classification model is used to characterize the correspondence between the text and the domain identifier; determine the domain feature vector corresponding to the target text based on the target text, the domain identifier and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector.
[0145] According to one or more embodiments of the present disclosure, the prosody boundary marker determination unit is further configured to: determine the prosody boundary marker in the target text based on the target text, the domain feature vector and the pre-trained prosody prediction model, wherein the pre-trained prosody prediction model is used to characterize the correspondence between the text based on the domain feature vector and the prosody boundary marker.
[0146] According to one or more embodiments of the present disclosure, the present disclosure also provides an apparatus for training a prosody prediction model, comprising: a model acquisition unit, configured to acquire an initial model, wherein the initial model includes an initial prosody prediction model; a sample acquisition unit, configured to acquire a training sample set, wherein the training sample set includes texts from different fields, domain feature vectors corresponding to each annotated text, and prosody boundary identifiers corresponding to each annotated text; a training unit, configured to use the texts from different fields and the domain feature vectors corresponding to each annotated text as inputs to the initial model, use the prosody boundary identifiers corresponding to the input texts from different fields and the domain feature vectors corresponding to each annotated text as expected outputs, and determine the initial prosody prediction model of the trained initial model as the prosody prediction model.
[0147] According to one or more embodiments of the present disclosure, the sample acquisition unit is further configured to: acquire texts of different fields and domain features of the texts of each field; determine the domain feature vector corresponding to each domain feature according to the correspondence between each domain feature and preset features and vectors; acquire the first prosodic boundary marker corresponding to the text corresponding to each domain feature vector; and combine the texts of different fields, the domain feature vectors corresponding to the texts of different fields, and the first prosodic boundary markers into training samples.
[0148] According to one or more embodiments of the present disclosure, the sample acquisition unit is further configured to: acquire texts in different fields and common features of texts in each field; determine common feature vectors corresponding to each common feature based on the correspondence between each common feature and preset features and vectors; acquire the second prosodic boundary marker corresponding to the text corresponding to each common feature vector; and combine texts in different fields, the common feature vectors corresponding to texts in different fields, and the second prosodic boundary markers into training samples.
[0149] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0150] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A rhythm prediction method, comprising: Get the target text; Determining a domain feature vector of the target text; Determining a prosodic boundary marker in the target text according to the target text and the domain feature vector; Determine the rhythm of the target text according to the rhythm boundary marker, and output it; The determining of the domain feature vector of the target text includes: Determining a domain identifier corresponding to the target text according to the target text and a pre-trained classification model, wherein the pre-trained classification model is used to characterize a correspondence between the text and the domain identifier; A domain feature vector corresponding to the target text is determined according to the target text, the domain identifier and a pre-trained conversion model, wherein the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector.
2. The method according to claim 1, wherein: The step of determining a prosodic boundary marker in the target text includes: According to the target text, the domain feature vector and a pre-trained prosody prediction model, a prosody boundary marker in the target text is determined, wherein the pre-trained prosody prediction model is used to characterize the correspondence between the text based on the domain feature vector and the prosody boundary marker.
3. A method for training a prosody prediction model, comprising: Acquire an initial model, wherein the initial model includes an initial rhythm prediction model; Acquire a training sample set, wherein the training sample set includes texts in different fields, field feature vectors corresponding to each annotated text, and prosodic boundary identifiers corresponding to each annotated text, wherein the field feature vectors are determined in the following manner: according to each text and a pre-trained classification model, determine the field identifier corresponding to the text, the pre-trained classification model is used to characterize the correspondence between different texts and field identifiers; according to the text, the field identifier, and a pre-trained conversion model, determine the field feature vector corresponding to the text, the pre-trained conversion model is used to characterize the correspondence between the text based on the field identifier and the field feature vector; The domain feature vectors corresponding to the texts in different fields and the annotated texts are used as the input of the initial model, the prosody boundary markers corresponding to the domain feature vectors corresponding to the input texts in different fields and the annotated texts are used as the expected output, and the initial prosody prediction model of the trained initial model is determined as the prosody prediction model.
4. The method according to claim 3, wherein: The step of obtaining a training sample set includes: Obtain texts from different fields and the domain features of the texts in each field; Determine the domain feature vector corresponding to each domain feature according to the correspondence between each domain feature and the preset feature and vector; Obtaining a first prosodic boundary marker corresponding to the text corresponding to each of the domain feature vectors; The texts in different fields, the field feature vectors corresponding to the texts in different fields, and the first prosodic boundary markers are combined into training samples.
5. The method according to claim 3, wherein: The step of obtaining a training sample set includes: Obtain texts from different fields and the common features of texts in each field; Determine a common feature vector corresponding to each of the common features according to the correspondence between each of the common features and the preset features and vectors; Obtaining a second prosodic boundary marker corresponding to the text corresponding to each of the common feature vectors; The texts in different fields, the common feature vectors corresponding to the texts in different fields, and the second rhyme boundary markers are combined into training samples.
6. A rhythm prediction device, comprising: an acquisition unit, configured to acquire a target text; A domain feature vector determining unit, configured to determine a domain feature vector of the target text; a prosodic boundary marker determining unit configured to determine a prosodic boundary marker in the target text according to the target text and the domain feature vector; an output unit, configured to determine the rhythm of the target text according to the rhythm boundary identifier, and output it; The domain feature vector determination unit is further configured to: Determine the domain identifier corresponding to the target text according to the target text and the pre-trained classification model, wherein the pre-trained classification model is used to characterize the correspondence between the text and the domain identifier; According to the target text, the domain identifier and the pre-trained conversion model, a domain feature vector corresponding to the target text is determined, wherein the pre-trained conversion model is used to characterize the correspondence between the text based on the domain identifier and the domain feature vector.
7. A device for training a prosody prediction model, comprising: A model acquisition unit, configured to acquire an initial model, wherein the initial model includes an initial prosody prediction model; The sample acquisition unit is configured to acquire a training sample set, wherein the training sample set includes texts of different fields, field feature vectors corresponding to each annotated text, and prosodic boundary identifiers corresponding to each annotated text, wherein the field feature vectors are determined in the following manner: according to each text and a pre-trained classification model, the field identifier corresponding to the text is determined, and the pre-trained classification model is used to characterize the correspondence between different texts and field identifiers; according to the text, the field identifier, and a pre-trained conversion model, the field feature vector corresponding to the text is determined, and the pre-trained conversion model is used to characterize the correspondence between the text based on the field identifier and the field feature vector; The training unit is configured to use the domain feature vectors corresponding to the texts in different fields and the annotated texts as the input of the initial model, use the prosody boundary markers corresponding to the domain feature vectors corresponding to the input texts in different fields and the annotated texts as the expected output, and determine the initial prosody prediction model of the trained initial model as the prosody prediction model.
8. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Document classifying method based on network measure index
CN103970888A
Method and device for processing text
CN108962219A
Text rhythm hierarchical structure prediction method, apparatus and device, and storage medium
CN110534087A
