Skip to main content

MARINE : Multi-task leaRnIng-based JapaNese accent Estimation

PyPI Python package License

marine is a tool kit for building the Japanese accent estimation model proposed in our paper.

For academic use, please cite the following paper (IEEE Xplore).

@inproceedings{park22b_interspeech,
  author={Byeongseon Park and Ryuichi Yamamoto and Kentaro Tachibana},
  title={{A Unified Accent Estimation Method Based on Multi-Task Learning for Japanese Text-to-Speech}},
  year=2022,
  booktitle={Proc. Interspeech 2022},
  pages={1931--1935},
  doi={10.21437/Interspeech.2022-334}
}

Notice

The model included in this package is trained using JSUT corpus, which is not the same as the dataset in our paper. Therefore, the model's performance is also not equal to the performance introduced in our paper.

Get started

Install

$ pip install marine

For develop

$ pip install -e ".[dev]"

Quick demo

In [1]: from marine.predict import Predictor

In [2]: nodes = [
   ...:     {
   ...:         "surface": "こんにちは",
   ...:         "pos": "感動詞:*:*:*",
   ...:         "pron": "コンニチワ",
   ...:         "c_type": "*",
   ...:         "c_form": "*",
   ...:         "accent_type": 0,
   ...:         "accent_con_type": "-1",
   ...:         "chain_flag": -1
   ...:     }
   ...: ]

In [3]: predictor = Predictor()

In [4]: predictor.predict([nodes])
Out[4]:
{'mora': [['コ', 'ン', 'ニ', 'チ', 'ワ']],
 'intonation_phrase_boundary': [[0, 0, 0, 0, 0]],
 'accent_phrase_boundary': [[0, 0, 0, 0, 0]],
 'accent_status': [[0, 0, 0, 0, 0]]}

In [5]: predictor.predict([nodes], accent_represent_mode="high_low")
Out[5]:
{'mora': [['コ', 'ン', 'ニ', 'チ', 'ワ']],
 'intonation_phrase_boundary': [[0, 0, 0, 0, 0]],
 'accent_phrase_boundary': [[0, 0, 0, 0, 0]],
 'accent_status': [[0, 1, 1, 1, 1]]}

Build model your self

Coming soon

LICENSE

Metadata

Release files for marine 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marine 0.0.6
File Size Uploaded Provenance
marine-0.0.6.tar.gz 65.6 kB Without provenance Details

Release files / marine-0.0.6.tar.gz

Download URL marine-0.0.6.tar.gz
Size 65.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d5d7990364be80653294db04be7e7410d922aec9bafc375e0e9354cf94a00bee
BLAKE2b-256 checksum
How to use checksums
8854e91c7c6ea8becc422c82b6aed54d3d4eb355f8dd4df81895a8f606a4a013
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for marine 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page