Skip to content

Releases: har07/PySastrawi

PySastrawi v1.2.1

Choose a tag to compare

@har07 har07 released this 21 May 06:30

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 AbstractDisambiguatePrefixRuleif not result now correctly distinguishes None from 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 uses os.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 assertEquals calls migrated to assertEqual
  • Test class names standardized

CI

  • Migrated from Travis CI to GitHub Actions
  • Test matrix: Python 3.8 through 3.12

PySastrawi v1.2.0

Choose a tag to compare

@har07 har07 released this 24 Sep 01:50

Changed list to dictionary in cache implementation to improve performance

PySastrawi v1.1.0

Choose a tag to compare

@har07 har07 released this 24 Apr 10:35

Python Sastrawi v1.0.1

Pre-release

Choose a tag to compare

@har07 har07 released this 18 Jan 13:13

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

Pre-release

Choose a tag to compare

@har07 har07 released this 15 Jan 03:00

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)