Git Product home page Git Product logo

Comments (7)

jwijffels avatar jwijffels commented on May 30, 2024

Try a bit more :) on installing pattern in python. https://www.clips.uantwerpen.be/pattern

from pattern.nlp.

frederatic avatar frederatic commented on May 30, 2024

Only problem I can see from that page is that I installed both pattern 2.6 and 3.6 using setup.py install since pip install gave errors.
I tried their examples in python 2.7 (pattern 2.6), python 3.6 (pattern 3.6) and your package in R.studio: all gave the same results matching their output.
For your example, it gives 0.00 in both python 2.7 and R, but (-0.2, 0.4) in python 3.6. I have no idea how this can happen, so can you help me out? I have to make sure the sentiment analysis is as accurate as possible once I apply it to a large data set.

from pattern.nlp.

frederatic avatar frederatic commented on May 30, 2024

Their example: "Een onwijs spannend goed boek!"
Your example: "We waren bijna bij de kooien toen er van boven een hoeragejuich losbrak alsof Rudi Vuller door Koeman in z'n kloten was geschopt."

from pattern.nlp.

jwijffels avatar jwijffels commented on May 30, 2024

I don't understand your problem. It seems to be working? This R package executes py <- findpython::can_find_python_cmd(required_modules = "pattern.db") at startup of the package to connect to pattern. If it finds that one it will use it. What does that command give for your computer.

from pattern.nlp.

frederatic avatar frederatic commented on May 30, 2024

Yes, it works, but the dutch example in your Read.me outputs different results for me (see above), so that worries me it won't be accurate on other sentences.

from pattern.nlp.

jwijffels avatar jwijffels commented on May 30, 2024

Why don't you just remove either the python2 or python3 pattern module, whichever you don't like.

from pattern.nlp.

frederatic avatar frederatic commented on May 30, 2024

Tried, did not change any results. It works fine on other sentences, so I think that specific example is just an outlier. Can you try the examples posted above (both in python and R) and send me your output just to make sure?

from pattern.nlp.

Related Issues (13)

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.