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

Bug Report #2

@riyadhrazzaq

Description

@riyadhrazzaq

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions