Giter VIP home page Giter VIP logo

Comments (9)

anoopkunchukuttan avatar anoopkunchukuttan commented on September 13, 2024

Which language are you using the unsupervised morph for?

from indic_nlp_library.

ashnamp avatar ashnamp commented on September 13, 2024

python3.5

from indic_nlp_library.

anoopkunchukuttan avatar anoopkunchukuttan commented on September 13, 2024

I haven't tested on python 3.5, but my question was regarding which language's morph analyzer (Hindi, Malayalam, etc.) were you trying to use?

from indic_nlp_library.

ashnamp avatar ashnamp commented on September 13, 2024

Malayalam

from indic_nlp_library.

anoopkunchukuttan avatar anoopkunchukuttan commented on September 13, 2024

I checked Python2.7, the code works fine. On Python 3.5 I was able to reproduce the same error you mention. I will have to check what need to be done to support Python 3.5. As of now, the library has been test for Python 2 versions only.

from indic_nlp_library.

anoopkunchukuttan avatar anoopkunchukuttan commented on September 13, 2024

I happened to fix another bug while debugging this one. So pull the latest checkin for the fix

from indic_nlp_library.

arcturusannamalai avatar arcturusannamalai commented on September 13, 2024

In Python3 generators need to be forced to list via 'list()' call before you may index it. This may just work.

from indic_nlp_library.

erzaliator avatar erzaliator commented on September 13, 2024

Anyone interested in running the code in python 3 can check out this forked repo: https://github.com/erzaliator/indic_nlp_library/.
Do note that this won't run for python 2.

Basically, py 3 treats each string as unicode so, there's no need to declare a string as unicode explicitly (eg- str1= ur'hello' changes to str1=r'hello'). Plus, unichar has been discontinued to be replaced with chr.

from indic_nlp_library.

arcturusannamalai avatar arcturusannamalai commented on September 13, 2024

@erzaliator - can you use a library like 'six' to make it straddle the 2-3 divide ? That way you could even recommit code back to this project.

from indic_nlp_library.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.