Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Bug Report #2

Open
riyadhrazzaq opened this issue Jan 24, 2020 · 1 comment
Open

Bug Report #2

riyadhrazzaq opened this issue Jan 24, 2020 · 1 comment
Labels

Comments

@riyadhrazzaq
Copy link

Describe the bug
Throws this error while stemming some words.

/usr/local/lib/python3.6/dist-packages/py_bangla_stemmer/stemmer/rule_file_parser.py in stem_of_word(self, word)
     75                         while k < indx + len(replace_suffix):
     76                             if replace_suffix[_l] != '.':
---> 77                                 builder[k] = replace_suffix[_l]
     78                             k += 1
     79                             _l += 1

IndexError: list assignment index out of range

To Reproduce

stemmer.stem("গেলেও")
stemmer.stem("মেনে")
stemmer.stem("হিসেবে")

Expected behaviour
stemmer.stem("গেলেও") = গেল
stemmer.stem("মেনে") = মেনে
stemmer.stem("হিসেবে") = হিসেব

Desktop (please complete the following information):

  • Google Colab
@aniruddha-adhikary
Copy link
Contributor

Thanks @riyadhrazzaq ! Looking into it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants