344# define MECAB_DLL_EXTERN __declspec(dllexport)
345# define MECAB_DLL_CLASS_EXTERN __declspec(dllexport)
347# define MECAB_DLL_EXTERN __declspec(dllimport)
351#ifndef MECAB_DLL_EXTERN
352# define MECAB_DLL_EXTERN extern
355#ifndef MECAB_DLL_CLASS_EXTERN
356# define MECAB_DLL_CLASS_EXTERN
454 char *ostr,
size_t olen);
475 const char *str,
size_t len);
481 const char *str,
size_t len,
482 char *ostr,
size_t olen);
748 unsigned short rcAttr,
749 unsigned short lcAttr);
760 MECAB_DLL_EXTERN
int mecab_do(
int argc,
char **argv);
866 virtual size_t size()
const = 0;
878 virtual double Z()
const = 0;
977 virtual const char *
toString(
char *buf,
size_t size) = 0;
988 char *buf,
size_t size) = 0;
1026 int boundary_constraint_type) = 0;
1035 size_t begin_pos,
size_t end_pos,
1036 const char *feature) = 0;
1048 virtual const char *
what()
const = 0;
1083 unsigned short lcAttr)
const = 0;
1189 virtual const char*
parse(
const char *str) = 0;
1266 virtual const char*
parse(
const char *str,
size_t len,
char *ostr,
size_t olen) = 0;
1274 virtual const char*
parse(
const char *str,
size_t len) = 0;
1291 virtual const char*
parseNBest(
size_t N,
const char *str,
size_t len) = 0;
1309 virtual const char*
next(
char *ostr ,
size_t olen) = 0;
1322 size_t len,
char *ostr,
size_t olen) = 0;
1413 virtual const char*
what()
const = 0;
Lattice class.
Definition mecab.h:786
static Lattice * create()
Create new Lattice object.
virtual const char * sentence() const =0
Return sentence.
virtual void set_what(const char *str)=0
Set error string.
virtual void set_Z(double Z)=0
Set normalization factor of CRF.
virtual void set_feature_constraint(size_t begin_pos, size_t end_pos, const char *feature)=0
Set parsing constraint for partial parsing mode.
virtual void set_sentence(const char *sentence, size_t len)=0
Set sentence.
virtual Allocator< Node, Path > * allocator() const =0
This method is used internally.
virtual Node * bos_node() const =0
Return bos (begin of sentence) node.
virtual int request_type() const =0
Return the current request type.
virtual float theta() const =0
Return temparature parameter theta.
virtual ~Lattice()
Definition mecab.h:1064
virtual Node * begin_nodes(size_t pos) const =0
Return node linked list starting at |pos|.
virtual const char * toString(const Node *node)=0
Return string representation of the node.
virtual Node ** end_nodes() const =0
This method is used internally.
virtual Node * end_nodes(size_t pos) const =0
Return node linked list ending at |pos|.
virtual const char * enumNBestAsString(size_t N, char *buf, size_t size)=0
Return string representation of the N-best result.
virtual void set_result(const char *result)=0
Set golden parsing results for unittesting.
virtual const char * toString(char *buf, size_t size)=0
Return string representation of the lattice.
virtual Node ** begin_nodes() const =0
This method is used internally.
virtual void add_request_type(int request_type)=0
Add request type.
virtual double Z() const =0
return normalization factor of CRF.
virtual void set_theta(float theta)=0
Set temparature parameter theta.
virtual bool has_constraint() const =0
Returns true if any parsing constraint is set.
virtual const char * feature_constraint(size_t pos) const =0
Returns the token constraint at the position.
virtual int boundary_constraint(size_t pos) const =0
Returns the boundary constraint at the position.
virtual bool next()=0
Obtain next-best result.
virtual bool is_available() const =0
Return true if result object is available.
virtual Node * newNode()=0
Return new node.
virtual void clear()=0
Clear all internal lattice data.
virtual const char * what() const =0
Return error string.
virtual const char * enumNBestAsString(size_t N)=0
Return string representation of the N-best results.
virtual void set_request_type(int request_type)=0
Set request type.
virtual const char * toString(const Node *node, char *buf, size_t size)=0
Return string representation of the node.
virtual void set_boundary_constraint(size_t pos, int boundary_constraint_type)=0
Set parsing constraint for partial parsing mode.
virtual const char * toString()=0
Return string representation of the lattice.
virtual bool has_request_type(int request_type) const =0
Return true if the object has a specified request type.
virtual void set_sentence(const char *sentence)=0
Set sentence.
virtual Node * eos_node() const =0
Return eos (end of sentence) node.
virtual size_t size() const =0
Return sentence size.
virtual void remove_request_type(int request_type)=0
Remove request type.
Model class.
Definition mecab.h:1070
virtual bool swap(Model *model)=0
Swap the instance with |model|.
virtual Node * lookup(const char *begin, const char *end, Lattice *lattice) const =0
perform common prefix search from the range [begin, end).
virtual const DictionaryInfo * dictionary_info() const =0
Return DictionaryInfo linked list.
static Model * create(int argc, char **argv)
Factory method to create a new Model with a specified main's argc/argv-style parameters.
virtual Tagger * createTagger() const =0
Create a new Tagger object.
static Model * create(const char *arg)
Factory method to create a new Model with a string parameter representation, i.e.,...
virtual ~Model()
Definition mecab.h:1126
virtual Lattice * createLattice() const =0
Create a new Lattice object.
static const char * version()
Return a version string.
virtual int transition_cost(unsigned short rcAttr, unsigned short lcAttr) const =0
Return transition cost from rcAttr to lcAttr.
Tagger class.
Definition mecab.h:1154
static Tagger * create(const char *arg)
Factory method to create a new Tagger with a string parameter representation, i.e....
static bool parse(const Model &model, Lattice *lattice)
Handy static method.
virtual const Node * parseToNode(const char *str)=0
Parse given sentence and return Node object.
virtual bool partial() const =0
Return true if partial parsing mode is on.
virtual void set_lattice_level(int level)=0
Set lattice level.
virtual const char * formatNode(const Node *node, char *ostr, size_t olen)=0
The same as formatNode(), but output buffer can be passed.
virtual void set_partial(bool partial)=0
set partial parsing mode.
virtual const Node * parseToNode(const char *str, size_t len)=0
The same as parseToNode(), but input lenth can be passed.
virtual const char * parse(const char *str)=0
Parse given sentence and return parsed result as string.
virtual const char * what() const =0
Return error string.
virtual const char * next(char *ostr, size_t olen)=0
The same as next(), but output buffer can be passed.
virtual ~Tagger()
Definition mecab.h:1415
virtual const char * formatNode(const Node *node)=0
Return formatted node object.
virtual bool parse(Lattice *lattice) const =0
Parse lattice object.
static const char * version()
Return a version string.
virtual int lattice_level() const =0
Return lattice level.
virtual const char * parseNBest(size_t N, const char *str, size_t len)=0
The same as parseNBest(), but input length can be passed.
virtual void set_request_type(int request_type)=0
Set request type.
virtual bool parseNBestInit(const char *str)=0
Initialize N-best enumeration with a sentence.
virtual float theta() const =0
Return temparature parameter theta.
virtual void set_all_morphs(bool all_morphs)=0
set all-morphs output mode.
virtual const DictionaryInfo * dictionary_info() const =0
Return DictionaryInfo linked list.
virtual const char * parse(const char *str, size_t len, char *ostr, size_t olen)=0
The same as parse() method, but input length and output buffer are passed.
virtual const Node * nextNode()=0
Return next-best parsed result.
virtual int request_type() const =0
Return the current request type.
virtual const char * parseNBest(size_t N, const char *str, size_t len, char *ostr, size_t olen)=0
The same as parseNBest(), but input length and output buffer can be passed.
virtual const char * next()=0
Return next-best parsed result.
virtual void set_theta(float theta)=0
Set temparature parameter theta.
virtual bool parseNBestInit(const char *str, size_t len)=0
The same as parseNBestInit(), but input length can be passed.
virtual const char * parse(const char *str, size_t len)=0
The same as parse() method, but input length can be passed.
static Tagger * create(int argc, char **argv)
Factory method to create a new Tagger with a specified main's argc/argv-style parameters.
virtual bool all_morphs() const =0
Return true if all morphs output mode is on.
virtual const char * parseNBest(size_t N, const char *str)=0
Parse given sentence and obtain N-best results as a string format.
MECAB_DLL_EXTERN mecab_t * mecab_new(int argc, char **argv)
C wrapper of MeCab::Tagger::create(argc, argv)
@ MECAB_UNK_NODE
Unknown node not defined in the dictionary.
Definition mecab.h:229
@ MECAB_EOS_NODE
Virtual node representing a end of the sentence.
Definition mecab.h:237
@ MECAB_EON_NODE
Virtual node representing a end of the N-best enumeration.
Definition mecab.h:242
@ MECAB_NOR_NODE
Normal node defined in the dictionary.
Definition mecab.h:225
@ MECAB_BOS_NODE
Virtual node representing a beginning of the sentence.
Definition mecab.h:233
MECAB_DLL_EXTERN int mecab_model_transition_cost(mecab_model_t *model, unsigned short rcAttr, unsigned short lcAttr)
C wrapper of MeCab::Model::transition_cost()
MECAB_DLL_EXTERN mecab_model_t * mecab_model_new(int argc, char **argv)
C wapper of MeCab::Model::create(argc, argv)
MECAB_DLL_EXTERN int mecab_lattice_has_constraint(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::has_constraint()
MECAB_DLL_EXTERN const char * mecab_nbest_sparse_tostr2(mecab_t *mecab, size_t N, const char *str, size_t len)
C wrapper of MeCab::Tagger::parseNBest(size_t N, const char *str, size_t len)
MECAB_DLL_EXTERN void mecab_lattice_set_boundary_constraint(mecab_lattice_t *lattice, size_t pos, int boundary_type)
C wrapper of MeCab::Lattice::boundary_constraint(pos, type)
MECAB_DLL_EXTERN mecab_lattice_t * mecab_model_new_lattice(mecab_model_t *model)
C wapper of MeCab::Model::createLattice()
MECAB_DLL_EXTERN double mecab_lattice_get_theta(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::theta()
MECAB_DLL_EXTERN int mecab_get_all_morphs(mecab_t *mecab)
C wrapper of MeCab::Tagger::all_morphs()
MECAB_DLL_EXTERN const char * mecab_sparse_tostr(mecab_t *mecab, const char *str)
C wrapper of MeCab::Tagger::parse(const char *str)
MECAB_DLL_EXTERN void mecab_lattice_set_theta(mecab_lattice_t *lattice, double theta)
C wrapper of MeCab::Lattice::set_theta()
MECAB_DLL_EXTERN int mecab_parse_lattice(mecab_t *mecab, mecab_lattice_t *lattice)
C wrapper of MeCab::Tagger::parse(MeCab::Lattice *lattice)
MECAB_DLL_EXTERN void mecab_lattice_add_request_type(mecab_lattice_t *lattice, int request_type)
C wrapper of MeCab::Lattice::add_request_type()
MECAB_DLL_EXTERN const mecab_node_t * mecab_sparse_tonode2(mecab_t *mecab, const char *, size_t)
C wrapper of MeCab::Tagger::parseToNode(const char *str, size_t len)
MECAB_DLL_EXTERN const char * mecab_nbest_next_tostr(mecab_t *mecab)
C wrapper of MeCab::Tagger::next()
MECAB_DLL_EXTERN float mecab_get_theta(mecab_t *mecab)
C wrapper of MeCab::Tagger::theta()
MECAB_DLL_EXTERN void mecab_lattice_set_sentence2(mecab_lattice_t *lattice, const char *sentence, size_t len)
C wrapper of MeCab::Lattice::set_sentence(sentence, len)
MECAB_DLL_EXTERN char * mecab_nbest_next_tostr2(mecab_t *mecab, char *ostr, size_t olen)
C wrapper of MeCab::Tagger::next(char *ostr, size_t olen)
MECAB_DLL_EXTERN int mecab_lattice_get_request_type(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::request_type()
MECAB_DLL_EXTERN mecab_model_t * mecab_model_new2(const char *arg)
C wapper of MeCab::Model::create(arg)
MECAB_DLL_EXTERN int mecab_dict_index(int argc, char **argv)
MECAB_DLL_EXTERN void mecab_set_theta(mecab_t *mecab, float theta)
C wrapper of MeCab::Tagger::set_theta()
MECAB_DLL_EXTERN mecab_node_t * mecab_lattice_get_end_nodes(mecab_lattice_t *lattice, size_t pos)
C wrapper of MeCab::Lattice::end_nodes(pos)
MECAB_DLL_EXTERN const mecab_dictionary_info_t * mecab_model_dictionary_info(mecab_model_t *model)
C wapper of MeCab::Model::dictionary_info()
MECAB_DLL_EXTERN const char * mecab_lattice_nbest_tostr(mecab_lattice_t *lattice, size_t N)
C wrapper of MeCab::Lattice::enumNBestAsString(N)
MECAB_DLL_EXTERN int mecab_model_swap(mecab_model_t *model, mecab_model_t *new_model)
C wrapper of MeCab::Model::swap()
MECAB_DLL_EXTERN int mecab_nbest_init2(mecab_t *mecab, const char *str, size_t len)
C wrapper of MeCab::Tagger::parseNBestInit(const char *str, size_t len)
struct mecab_lattice_t mecab_lattice_t
Definition mecab.h:361
MECAB_DLL_EXTERN int mecab_do(int argc, char **argv)
MECAB_DLL_EXTERN mecab_t * mecab_model_new_tagger(mecab_model_t *model)
C wapper of MeCab::Model::createTagger()
MECAB_DLL_EXTERN int mecab_lattice_has_request_type(mecab_lattice_t *lattice, int request_type)
C wrapper of MeCab::Lattice::has_request_type()
MECAB_DLL_EXTERN void mecab_lattice_destroy(mecab_lattice_t *lattice)
C wrapper of MeCab::deleteLattice(lattice)
MECAB_DLL_EXTERN int mecab_dict_gen(int argc, char **argv)
MECAB_DLL_EXTERN void mecab_lattice_clear(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::clear()
MECAB_DLL_EXTERN mecab_node_t ** mecab_lattice_get_all_end_nodes(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::end_nodes()
MECAB_DLL_EXTERN const mecab_dictionary_info_t * mecab_dictionary_info(mecab_t *mecab)
C wrapper of MeCab::Tagger::dictionary_info()
MECAB_DLL_EXTERN int mecab_get_lattice_level(mecab_t *mecab)
C wrapper of MeCab::Tagger::lattice_level()
MECAB_DLL_EXTERN mecab_node_t ** mecab_lattice_get_all_begin_nodes(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::begin_nodes()
MECAB_DLL_EXTERN char * mecab_nbest_sparse_tostr3(mecab_t *mecab, size_t N, const char *str, size_t len, char *ostr, size_t olen)
C wrapper of MeCab::Tagger::parseNBest(size_t N, const char *str, char *ostr, size_t olen)
MECAB_DLL_EXTERN size_t mecab_lattice_get_size(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::size()
MECAB_DLL_EXTERN void mecab_set_all_morphs(mecab_t *mecab, int all_morphs)
C wrapper of MeCab::Tagger::set_all_moprhs()
struct mecab_model_t mecab_model_t
Definition mecab.h:360
@ MECAB_ALLOCATE_SENTENCE
When this flag is set, tagger internally copies the body of passed sentence into internal buffer.
Definition mecab.h:304
@ MECAB_ALL_MORPHS
When this flag is set, the result linked-list (Node::next/prev) traverses all nodes in the lattice.
Definition mecab.h:298
@ MECAB_NBEST
Set this flag if you want to obtain N best results.
Definition mecab.h:276
@ MECAB_ALTERNATIVE
Set this flag if you want to obtain alternative results.
Definition mecab.h:293
@ MECAB_MARGINAL_PROB
Set this flag if you want to obtain marginal probabilities.
Definition mecab.h:288
@ MECAB_ONE_BEST
One best result is obtained (default mode)
Definition mecab.h:272
@ MECAB_PARTIAL
Set this flag if you want to enable a partial parsing mode.
Definition mecab.h:282
MECAB_DLL_EXTERN const char * mecab_format_node(mecab_t *mecab, const mecab_node_t *node)
C wrapper of MeCab::Tagger::formatNode(const Node *node)
MECAB_DLL_EXTERN const char * mecab_lattice_tostr2(mecab_lattice_t *lattice, char *buf, size_t size)
C wrapper of MeCab::Lattice::toString(buf, size)
MECAB_DLL_EXTERN mecab_node_t * mecab_model_lookup(mecab_model_t *model, const char *begin, const char *end, mecab_lattice_t *lattice)
C wrapper of MeCab::Model::lookup()
MECAB_DLL_EXTERN void mecab_set_partial(mecab_t *mecab, int partial)
C wrapper of MeCab::Tagger::partial()
MECAB_DLL_EXTERN const char * mecab_version()
C wrapper of MeCab::Tagger::version()
MECAB_DLL_EXTERN mecab_node_t * mecab_lattice_new_node(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::newNode();.
MECAB_DLL_EXTERN void mecab_destroy(mecab_t *mecab)
C wrapper of MeCab::deleteTagger(tagger)
MECAB_DLL_EXTERN int mecab_nbest_init(mecab_t *mecab, const char *str)
C wrapper of MeCab::Tagger::parseNBestInit(const char *str)
MECAB_DLL_EXTERN const char * mecab_lattice_get_sentence(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::sentence()
MECAB_DLL_EXTERN mecab_t * mecab_new2(const char *arg)
C wrapper of MeCab::Tagger::create(arg)
MECAB_DLL_EXTERN int mecab_test_gen(int argc, char **argv)
MECAB_DLL_EXTERN void mecab_lattice_set_result(mecab_lattice_t *lattice, const char *result)
C wrapper of MeCab::Lattice::set_result(result);.
MECAB_DLL_EXTERN mecab_lattice_t * mecab_lattice_new()
C wrapper of MeCab::createLattice()
MECAB_DLL_EXTERN const char * mecab_lattice_tostr(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::toString()
MECAB_DLL_EXTERN mecab_node_t * mecab_lattice_get_bos_node(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::bos_node()
MECAB_DLL_EXTERN const mecab_node_t * mecab_sparse_tonode(mecab_t *mecab, const char *)
C wrapper of MeCab::Tagger::parseToNode(const char *str)
MECAB_DLL_EXTERN mecab_node_t * mecab_lattice_get_eos_node(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::eos_node()
@ MECAB_INSIDE_TOKEN
The position is not a token boundary.
Definition mecab.h:324
@ MECAB_TOKEN_BOUNDARY
The position is a strong token boundary.
Definition mecab.h:319
@ MECAB_ANY_BOUNDARY
The token boundary is not specified.
Definition mecab.h:314
MECAB_DLL_EXTERN char * mecab_sparse_tostr3(mecab_t *mecab, const char *str, size_t len, char *ostr, size_t olen)
C wrapper of MeCab::Tagger::parse(const char *str, char *ostr, size_t olen)
MECAB_DLL_EXTERN void mecab_lattice_set_request_type(mecab_lattice_t *lattice, int request_type)
C wrapper of MeCab::Lattice::set_request_type()
MECAB_DLL_EXTERN const char * mecab_nbest_sparse_tostr(mecab_t *mecab, size_t N, const char *str)
C wrapper of MeCab::Tagger::parseNBest(size_t N, const char *str)
MECAB_DLL_EXTERN void mecab_set_lattice_level(mecab_t *mecab, int level)
C wrapper of MeCab::Tagger::set_lattice_level()
#define MECAB_DLL_CLASS_EXTERN
Definition mecab.h:356
struct mecab_t mecab_t
Definition mecab.h:359
MECAB_DLL_EXTERN int mecab_system_eval(int argc, char **argv)
MECAB_DLL_EXTERN const char * mecab_lattice_strerror(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::what()
MECAB_DLL_EXTERN void mecab_lattice_set_z(mecab_lattice_t *lattice, double Z)
C wrapper of MeCab::Lattice::set_Z()
MECAB_DLL_EXTERN mecab_node_t * mecab_lattice_get_begin_nodes(mecab_lattice_t *lattice, size_t pos)
C wrapper of MeCab::Lattice::begin_nodes(pos)
MECAB_DLL_EXTERN void mecab_lattice_set_feature_constraint(mecab_lattice_t *lattice, size_t begin_pos, size_t end_pos, const char *feature)
C wrapper of MeCab::Lattice::set_feature_constraint(begin_pos, end_pos, feature)
MECAB_DLL_EXTERN int mecab_lattice_next(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::next()
@ MECAB_SYS_DIC
This is a system dictionary.
Definition mecab.h:252
@ MECAB_UNK_DIC
This is a unknown word dictionary.
Definition mecab.h:262
@ MECAB_USR_DIC
This is a user dictionary.
Definition mecab.h:257
MECAB_DLL_EXTERN void mecab_lattice_set_sentence(mecab_lattice_t *lattice, const char *sentence)
C wrapper of MeCab::Lattice::set_sentence(sentence)
MECAB_DLL_EXTERN void mecab_model_destroy(mecab_model_t *model)
C wapper of MeCab::deleteModel(model)
MECAB_DLL_EXTERN const mecab_node_t * mecab_nbest_next_tonode(mecab_t *mecab)
C wrapper of MeCab::Tagger::nextNode()
MECAB_DLL_EXTERN const char * mecab_sparse_tostr2(mecab_t *mecab, const char *str, size_t len)
C wrapper of MeCab::Tagger::parse(const char *str, size_t len)
MECAB_DLL_EXTERN double mecab_lattice_get_z(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::Z()
MECAB_DLL_EXTERN int mecab_get_partial(mecab_t *mecab)
C wrapper of MeCab::Tagger:set_partial()
MECAB_DLL_EXTERN int mecab_lattice_is_available(mecab_lattice_t *lattice)
C wrapper of MeCab::Lattice::is_available()
MECAB_DLL_EXTERN int mecab_cost_train(int argc, char **argv)
MECAB_DLL_EXTERN const char * mecab_strerror(mecab_t *mecab)
C wrapper of MeCab::getLastError()
MECAB_DLL_EXTERN int mecab_lattice_get_boundary_constraint(mecab_lattice_t *lattice, size_t pos)
C wrapper of MeCab::Lattice::boundary_constraint(pos)
MECAB_DLL_EXTERN const char * mecab_lattice_get_feature_constraint(mecab_lattice_t *lattice, size_t pos)
C wrapper of MeCab::Lattice::feature_constraint(pos)
MECAB_DLL_EXTERN const char * mecab_lattice_nbest_tostr2(mecab_lattice_t *lattice, size_t N, char *buf, size_t size)
C wrapper of MeCab::Lattice::enumNBestAsString(N, buf, size)
MECAB_DLL_EXTERN void mecab_lattice_remove_request_type(mecab_lattice_t *lattice, int request_type)
C wrapper of MeCab::Lattice::remove_request_type()
MECAB_DLL_EXTERN const char * getTaggerError()
An alias of getLastError.
MECAB_DLL_EXTERN void deleteLattice(Lattice *lattice)
delete Lattice object.
MECAB_DLL_EXTERN Model * createModel(int argc, char **argv)
Alias of Mode::create(argc, argv)
MECAB_DLL_EXTERN Tagger * createTagger(int argc, char **argv)
Alias of Tagger::create(argc, argv)
MECAB_DLL_EXTERN void deleteTagger(Tagger *tagger)
delete Tagger object.
MECAB_DLL_EXTERN void deleteModel(Model *model)
delete Model object.
MECAB_DLL_EXTERN Lattice * createLattice()
Alias of Lattice::create()
MECAB_DLL_EXTERN const char * getLastError()
Return last error string.
DictionaryInfo structure.
Definition mecab.h:15
int type
dictionary type this value should be MECAB_USR_DIC, MECAB_SYS_DIC, or MECAB_UNK_DIC.
Definition mecab.h:36
struct mecab_dictionary_info_t * next
pointer to the next dictionary info.
Definition mecab.h:56
unsigned int rsize
right attributes size
Definition mecab.h:46
const char * charset
character set of the dictionary.
Definition mecab.h:25
unsigned int lsize
left attributes size
Definition mecab.h:41
unsigned short version
version of this dictionary
Definition mecab.h:51
unsigned int size
How many words are registered in this dictionary.
Definition mecab.h:30
const char * filename
filename of dictionary On Windows, filename is stored in UTF-8 encoding
Definition mecab.h:20
Node structure.
Definition mecab.h:98
unsigned short length
length of the surface form.
Definition mecab.h:151
long cost
best accumulative cost from bos node to this node.
Definition mecab.h:215
struct mecab_node_t * enext
pointer to the node which ends at the same position.
Definition mecab.h:112
unsigned short rcAttr
right attribute id
Definition mecab.h:161
float alpha
forward accumulative log summation.
Definition mecab.h:193
unsigned char char_type
character type
Definition mecab.h:176
struct mecab_node_t * bnext
pointer to the node which starts at the same position.
Definition mecab.h:117
unsigned char isbest
set 1 if this node is best node.
Definition mecab.h:187
unsigned short rlength
length of the surface form including white space before the morph.
Definition mecab.h:156
float beta
backward accumulative log summation.
Definition mecab.h:199
const char * surface
surface string.
Definition mecab.h:136
unsigned char stat
status of this model.
Definition mecab.h:182
struct mecab_node_t * prev
pointer to the previous node.
Definition mecab.h:102
struct mecab_path_t * rpath
pointer to the right path.
Definition mecab.h:123
unsigned short lcAttr
left attribute id
Definition mecab.h:166
float prob
marginal probability.
Definition mecab.h:205
struct mecab_path_t * lpath
pointer to the right path.
Definition mecab.h:129
struct mecab_node_t * next
pointer to the next node.
Definition mecab.h:107
short wcost
word cost.
Definition mecab.h:210
const char * feature
feature string
Definition mecab.h:141
unsigned int id
unique node id
Definition mecab.h:146
unsigned short posid
unique part of speech id.
Definition mecab.h:171
Path structure.
Definition mecab.h:62
struct mecab_path_t * lnext
pointer to the next left path
Definition mecab.h:82
struct mecab_path_t * rnext
pointer to the next right path
Definition mecab.h:71
struct mecab_node_t * lnode
pointer to the left node
Definition mecab.h:76
int cost
local cost
Definition mecab.h:87
float prob
marginal probability
Definition mecab.h:92
struct mecab_node_t * rnode
pointer to the right node
Definition mecab.h:66