Skip to main content

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

Metadata

Release files for marine-plus 0.0.6.post5

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-plus 0.0.6.post5
File Size Uploaded Provenance Actions
marine_plus-0.0.6.post5.tar.gz 98.1 kB Without provenance Details for marine_plus-0.0.6.post5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for marine-plus 0.0.6.post5
File Interpreter ABI Platform Actions
marine_plus-0.0.6.post5-py3-none-any.whl Python 3 none any Details for marine_plus-0.0.6.post5-py3-none-any.whl

Total release size: 216.2 kB

Release files / marine_plus-0.0.6.post5.tar.gz

Download URL marine_plus-0.0.6.post5.tar.gz
Size 98.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d5871aa5bdbe55054bf00792d62a4e4bac16ef0ab30b1ac632dd890a2b4dd156
BLAKE2b-256 checksum
How to use checksums
08643e4ced6aec126c0d7c54d962f5583389c6f382dcb9ca5cd451f0611f4d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / marine_plus-0.0.6.post5-py3-none-any.whl

Download URL marine_plus-0.0.6.post5-py3-none-any.whl
Size 118.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
239bffa00c7a9b25f62a46caa8bcc8f76faa023d542c76d2a9383164706f65fc
BLAKE2b-256 checksum
How to use checksums
6822d5df1f761eed2cb512ca443af1907d8d9d70c86f25eb67c08acb5c17d07e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for marine-plus 0.0.6.post5

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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