Mecab class
Class that represents a Mecab instance
Constructors
- Mecab()
Properties
Methods
-
copyFile(
String dicdir, String assetDicDir, String fileName) → Future< void> -
Copies
assetDicDir/fileName
todicdir/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. IfincludeFeatures
is set, the output of mecab includes the token-features. IfdicDir
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 todicDir
. -
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