Mecab class

Class that represents a Mecab instance

Constructors

Mecab()

Properties

hashCode int
The hash code for this object.
no setterinherited
mecabPtr Pointer<Void>?
Pointer to the Mecab instance on the C side
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyFile(String dicdir, String assetDicDir, String fileName) Future<void>
Copies assetDicDir/fileName to dicdir/fileName if it does not already exist
destroy() → void
Frees the memory used by mecab and
init(String assetDicDir, bool includeFeatures, {String? dicDir}) Future<void>
Initializes this mecab instance, this method needs to be called before any other method. assetDicDir is the directory of the dictionary (ex. IpaDic) from where it should be loaded. If includeFeatures is set, the output of mecab includes the token-features. If dicDir is null the dictionary is copied to a folder called like the folder in the assets directory. This new folder is located inside the platforms documents directory. Otherwise, it is copied to dicDir.
initWithIpadicDir(String dicdir, bool includeFeatures) → void
Init this instance with ipadic without copying it
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(String input) List<TokenNode>
Parses the given text using mecab and returns mecab's output
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

platformVersion Future<String>
no setter