-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The code for Bengali to Banglish Example provided in the readme:
# coding=utf-8
from bnbphoneticparser import BengaliToBanglish
bengali2banglish = BengaliToBanglish()
bengali_text = "আমি বাংলাদেশি"
print(bengali2banglish.parse(bengali_text.strip()))fails with the following error:
File "../bnbphoneticparser/bnbphoneticparser/bengalitobanglish.py", line 44, in __change_sworborno
asx += self.kar_reverse_map[_ch]
~~~~~~~~~~~~~~~~~~~~^^^^^
KeyError: 'i'
The problem persists for different strings.
The tests run by:
pytest tests/bengalitobanglish.pyalso fail with similar KeyError
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels