marine-plus
marine-plus は、主に Windows 対応や新しい Python バージョンのサポートなどコードのメンテナンスを目的とした、marine の派生ライブラリです。
Installation
下記コマンドを実行して、ライブラリをインストールできます。
pip install marine-plus
下記のドキュメントは、marine 本家のドキュメントを、一部改変した上でそのまま引き継いでいます。
これらのドキュメントの内容が marine-plus にも通用するかは保証されません。
MARINE : Multi-task leaRnIng-based JapaNese accent Estimation
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
- marine: Apache 2.0 license (LICENSE)
- JSUT: CC-BY-SA 4.0 license, etc. (Please check jsut-label/LICENCE.txt)
Metadata
Release files for marine-plus 0.0.6.post4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| marine_plus-0.0.6.post4.tar.gz | 97.7 kB | Without provenance | Details for marine_plus-0.0.6.post4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| marine_plus-0.0.6.post4-py3-none-any.whl | Python 3 | none | any | Details for marine_plus-0.0.6.post4-py3-none-any.whl |
Total release size: 215.5 kB
Release files / marine_plus-0.0.6.post4.tar.gz
| Download URL | marine_plus-0.0.6.post4.tar.gz |
|---|---|
| Size | 97.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d09c405069218cc8d2a65102696ebcdadc04a816eb6407b91fde143621f73d4c
|
|
BLAKE2b-256 checksum How to use checksums |
e2a1a17f46c7d4afdd74f5f2a085520e26f42af79dc8fd1c7c3dc6e724cc8bad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / marine_plus-0.0.6.post4-py3-none-any.whl
| Download URL | marine_plus-0.0.6.post4-py3-none-any.whl |
|---|---|
| Size | 117.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68f13fbb718d24ca123e2d6f70258c8f38bcbbd81c3c4fb7aa897c61cce17e2b
|
|
BLAKE2b-256 checksum How to use checksums |
a735371a0fba64ffb391b847de5ea93a84840089875ac4b3bad9fd3f7d7a154a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for marine-plus 0.0.6.post4
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.