MeCab
Classes | Typedefs | Functions
MeCab Namespace Reference

Classes

class  Allocator
 
class  Lattice
 Lattice class. More...
 
class  Model
 Model class. More...
 
class  Tagger
 Tagger class. More...
 

Typedefs

typedef struct mecab_dictionary_info_t DictionaryInfo
 
typedef struct mecab_path_t Path
 
typedef struct mecab_node_t Node
 

Functions

MECAB_DLL_EXTERN LatticecreateLattice ()
 Alias of Lattice::create() More...
 
MECAB_DLL_EXTERN ModelcreateModel (int argc, char **argv)
 Alias of Mode::create(argc, argv) More...
 
MECAB_DLL_EXTERN ModelcreateModel (const char *arg)
 Alias of Mode::create(arg) More...
 
MECAB_DLL_EXTERN TaggercreateTagger (int argc, char **argv)
 Alias of Tagger::create(argc, argv) More...
 
MECAB_DLL_EXTERN TaggercreateTagger (const char *arg)
 Alias of Tagger::create(arg) More...
 
MECAB_DLL_EXTERN void deleteLattice (Lattice *lattice)
 delete Lattice object. More...
 
MECAB_DLL_EXTERN void deleteModel (Model *model)
 delete Model object. More...
 
MECAB_DLL_EXTERN void deleteTagger (Tagger *tagger)
 delete Tagger object. More...
 
MECAB_DLL_EXTERN const char * getLastError ()
 Return last error string. More...
 
MECAB_DLL_EXTERN const char * getTaggerError ()
 An alias of getLastError. More...
 

Typedef Documentation

◆ DictionaryInfo

◆ Node

typedef struct mecab_node_t MeCab::Node

◆ Path

typedef struct mecab_path_t MeCab::Path

Function Documentation

◆ createLattice()

MECAB_DLL_EXTERN Lattice* MeCab::createLattice ( )

◆ createModel() [1/2]

MECAB_DLL_EXTERN Model* MeCab::createModel ( const char *  arg)

Alias of Mode::create(arg)

◆ createModel() [2/2]

MECAB_DLL_EXTERN Model* MeCab::createModel ( int  argc,
char **  argv 
)

Alias of Mode::create(argc, argv)

◆ createTagger() [1/2]

MECAB_DLL_EXTERN Tagger* MeCab::createTagger ( const char *  arg)

Alias of Tagger::create(arg)

◆ createTagger() [2/2]

MECAB_DLL_EXTERN Tagger* MeCab::createTagger ( int  argc,
char **  argv 
)

Alias of Tagger::create(argc, argv)

◆ deleteLattice()

MECAB_DLL_EXTERN void MeCab::deleteLattice ( Lattice lattice)

delete Lattice object.

This method calles "delete lattice". In some environment, e.g., MS-Windows, an object allocated inside a DLL must be deleted in the same DLL too.

Parameters
latticelattice object

◆ deleteModel()

MECAB_DLL_EXTERN void MeCab::deleteModel ( Model model)

delete Model object.

This method calles "delete model". In some environment, e.g., MS-Windows, an object allocated inside a DLL must be deleted in the same DLL too.

Parameters
modelmodel object

◆ deleteTagger()

MECAB_DLL_EXTERN void MeCab::deleteTagger ( Tagger tagger)

delete Tagger object.

This method calles "delete tagger". In some environment, e.g., MS-Windows, an object allocated inside a DLL must be deleted in the same DLL too.

Parameters
taggertagger object

◆ getLastError()

MECAB_DLL_EXTERN const char* MeCab::getLastError ( )

Return last error string.

Returns
error string

◆ getTaggerError()

MECAB_DLL_EXTERN const char* MeCab::getTaggerError ( )

An alias of getLastError.

It is kept for backward compatibility.

Returns
error string