Mecab class
Class that represents a Mecab instance
Constructors
- Mecab()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeFeatures ↔ bool
-
Whether to include token features in the output
latefinal
- libmecabPath ↔ String?
-
Path to the Mecab dynamic library used
latefinal
- mecabDictDirPath ↔ String
-
Path to the Mecab dictionary directory used
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transferableState → MecabTransferableState
-
no setter
Methods
-
destroy(
) → void - Frees the memory used by mecab and
-
fromTransferableState(
MecabTransferableState state) → Future< Mecab> -
init(
String? libmecabPath, String dictDir, bool includeFeatures) → Future< void> -
Initializes this mecab instance,
libmecabPathshould be the path to a mecab dynamic library Note: when using this package in Flutter, this parameter can be null, and the library will be loaded from the package's compiled mecab dynamic library.dictDirshould be a directory that contains a Mecab dictionary (ex. IpaDic) IfincludeFeaturesis set, the output of mecab includes the token-features. -
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