cfiltnlp / pyiwn

A Python based API to access Indian language WordNets.
http://www.cfilt.iitb.ac.in/
Creative Commons Attribution Share Alike 4.0 International
34 stars 19 forks source link

UnicodeDecodeError #17

Closed satishkrr closed 2 years ago

satishkrr commented 4 years ago

hi when i execute this code iwn = pyiwn.IndoWordNet()

im getting this error UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 16: character maps to

could you help out pls

thanks

sidhurukku commented 4 years ago

i am also facing the same issue. Can anyone please help to solve this?

ratul2016das commented 4 years ago

The iwn.py file needs to be modified..... I am able to do the modification locally and read the synsets

mannprerak2 commented 4 years ago

Modify the iwn.py file. At line 50, do => f = open(filename, encoding='uf8')

SandipSPatil commented 3 years ago

for the command iwn = pyiwn.IndoWordNet()

im getting this error UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 16: character maps to

could you help out pls

thanks

SandipSPatil commented 3 years ago

The iwn.py file needs to be modified..... I am able to do the modification locally and read the synsets

The iwn.py file needs to be modified..... I am able to do the modification locally and read the synsets

Sir, How you have resolved this issue locally....please help me for Marathi Language

Tawseef-Mir commented 3 years ago

The iwn.py file needs to be modified..... I am able to do the modification locally and read the synsets

can you please help me how to modify iwn.py as i'm facing the same issue for KASHMIRI language

riteshpanjwani commented 2 years ago

Hi, please install the latest version, clone the repo, cd into repo root and run python setup.py install