From 27621f9862fd7dedcb00a88937426a00077f416c Mon Sep 17 00:00:00 2001 From: Simran Kaur <68891126+SimranKaur-23@users.noreply.github.com> Date: Thu, 13 May 2021 20:44:53 +0530 Subject: [PATCH] Update Punjabi.py reverse function works on list and not dictionary keys. --- libindic/stemmer/Punjabi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libindic/stemmer/Punjabi.py b/libindic/stemmer/Punjabi.py index 40d3bb7..b3b6f89 100644 --- a/libindic/stemmer/Punjabi.py +++ b/libindic/stemmer/Punjabi.py @@ -23,7 +23,7 @@ def gen_replacement(self, suf, L): return suf def stem(self, text): - tag = self.suffixes.keys() + tag = [1,2,3,4,5] tag.reverse() dic_hi = {} for word in text.split():