package mecab

Not available on OCaml 5.5
  1. Overview
  2. Docs
An OCaml binding of MeCab, a part-of-speech and morphological analyzer.

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.0.0.tar.gz
sha256=479b271ea2dc05e019b121396593b610b067d67650961358e33d2199dcf51810
md5=e17ad800f8bd989a51feb0cafd16d903

Description

MeCab is a open-sourced part-of-speech and morphological analyzer independent from languages, dictionaries, and corpuses, developed by a joint project team of Graduate School of Informatics in Kyoto University and NTT Communication Science Laboratories.

Added to opam-repository:

README

ocaml-mecab

Build Status

An OCaml binding of MeCab, a part-of-speech and morphological analyzer.

MeCab is a open-sourced part-of-speech and morphological analyzer independent from languages, dictionaries, and corpuses, developed by a joint project team of Graduate School of Informatics in Kyoto University and NTT Communication Science Laboratories. MeCab is almost faster than ChaSen, Juman, and KAKASHI. The official documentation (written in Japanese) is published at MeCab: Yet Another Part-of-Speech and Morphological Analyzer, and English-translated version is at MeCab English Documentation.

Getting started

Install the latest-released version by

opam install mecab

or the latest snapshot by opam pin add mecab ..

You can parse a sentense as follows:

# #require "mecab" ;;

# let mecab = Mecab.Tagger.create [|""|];;
val mecab : Mecab.Tagger.t = <abstr>

# Mecab.Tagger.sparse_tostr mecab "すもももももももものうち" |> print_endline;;
すもも	名詞,一般,*,*,*,*,すもも,スモモ,スモモ
も	助詞,係助詞,*,*,*,*,も,モ,モ
もも	名詞,一般,*,*,*,*,もも,モモ,モモ
も	助詞,係助詞,*,*,*,*,も,モ,モ
もも	名詞,一般,*,*,*,*,もも,モモ,モモ
の	助詞,連体化,*,*,*,*,の,ノ,ノ
うち	名詞,非自立,副詞可能,*,*,*,うち,ウチ,ウチ
EOS

- : unit = ()

Documentation

Dependencies (8)

  1. jbuilder >= "1.0+beta7"
  2. ocamlfind build & >= "1.5.0"
  3. ocaml-migrate-parsetree build & < "2.0.0"
  4. ppx_sexp_conv
  5. sexplib
  6. camomile < "2.0.0"
  7. conf-mecab >= "0.996"
  8. ocaml

Dev Dependencies

None

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

Results of building mecab with each compiler on check.ci.ocaml.org, run of against opam-repository 7cdc698. All results for this package.

Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.

Version OCaml 4.11 OCaml 4.14 OCaml 5.2 OCaml 5.4 OCaml 5.5
0.0.0 (this version) good n/a n/a n/a n/a
  • good Package successfully built
  • partial One of the dependencies failed to build
  • bad Package failed to build
  • n/a Package is not available in this environment
  • internal Internal failure