Skip to main content

Marine: Multi-task learning based on Japanese accent estimation (Also supports Windows and Python 3.13)

Project description

marine-plus

PyPI Python package License

marine-plus は、主に Windows 対応や新しい Python バージョンのサポートなどコードのメンテナンスを目的とした、marine の派生ライブラリです。

Installation

下記コマンドを実行して、ライブラリをインストールできます。

pip install marine-plus

下記のドキュメントは、marine 本家のドキュメントを、一部改変した上でそのまま引き継いでいます。
これらのドキュメントの内容が marine-plus にも通用するかは保証されません。


MARINE : Multi-task leaRnIng-based JapaNese accent Estimation

PyPI Python package License DOI

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

For academic use, please cite the following paper (ISCA archive).

@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

Installation for users

$ pip install marine-plus

For development

$ pip install uv
$ uv venv
$ uv sync --extra pyopenjtalk --group 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 yourself

Coming soon...

LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

marine_plus-0.0.6.post4.tar.gz (97.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

marine_plus-0.0.6.post4-py3-none-any.whl (117.8 kB view details)

Uploaded Python 3

File details

Details for the file marine_plus-0.0.6.post4.tar.gz.

File metadata

  • Download URL: marine_plus-0.0.6.post4.tar.gz
  • Upload date:
  • Size: 97.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for marine_plus-0.0.6.post4.tar.gz
Algorithm Hash digest
SHA256 d09c405069218cc8d2a65102696ebcdadc04a816eb6407b91fde143621f73d4c
MD5 a5706863f041bb1b3bc5684bb692a554
BLAKE2b-256 e2a1a17f46c7d4afdd74f5f2a085520e26f42af79dc8fd1c7c3dc6e724cc8bad

See more details on using hashes here.

File details

Details for the file marine_plus-0.0.6.post4-py3-none-any.whl.

File metadata

File hashes

Hashes for marine_plus-0.0.6.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 68f13fbb718d24ca123e2d6f70258c8f38bcbbd81c3c4fb7aa897c61cce17e2b
MD5 53fb61ef1faba0b633ef2130ead9696a
BLAKE2b-256 a735371a0fba64ffb391b847de5ea93a84840089875ac4b3bad9fd3f7d7a154a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page