Questions tagged [lda]

Latent Dirichlet Allocation (LDA) is an algorithm in the field of topic modeling.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

number of topics in LDA model (coherence)

I want to fit a LDA model using RStudio, but there are some trouble in the determination of topics number. Perplexity and coherence are suggested to do this work, so first I use LDA and perplexity ...
杨昊天's user avatar
0 votes
0 answers
6 views

Is colorring each document and word as monochromatic as possible the goal of LDA in specific or all topic models in general?

In the video Training Latent Dirichlet Allocation: Gibbs Sampling, the Goal section at 7:32, the video says that: Goal: Color each word with blue, green, red Each article is as monochromatic as ...
Ooker's user avatar
  • 101
0 votes
0 answers
36 views

Doing LDA (NLP task): Does it make sense to use tf-idf vectors?

Most implementations that I've seen of LDA seem to use simple word counts when giving the document-term frequency matrix. What would happen if we were to give the tf-idf matrix instead of a simple ...
An old man in the sea.'s user avatar
0 votes
0 answers
20 views

How the embedding model (x-vectors) trained?

I read this paper: X-Vectors: Robust DNN Embeddings for Speaker Recognition which describes how PyAnnote embedding block works. I'm not sure I understand how the X-Vector model was trained and tested: ...
user3668129's user avatar
0 votes
0 answers
21 views

LDA calculations manually

my question: has anyone ever done LDA calculations manually? I have difficulty in manual calculation. can someone help me to teach me for lda calculations manually.
Hani's user avatar
  • 1
0 votes
0 answers
20 views

Algorithm of lda2vec in NLP

I was going through lda2vec and was confused on some of the concepts.It is a combination of LDA and word2vec.Word2vec is used to learn dense word vectors and LDA is used to learn the probability ...
Alex's user avatar
  • 1
1 vote
0 answers
171 views

Short Text Topic Modelling in Python

I have a large dataset of short reviews and I would like to find the most recurring themes. For this reason, I got into topic modeling. I am looking for some good tutorials and references for short ...
Alberto De Benedittis's user avatar
0 votes
1 answer
16 views

method of allocating documents to pre-defined classifications

I'm looking for a method of allocating documents (30K and growing) to a set of some 200 categories. The categories will be user defined and will grow over time. As my data is unlabelled my thought ...
Brett Sutton's user avatar
0 votes
0 answers
9 views

Get top documents per topic from mallet lda

I'm using java mallet's LDA engine to determine topics for a set of (some 30K) documents. I've managed to train the model and serialize/deserialize it as needed. The question is how do I find the top '...
Brett Sutton's user avatar
1 vote
2 answers
44 views

Topic Modeling - n-grams or 1,2,3,...n-grams?

Do people use n-grams or 1,2,3,...n-grams in both matrix factorisation and generative models in Topic Modeling? I've been trying to understand the basics of Topic Modeling and came to know that there ...
rahuladwani's user avatar
0 votes
1 answer
154 views

Lost human names after 'Lemmatization' for topic modeling in python

I'm using gensim in Python for topic modeling. Currently, I have one problem. If I don't lemmatize, human names will appear as 'Most Relevant Terms for Topic,' but after lemmatization, the human names ...
SEan1820's user avatar
1 vote
1 answer
83 views

document similarity using LDA probabilities

Let us say I have a LDA model trained on a corpus of text. I would like to know, for a newly given document, which one from the corpus is closet to it. But, to do so, I want to use probabilities ...
aRedDish's user avatar
0 votes
0 answers
146 views

List of words cluster by topics

I have a list of words, these words correspond to labels in news and they are not duplicated. I would like to get a clustering for this list based on topics. I try with wordnet but I don't know how ...
mathprogram's user avatar
1 vote
1 answer
237 views

reuse of LDA model for new data

I am working with the LDA (Latent Dirichlet Allocation) model from sklearn and I have a question about reusing the model I have. After training my model with data how do I use it to make a prediction ...
El Pandario's user avatar
0 votes
0 answers
43 views

Are the word of women and men different when expressing their views on the same subject?

My data includes women's comments on X and Y and men's comments on X and Y. Each comment is of equal length. I will calculate how much different the word choice between men and women when commenting ...
nem0's user avatar
  • 9
1 vote
1 answer
2k views

Topic Modelling in an existing dataframe in python

I am trying to perform topic extraction in a panda dataframe. I am using LDA topic modeling in order to extract the topics in my dataframe. No problem. But, I would like to apply LDA topic modeling ...
Aliya Leigh's user avatar
2 votes
2 answers
746 views

Topic Modeling: LDA vs LSA vs ToPMine

I am new to Topic Modeling. Is it possible to implement ToPMine in Python? In a quick search, I can't seem to find any Python package with ToPMine. Is ToPMine better than LDA and LSA? I am aware ...
Peter's user avatar
  • 179
1 vote
0 answers
21 views

Two sets of topics/words in Topic Modeling

In short, the question is: I have two sets of words per document. I would like to extract two sets of topics per document corresponding to sets of words. To be more precise: Document(d) can be ...
aloskam's user avatar
  • 11
1 vote
1 answer
77 views

Latent Dirichlet Allocation (LDA) importance of document generation and Gibbs Sampling

I am having trouble finding the correlation between the two seemingly uncorrelated parts of LDA. What I understood from several videos is: There is a document generation "part", which is ...
Arik's user avatar
  • 23
1 vote
1 answer
84 views

Choice of the number of topics (clusters) in textual data

I have a social science background and I'm doing a text mining project. I'm looking for advice about the choice of the number of topics/clusters when analyzing textual data. In particular, I'm ...
Himan's user avatar
  • 11
3 votes
1 answer
163 views

How to generate synthetic text for LDA?

I am wanting to play around with LDA topic modelling, namely looking at the effects of document length, topic number etc all have on accuracy (I know it has been done elsewhere, but no one seems to ...
user5067291's user avatar
1 vote
1 answer
327 views

In scikit-learn's LDA implementation, how can I sort the topics by frequency over the entire corpus?

I've used scikit-learn to perform LDA topic modeling, and I'd ultimately like to sort the topics by saliency/frequency over the entire corpus, but I'm unsure how to do as such. I've used pyldavis ...
Basht0n's user avatar
  • 113
1 vote
1 answer
87 views

What does "intractable" mean for this function in latent Dirichlet allocation (LDA)?

In the original paper Latent Dirichlet Allocation, the authors said that the function $$p(\mathbf{w} \mid \alpha, \beta)=\frac{\Gamma\left(\sum_{i} \alpha_{i}\right)}{\prod_{i} \Gamma\left(\alpha_{i}\...
Akira's user avatar
  • 175
0 votes
0 answers
35 views

LSA Model Improvement

I followed gensim's Core Tutorial and build an LSA Classification, topic modeling and Document Similarity model for newsgroups dataset. My code is available here. I need help with below 3 concepts. ...
Bala's user avatar
  • 1
2 votes
0 answers
78 views

What hyperparameter values does the LDA mallet model use by default? Is it true that the formula to calculate alpha = 5.0/n(topics)?

I am trying to figure out the default $\alpha$ & $\eta$ values used by mallet LDA, but there is not a lot of information on this. I did find a couple of answers, with no proper references, saying ...
SAMUEL DURAIVEL's user avatar
1 vote
0 answers
30 views

Modeling of topics orthogonal to a given patterns

How to force the topics to be different from the defined ones? Suppose I have a collection of texts about cats and dogs.There should naturally be two topics: one about dogs and one about cats. But I'm ...
mc2's user avatar
  • 111
2 votes
0 answers
41 views

Evaluate Topic Modelling on synthetic data

I try to find the optimal number of topics on a synthetic corpus (so a list of lists of tokens I generate using various parameters). I, therefore, know the true number of topics and the true topics ...
seaslug95's user avatar
5 votes
1 answer
986 views

Calculating optimal number of topics for topic modeling (LDA)

am going to do topic modeling via LDA. I run my commands to see the optimal number of topics. The output was as follows: It is a bit different from any other plots that I have ever seen. Do you think ...
Tahereh Maghsoudi's user avatar
1 vote
1 answer
290 views

What does updated alpha mean in LDA model?

I'm trying to understand LDA model by reading through implementations of the algorithm. Many implementations update alpha during training iterations with codes like: ...
user115919's user avatar
1 vote
0 answers
80 views

Best measure to indicate quality of LDA model

On my corpora, I am running LDA with different settings (I experiment with different number of topics, different different ngrams and TFIDF or regular BOW). Now, I want to rank these setups to select ...
Emil's user avatar
  • 179
1 vote
0 answers
51 views

Self-supervised learning for automatic labeling of data using LDA and Word2Vec

I am trying to implement this paper A Brand-New Look at You: Predicting Brand Personality in Social Media Networks with Machine Learning for labeling Twitter data of brands with a corresponding brand ...
yudhiesh's user avatar
  • 213
0 votes
1 answer
353 views

Topic modelling with many synonyms - how to extract 'latent themes'

Here's my corpus ...
Ben's user avatar
  • 141
0 votes
1 answer
38 views

Which algorithm should I choose and why?

My friend was reading a textbook and had this question: Suppose that you observe $(X_1,Y_1),...,(X_{100}Y_{100})$, which you assume to be i.i.d. copies of a random pair $(X,Y)$ taking values in $\...
Slim Shady's user avatar
2 votes
0 answers
13 views

Keep retweets during topic-modelling [duplicate]

I got a dataset made out of tweets and I need to classify them into topics. For topic modelling with LDA I have cleaned out the dataset (removing stopwords, mentions, symbols, etc). Do I need to ...
Placido Pellegriti's user avatar
2 votes
1 answer
80 views

Tweet Classification into topics- What to do with data

Good evening, First of all, I want to apologize if the title is misleading. I have a dataset made of around 60000 tweets, their date and time as well as the username. I need to classify them into ...
Placido Pellegriti's user avatar
1 vote
1 answer
56 views

Are LDA clusters identical across different runs?

for a given corpus are the Latent Dirichlet Allocation clusters for it is unique in general? How about the gensim multi-process implementation of LDA? are there ...
Marzi Heidari's user avatar
2 votes
0 answers
76 views

What is the objective function that Latent Dirichlet Allocation (LDA) minimizes? [closed]

Latent Dirichlet Allocation (LDA) is a generative model which produces a list of topics. Each topic is represented by a distribution over words. Questions: What is the objective function that it ...
MAC's user avatar
  • 277
1 vote
0 answers
43 views

Text Analysis : Recommendation to identify cause of loss from claim narrative documents

I am trying to analyze auto claims narrative documents which contain description about the accident usually free text written by claims executives. Is there a nlp technique I could use to identify ...
SVK's user avatar
  • 281
0 votes
1 answer
43 views

Which tool is good to collect tweets on 50 keywords over the last 5 years and then analyze them with the LDA algorithm or sentiment analysis?

I want to find tweets from the last 5 years to a topic. For this I decide for 50 Keywords (related to the main topic), where I want to find data on Twitter. I want to find out how the trend on the ...
Loretta's user avatar
  • 27
2 votes
1 answer
45 views

Dealing with high dimensionality datasets

I have data of dimensionality (25000, 100, 500) i.e. 25000 rows each consisting of a 2 dimensional 100 X 500 matrix. Currently I am only applying CNN for ...
user75252's user avatar
1 vote
1 answer
3k views

TF-IDF for Topic Modeling

Can TF-IDF be used a sole method for Topic Modeling ? (I know there are better methods like LDA , LSA etc) I just want to understand if TF-IDF alone can help us in Topic modeling . If yes , can ...
Bharathi's user avatar
  • 277
5 votes
1 answer
2k views

How to choose threshold for gensim Phrases when generating bigrams?

I'm generating bigrams with from gensim.models.phrases, which I'll use downstream with TF-IDF and/or gensim.LDA ...
lefnire's user avatar
  • 151
2 votes
3 answers
227 views

How to identify text similarity based on training data?

I have a set of documents (1 to 11) for which the labeling is done. Lets Assume: ...
Shivam Agrawal's user avatar
1 vote
1 answer
153 views

K-means and LDA for text classification

I hope to explain in a clear way what I would like to do. I have more than 50000 tweets and I would like to add some labels on topics. So I have used LDA for doing this. I have also used k-means to ...
Math's user avatar
  • 151
0 votes
2 answers
562 views

k-means and LDA for text classification: how to test accuracy?

I have many tweets that I would like classify based on their similarity. Unfortunately I am not quite familiar with text-classification and nlp, so I had to read a lot of documents before having an ...
Math's user avatar
  • 151
1 vote
1 answer
393 views

Intuition of LDA

Can anyone explain how the LDA-topic model assigns words to topics? I understand the generative property of the LDA model but how does the model recognize that "Labrador" and "dog" are similar words/ ...
user6322383's user avatar
1 vote
1 answer
121 views

Topic alignment / topic modelling

What is the most efficient method for detecting whether the article is mostly about a specific topic, but without lots of data for training? My task is to determine how much a document is e.g. about ...
piernik's user avatar
  • 51
1 vote
0 answers
111 views

Trying to use term document matrix as input to orange 3

I have a CSV file that has tokens as columns and documents as rows, where the rest of the cells are ints that represent term frequency. I'm trying to use this as input into Orange 3, but Orange 3 ...
John Doe's user avatar
1 vote
2 answers
467 views

Meaning of axes in Linear Discrimination Analysis

Looking at the LDA of the Iris Dataset, which looks like this: It's understandable that the 3 types of flowers have succesfuly been seperated into categories, with versicolor and virginica slightly ...
Robert Pajor's user avatar
1 vote
0 answers
110 views

How effective would this pseudo-LDA2Vec implementation be?

For my site I'm working on a chat recommender that would recommend chats to users. Each chat has a title and description and my corpus is composed of many of these title and description documents. I ...
Wasiim Ouro-sama's user avatar