0.3.3 - 2024-02-03
- Add
BoundaryConstraint::TOKEN_BOUNDARY
as a clearer name ofBoundaryConstraint::TOKEN
. - Add magic method
__debugInfo()
toNodeFactory
,NodeBase
,Lattice
andToken
and filter uninteresting details to avoid scattering or running out of memory for hidden recursions when dumping.
- Fix
Lattice->getFeatureConstraint()
.
0.3.2 - 2023-11-24
- Add
Lattice
instantiation withModel
.
- Fix PHP 8.3 deprecation notices regarding
FFI
. (php-src@4acf008) - Fix
Tagger
instantiation withModel
.
0.3.1 - 2022-12-10
- Fix
NodeWalker->toNode()
returning a new node for every call.
0.3.0 - 2022-03-19
- Add
Env->tagger()
,Env->model()
,Env->lattice()
. - Add class
NodeWalker
returned byNode->getWalker()
, which moves internal pointer when iterating, instead of instantiating a new node asNode
do. - Add
Util::fromCsv()
and::toCSV()
, which converts MeCab flavored CSV. - Support OPcache preloading.
- Add defaults to preloader generator's interactive prompt.
- Internal optimization.
Tagger->parseToNode()
tries to return the same node for the same underlying data.NodeIterator
uses underlying ID as its key instead of index.- The class
Util
is declared asfinal
. - Revert
Tagger
constructor default from'--'
to[]
. As the underlying callmecab_new2()
seems not that reliable. - Rename
Lattice->getBeginNodes()
toLattice->getBeginningNodes()
,Lattice->nextStart()
toLattice->nextBeginning()
for consistency.
- Fix
Lattice->getBosNode()
andLattice->getEosNode()
not working. - Fix some of issues when using
Lattice
.
0.2.2 - 2022-01-13
- Allow
null
as the default shlib name.
- Fix
Tagger
constructor with empty argument. - Fix returning value of
Node->features()
and type ofNode->prob()
.
0.2.1 - 2020-12-19
- Add
Node->features()
, which is a better alternative toNode->feature()
.
- Change
Node
magic getter not to throw but assert for invalid properties.
- Optimize for OPcache.
0.2.0 - 2020-12-15
- Rename
Node->wordCost()
toNode->wCost()
.
0.1.1 - 2020-12-13
- Add preloader.
- Fix null character test.
- Fix to return stable instance on traversing
Node
.
0.1.0 - 2020-12-16
- Initial release.