Giter VIP home page Giter VIP logo

Comments (9)

erickpeirson avatar erickpeirson commented on August 11, 2024

Hey @kevinbsc thanks for the bug report. Can you provide the following, so that we can figure out what's going on:

  • What version of Python?
  • What version of tethne? (pip show tethne)
  • How did you install tethne? (e.g. pip?)

Thanks!

from tethne.

kevinbsc avatar kevinbsc commented on August 11, 2024
  • Anaconda 2.7
  • Tethne version 0.8
  • pip was used for installation

Thanks for your prompt response!

from tethne.

erickpeirson avatar erickpeirson commented on August 11, 2024

@kevinbsc Thanks, that helps. Looks like tethne is having trouble finding MALLET. We should take a look at how the path provided to subprocess is generated, there must be something platform-specific going on there. This will be TETHNE-129.

from tethne.

erickpeirson avatar erickpeirson commented on August 11, 2024

@kevinbsc What version of Ubuntu? I have made several tweaks, any of which might help, but I'd feel a lot better if I could replicate the problem. I'll spin up a vbox and try to mimic your setup, and see what happens.

Our CI service (Travis) actually builds on Ubuntu 12.04, which makes me worry that is a bit more complicated. But I'll keep poking at it.

from tethne.

kevinbsc avatar kevinbsc commented on August 11, 2024

I am using Ubuntu 14.04.4 LTS

Thanks!

from tethne.

erickpeirson avatar erickpeirson commented on August 11, 2024

Ok, setting up the box this morning. In the meantime: It's not documented yet, but LDAModel lets you override quite a few parameters on initialization. Try initializing LDAModel with mallet_bin, which should be the full path to the MALLET executable. For example, on my system:

>>> model = LDAModel(corpus, featureset_name='wordcounts_uberfiltered', 
                             mallet_bin='/Users/erickpeirson/mallet-2.0.7/bin/mallet')

I'd be curious to know if you get the same errors if you specify mallet_bin explicitly.

from tethne.

erickpeirson avatar erickpeirson commented on August 11, 2024

@kevinbsc I have been working under the (undersupported) theory that the 127 was due to Tethne not finding MALLET. But there's a good chance it's due to an inability to find Java. On a fresh base Ubuntu 14.04 Java is not installed, and attempting to use LDAModel raises the same 127 exit code.

What happens when you try to run Java from the command line?

from tethne.

kevinbsc avatar kevinbsc commented on August 11, 2024

@erickpeirson I installed Mallet in Ubuntu.

git clone https://github.com/mimno/Mallet.git
ant

This resolved the issue. Thanks for your help.

from tethne.

erickpeirson avatar erickpeirson commented on August 11, 2024

@kevinbsc Fantastic! We should really fix the exceptions in that module so that they are more informative.

By the way, I just set up a Google Q/A group for Tethne users: (https://groups.google.com/forum/#!forum/tethne-users). If you're willing, it would be great to have your participation in getting it rolling. There are quite a few people who are new to Python and attempting to use Tethne, and I'm hoping this can be a resource (especially since I'm so slow at updating documentation).

from tethne.

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.