Questions tagged [mallet]

MALLET is a Java-based package for statistical natural language processing, document classification, clustering, topic modeling, information extraction, and other machine learning applications to text.

From Mallet's website:

MALLET includes sophisticated tools for document classification: efficient routines for converting text to "features", a wide variety of algorithms (including Naïve Bayes, Maximum Entropy, and Decision Trees), and code for evaluating classifier performance using several commonly used metrics.

In addition to classification, MALLET includes tools for sequence tagging for applications such as named-entity extraction from text. Algorithms include Hidden Markov Models, Maximum Entropy Markov Models, and Conditional Random Fields. These methods are implemented in an extensible system for finite state transducers.

In addition to sophisticated Machine Learning applications, MALLET includes routines for transforming text documents into numerical representations that can then be processed efficiently. This process is implemented through a flexible system of "pipes", which handle distinct tasks such as tokenizing strings, removing stopwords, and converting sequences into count vectors.

321 questions
2
votes
1 answer

MALLET Get Most influential Features from Document Classifier

I've built a document classification classifier by following the MALLET example here http://mallet.cs.umass.edu/classifier-devel.php What I'd like to do next is get the most influential features for each class. I'm sure this is something simple but…
user2962197
  • 218
  • 2
  • 12
2
votes
2 answers

Mallet topic model - inconsistent results with serialized file

I train a topic model with Mallet, and I want to serialize it for later use. I ran it on two test documents, and then deserialized it and ran the loaded model on the same documents, and the results were completely different. Is there anything wrong…
user616254
  • 133
  • 1
  • 1
  • 4
2
votes
1 answer

How to catch exception from external jar in Java

I'm try to run LDA algorithm using mallet library. When I try to run LDA with a set of parameters it's OK but with another set I have this error: 09-Oct-2014 23:50:24.354 INFO [http-nio-8084-exec-127] cc.mallet.topics.ParallelTopicModel.estimate…
Jimmysnn
  • 583
  • 4
  • 8
  • 30
2
votes
1 answer

How to report precision and recall scores using Mallet command line prompt?

I'm using MaxEnt classifier from Mallet for text classification. Mallet provides the ability to report the accuracy and F1 scores using the command line prompt. Is there a way to report precision and recall scores using the command line prompt?
Stan
  • 1,042
  • 2
  • 13
  • 29
2
votes
2 answers

Folding in (estimating topics for new documents) in LDA using Mallet in Java

I'm using Mallet through Java, and I can't work out how to evaluate new documents against an existing topic model which I have trained. My initial code to generate my model is very similar to that in the Mallett Developers Guide for Topic Modelling,…
Ina
  • 4,400
  • 6
  • 30
  • 44
2
votes
1 answer

Mallet Trained Model Load

Has anyone had any luck with loading a previously trained Model? Looking through its API, the CRFWriter class is 1/2 of the puzzle, but how exactly do you CRFRead(class doesn't exist) Thanks for the help.
user1467196
  • 43
  • 1
  • 5
1
vote
1 answer

output-topic-docs gives empty .txt file in Mallet

I want to run a model in Mallet and need the topic-docs output, which gives the most prominent documents for each topic. This is necessary for interpreting the less clear topics correctly. But Mallet keeps on giving me empty txt files. This is the…
Maarten D.
  • 11
  • 2
1
vote
0 answers

Need advice for Visualization of LdaMallet model

I used a tutorial for analyzing a bigger corpus of academic articles, and ended up with LdaMallet model. ldamallet = gensim.models.wrappers.LdaMallet(mallet_path, corpus=corpus, num_topics=10, id2word=id2word) I visualized it with pyLDAvis, which…
Bloxx
  • 1,495
  • 1
  • 9
  • 21
1
vote
1 answer

Accessing MALLET's diagnostics file via Gensim

Is there a way to access MALLET's diagnostics file or its content by using the provided API via Gensim in Python?
1
vote
1 answer

How does the number of Gibbs sampling iterations impacts Latent Dirichlet Allocation?

The documentation of MALLET mentions following: --num-iterations [NUMBER] The number of sampling iterations should be a trade off between the time taken to complete sampling and the quality of the topic model. MALLET provides furthermore an…
J.Schneider
  • 384
  • 3
  • 12
1
vote
1 answer

Which hyperparameter optimization technique is used in Mallet for LDA?

I am wondering which technique is used to learn the Dirichlet priors in Mallet's LDA implementation. Chapter 2 of Hanna Wallach's Ph.D. thesis gives a great overview and a valuable evaluation of existing and new techniques to learn the Dirichlet…
J.Schneider
  • 384
  • 3
  • 12
1
vote
1 answer

Distribution of topics over time with LDA

My goal is to identify topics of tweets and visualize how the distribution of topics changed over time. As far as I know, the best way to do it is with the stm package but I have some problems with it. So, my only option is to do a simple LDA. Based…
Olyalya
  • 11
  • 1
1
vote
1 answer

Recommended number of words in Mallet

I am attempting to model topcis using Mallet. I have repeatedly seen statements in blog posts and research papers recommending to limit the number of words per document - in most cases around 1000 words. The fact that LDA requires a minimum number…
Glorifier
  • 31
  • 1
1
vote
1 answer

Running MALLET on Windows; could not find or load main class cc.mallet.classify.tui.Text2Vectors

I'm trying to get MALLET running on a 64-bit Windows 10 Enterprise machine from the native command prompt (cmd.exe). (I tried doing everything with Git Bash, but got stuck even earlier in the process.) What I've done: Installed JDK 8u281 for 64-bit…
Brian Croxall
  • 249
  • 2
  • 8
1
vote
1 answer

Can we resume training on MALLET model?

I have the -output-model set up. Can we resume the iteration of the Gibbs sampling using that "snapshot"?
Agung Dewandaru
  • 198
  • 1
  • 7