package mecab

  1. Overview
  2. Docs

Parsing results

Parsing results

type stat =
  1. | NOR
    (*

    Normal node defined in the dictionary.

    *)
  2. | UNK
    (*

    Unknown node not defined in the dictionary.

    *)
  3. | BOS
    (*

    Virtual node representing a beginning of the sentence.

    *)
  4. | EOS
    (*

    Virtual node representing a end of the sentence.

    *)
  5. | EON
    (*

    Virtual node representing a end of the N-best enumeration.

    *)
val stat_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> stat
val sexp_of_stat : stat -> Ppx_sexp_conv_lib.Sexp.t
type t = {
  1. surface : string;
    (*

    surface string.

    *)
  2. feature : string;
    (*

    feature string.

    *)
  3. id : int;
    (*

    unique node id

    *)
  4. rc_attr : int;
    (*

    right attribute id

    *)
  5. lc_attr : int;
    (*

    left attribute id

    *)
  6. posid : int;
    (*

    unique part of speech id. This value is defined in pos.def file.

    *)
  7. char_type : int;
    (*

    character type

    *)
  8. stat : stat;
    (*

    status of this model.

    *)
  9. isbest : bool;
    (*

    true if this node is best node.

    *)
  10. alpha : float;
    (*

    forward accumulative log summation. * This value is only available when MECAB_MARGINAL_PROB is passed.

    *)
  11. beta : float;
    (*

    backward accumulative log summation. * This value is only available when MECAB_MARGINAL_PROB is passed.

    *)
  12. prob : float;
    (*

    marginal probability. * This value is only available when MECAB_MARGINAL_PROB is passed.

    *)
  13. wcost : int;
    (*

    word cost.

    *)
  14. cost : int;
    (*

    best accumulative cost from bos node to this node.

    *)
}
val t_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
OCaml

Innovation. Community. Security.