Comments (9)
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.
- Anaconda 2.7
- Tethne version 0.8
- pip was used for installation
Thanks for your prompt response!
from tethne.
@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.
@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.
I am using Ubuntu 14.04.4 LTS
Thanks!
from tethne.
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.
@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.
@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.
@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)
- direct_citation creates undirected graph with no node attributes HOT 11
- Possibility to ignore certain WoS-tags HOT 5
- value error importing metadata zotero RDF HOT 1
- Transform FeatureSet HOT 5
- DTM import error HOT 5
- Using Mallet file as corpus for the LDA model HOT 6
- ImportError: failed to find libmagic. Check your installation` HOT 1
- attachment_probability does not work in v0.8 HOT 8
- Error in reading all wos files in a folder HOT 2
- availability of topic coherence measure HOT 1
- Missing module HOT 2
- ImportError: cannot import name _iterable HOT 1
- Tethne Install Error setup.py egg_info HOT 3
- AttributeError: 'module' object has no attribute 'wos'
- KeyError: 'date' same error in generating co-author and co-citation graphs HOT 1
- 'module' object has no attribute 'wos' HOT 1
- Installation error HOT 4
- Documentation for 0.8 incorrectly specifies what's returned in a direct_citation graph
- authorKeywords and keywordsPlus are inversed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tethne.