Skip to content

v0.3.7

Latest

Choose a tag to compare

@ysenarath ysenarath released this 19 Oct 01:52
· 1 commit to master since this release

pip install sinling==0.3.7

Fixes

  • Stemmer: the stem dictionary is now actually used. In 0.3.6 its entries were loaded with the wrong keys, so no lookup ever matched and only suffix stripping ran. Results from SinhalaStemmer.stem() may change for words in the dictionary.
  • Stemmer: a word that is itself a suffix (for example ට) is no longer stemmed to an empty string.
  • Packaging: the source distribution now includes packages.txt, so installing from source no longer fails with FileNotFoundError.

New

  • SinhalaStemmer(use_dictionary=False) turns off dictionary lookup and keeps the old suffix-stripping-only behaviour.

Upcoming breaking change

Sinling 0.4 will be a redesign with a new API and will not be backward compatible. The 0.3 API (SinhalaTokenizer, SinhalaStemmer, POSTagger, word_joiner, word_splitter, preprocess) will be removed. If you depend on it, pin sinling<0.4.