jpreprocess
Japanese text preprocessor for Text-to-Speech application.
This project is a rewrite of OpenJTalk in Rust language.
Usage
Put the following in Cargo.toml
[]
= "0.13.2"
It may be necessary to add jpreprocess-njd and/or jpreprocess-jpcommon if you want control over how njd and jpcommon are processed.
Example
In this example, jpreprocess takes a lindera dictionary and preprocesses a text into jpcommon labels.
use *;
let system = File.load?;
let jpreprocess = with_dictionaries;
let jpcommon_label = jpreprocess
.extract_fullcontext?;
assert_eq!;
Other examples can be found at GitHub.
Copyrights
This software includes source code from:
- OpenJTalk. Copyright (c) 2008-2016 Nagoya Institute of Technology Department of Computer Science
- Lindera. Copyright (c) 2019 by the project authors
License
BSD-3-Clause