MECAB_ONE_BEST

Parameters for MeCab::Lattice::request_type

Values

ValueMeaning
MECAB_ONE_BEST1

One best result is obtained (default mode)

MECAB_NBEST2

Set this flag if you want to obtain N best results.

MECAB_PARTIAL4

Set this flag if you want to enable a partial parsing mode. When this flag is set, the input |sentence| needs to be written in partial parsing format.

MECAB_MARGINAL_PROB8

Set this flag if you want to obtain marginal probabilities. Marginal probability is set in MeCab::Node::prob. The parsing speed will get 3-5 times slower than the default mode.

MECAB_ALTERNATIVE16

Set this flag if you want to obtain alternative results. Not implemented.

MECAB_ALL_MORPHS32

When this flag is set, the result linked-list (Node::next/prev) traverses all nodes in the lattice.

MECAB_ALLOCATE_SENTENCE64

When this flag is set, tagger internally copies the body of passed sentence into internal buffer.

Meta