Crates.io | cabocha |
lib.rs | cabocha |
version | 0.2.0 |
source | src |
created_at | 2017-04-08 21:07:29.737732 |
updated_at | 2020-02-17 11:58:07.222581 |
description | Safe Rust wrapper for cabocha a japanese language dependency structure analyzer library |
homepage | |
repository | https://github.com/Yasu-umi/cabocha-rs |
max_upload_size | |
id | 10051 |
size | 33,206 |
cargo run --example test
[dependencies]
cabocha = "*"
use cabocha::parser::Parser;
fn main() {
let parser = Parser::new("");
let sentence = "我輩は猫である。";
let mut tree = parser.parse_to_tree(sentence);
println!("{}", tree.to_string(cabocha::consts::CABOCHA_FORMAT::TREE));
}