#japanese

cabocha

Safe Rust wrapper for cabocha a japanese language dependency structure analyzer library

10 releases

0.2.0 Feb 17, 2020
0.1.7 May 9, 2018
0.1.6 Jun 8, 2017
0.1.4 Apr 25, 2017
0.0.1 Apr 8, 2017

#1394 in Text processing

30 downloads per month

MIT license

27KB
792 lines

cabocha-rs

cabocha at crates.io cabocha at docs.rs Actions Status

Example

cargo run --example test

Usage

[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));
}

LISENCE

MIT

Dependencies

~44KB