sagorbrur / bnlp

BNLP is a natural language processing toolkit for Bengali Language.

Home Page:https://pypi.org/project/bnlp-toolkit/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: BasicTokenizer() takes no arguments

dipongkor opened this issue · comments

Following example throws error

from bnlp.bengali_pos import BN_CRF_POS
bn_pos = BN_CRF_POS()
model_path = "model/bn_pos_model.pkl"
text = "আমি ভাত খাই।"
res = bn_pos.pos_tag(model_path, text)
print(res)
# [('আমি', 'PPR'), ('ভাত', 'NC'), ('খাই', 'VM'), ('।', 'PU')]

Hi @dipongkor

thank you. your commit merged.
keep contributing.
regards
Sagor