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

AttributeError: 'IndoWordNet' object has no attribute 'morph' #9

Closed VijayAshokGaikwad closed 2 years ago

VijayAshokGaikwad commented 5 years ago

I am trying to use Morphological Analyzer of IndoWordNet. I am trying it for Hindi and Marathi language.

First I executed following commands. from pyiwn import pyiwn pyiwn.download() iwn = pyiwn.IndoWordNet('hindi') iwn.all_words()

All commands ran successfully. But when I used iwn.morph('some word in hindi')

it shows following error . AttributeError: 'IndoWordNet' object has no attribute 'morph'

Can you please help.

manojbalaji1 commented 4 years ago

This is because morph is not present in the IndoWordNet class link: https://github.com/riteshpanjwani/pyiwn/blob/master/pyiwn/pyiwn.py

riteshpanjwani commented 2 years ago

@VijayAshokGaikwad Morphological Analyzer support is a little tricky to incorporate right now, I know it is mentioned in the GWC paper but that was not working as expected since that code is in Java and is available at https://www.cfilt.iitb.ac.in as a separate package, if you cannot download it, then, please email them. you can write a wrapper around that Java code to execute it in Python.