Closed 6gsn closed 2 years ago
Hi, @r9y9! I believe this PR is ready for getting review. May I ask you to approve the workflow and review this PR?
@r9y9 Sorry for the dumb error 😭 I fixed the error and checked that testing for lint passed in my local environment (also testing for pytest as well).
Hi, @r9y9 I updated the docs and README as well 👍
This PR introduces marine, the module for estimating accent using the DNN-based method.
Motivation
The priory motivation of this PR is to enhance
pyopenjtalk
by introducingmarine,
which is the Japanese accent module using the DNN-based method.What I did
Currently,
extract_fullcontext()
supports the creating the full-context label from texts. So, I added the option to activate the estimation usingmarine
and the processing for estimating the Japanese accents usingmarine
. And then, the accents will be applied to the full-context label.before
after
To implement this modification, I also modified the existing feature as below;
run_frontend()
asrun_frontend()
andmake_label()
for linguistic feature extraction and for full-context label creation, respectively.run_marine
option is activated.Modified the data structure of the linguistic feature that be created by
run_frontend()
as below;before
after
marine
is applied with other linguistic features and creates the full-context labels.Additional changes
njd2feature()
function, which converts NJD Node to linguistic features defined aslist[dict]
feature2njd()
function, which converts linguistic features defined aslist[dict]
to NJD Noderun_marine
option totts()
run_marine
optionTodo
marine