I am trying to evaluate the topic modeling(LDA). Getting a error while execting perplexity function as: Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘perplexity’ for signature ‘"LDA_Gibbs", "numeric"’ someone please help to solve this.
Getting an error while executing perplexity function to evaluate the LDA model
643 Views Asked by Sachin At
1
There are 1 best solutions below
Related Questions in TEXT
- Delete the extra space after special character in all the lines of text file
- Apply gaussian filter on text
- text show and hide with button php/js
- Get text from a section of a pdf page with IcePdf
- load word file (.docx) in richtextbox
- Display a specific line in a text file - android/java
- how to change text direction to the right slide of switch in android?
- C language - Read specific data from text file
- Read text file from specific position and store in two arrays
- How to animate text
- Detect repetition in text string / copied text
- Use MATLAB's webread to login to website and extract text
- LWJGL Drawing colored text to the screen issue
- Hide part of text temporarily, show after user clicks certain element
- Reading text file in java using scanner
Related Questions in LDA
- LDA generated topics
- Do I need to transform unseen documents before projecting them onto model topics?
- LDA with tm package in R using bigrams
- How to find the number of documents (and fraction) per topic using LDA?
- Fitting LDA to corpus in LDA-C format in gensim
- Manually Specifying a Topic Model in R
- LDA Results Errors
- Create hierarchical relations between a set of terms
- How to match ngrams for each document in Spark LDA code
- How can I perform LDA (latent Dirichlet allocation) on Noun Phrases in R instead of words?
- MALLET Topic Modeling: Inconsistent Estimations
- LDA cross validation and variable selection
- install package lda and pyprind
- What kind of LDA performs 'fitcdiscr' function?
- Mallet LDA ArrayIndexOutOfBoundsException while training the model
Related Questions in TOPIC-MODELING
- Gensim LDA - Default number of iterations
- LDA generated topics
- Topic or Tag suggestion algorithm
- How to find the number of documents (and fraction) per topic using LDA?
- Fitting LDA to corpus in LDA-C format in gensim
- LDA Results Errors
- Create hierarchical relations between a set of terms
- Text classification & topic modelling
- Latent Dirichlet Allocation on Sparse Matrix (
- How can I perform LDA (latent Dirichlet allocation) on Noun Phrases in R instead of words?
- MALLET Topic Modeling: Inconsistent Estimations
- Hierarchical LDA eats up all available memory and never finishes
- Mallet topic modelling issue when training with large number of topics
- Mallet LDA ArrayIndexOutOfBoundsException while training the model
- How are collaborative-filtering and topic-modeling different and how are they the same?
Related Questions in PERPLEXITY
- Can you use perplexity to guess the language of a document?
- How do I calculate sentence perplexity using torch-rb?
- How to get perplexity per token rather than average perplexity?
- Why am I randomly getting super high perplexities?
- Gensim perplexity score increases
- nltk calc perplexity of bigram/trigram
- Gensim lda gives negative log-perplexity value - is it normal and how can i interpret it?
- Large Language Model Perplexity
- Sk-learn LDA for topic extraction, perplexity and score
- Getting an error while executing perplexity function to evaluate the LDA model
- Where is perplexity calculated in the Huggingface gpt2 language model code?
- Latent Dirichlet Allocation Implementation with Gensim
- How do i measure perplexity scores on a LDA model made with the textmineR package in R?
- Elbow/knee in a curve in R
- Check perplexity of a Language Model
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
As you haven't provided any example of your code, it's difficult to know what your exact issue is. However, I found this question when I was facing the same error so I will provide the problem I faced and solution here in the hope that it may help someone else.
In the
topicmodelspackage, when fitting using Gibbs theperplexity()function requiresnewdatato be supplied in a document-term format. If you give it something else, you get this error. Going by your error message you were probably giving it somethingnumericinstead of a dtm.Here is a working example, using the newsgroups data from the
ldapackage converted to the dtm format: