Releases: har07/PySastrawi
Releases · har07/PySastrawi
Release list
PySastrawi v1.2.1
v1.2.1 — Modernize & bugfix release
Bug fixes
- Fix list-mutation bug in
Context.restore_prefix()that silently skipped prefix removals during iteration - Fix shallow-reference bug in
Context.loop_pengembalian_akhiran()where saved state was never properly restored - Fix regex in
DisambiguatorPrefixRule16— literal pipe chars inside character class[g|h|q|k]→[ghqk] - Fix falsy check in
AbstractDisambiguatePrefixRule—if not resultnow correctly distinguishesNonefrom empty string - Remove duplicate regex in
InvalidAffixPairSpecification ArrayDictionary.add_words()now extends the dictionary instead of replacing it
Modernization
- Python 3.8+ required (
python_requires='>=3.8') - Removed all Python 2-isms:
class Xxx(object)→class Xxx,super(X, self)→super() - Cross-platform path handling in
StemmerFactory(now usesos.path.join) - Explicit
encoding='utf-8'on file reads - Fixed
re.sub()calls to use keyword arguments (compatible with Python 3.13+) - Cleaned up dead APC cache code
Testing
- 146 new tests (19 → 165 total)
- Tests added for: Context state machine, all visitors (particle/pronoun/suffix/prefix removal), all 40 disambiguator rules, TextNormalizer, ArrayCache, and CachedStemmer
- All deprecated
assertEqualscalls migrated toassertEqual - Test class names standardized
CI
- Migrated from Travis CI to GitHub Actions
- Test matrix: Python 3.8 through 3.12
PySastrawi v1.2.0
Changed list to dictionary in cache implementation to improve performance
PySastrawi v1.1.0
PyPi project page: https://pypi.org/project/PySastrawi/1.1.0/
Python Sastrawi v1.0.1
Fixed setup configurations. pip version of previous release was not usable. This is the first pip-installable release.
PyPi download page: https://pypi.python.org/pypi/Sastrawi/1.0.1
Python Sastrawi v1.0.0
Python port of the original PHP Sastrawi project v1.0.10 (the current latest version) :
- Refactored to follow Python naming convention for methods and variables
- Pass all test codes (except Disambiguator unit test codes which haven't been ported yet)