public class LdaModel extends Object
| Modifier and Type | Field and Description |
|---|---|
int[] |
tokensPerTopic |
int[] |
topicCounts |
List<Frequency>[] |
topicWordCounts |
int[] |
vocabularyCounts |
int[][] |
wordTopicCounts |
| Constructor and Description |
|---|
LdaModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
createTopicSummary(int length) |
double |
entropy(int[] counts) |
String |
getTopicSummary(int topicIndex) |
void |
initialize(List<String> words) |
LdaModel |
makeCopy() |
void |
sortTopicWords() |
double |
sumDocSortSmoothing() |
List<com.github.chen0040.data.utils.TupleTwo<String,Integer>> |
topicWords(int selectedTopicIndex,
int length) |
List<com.github.chen0040.data.text.VocabularyTableCell> |
vocabularyTable(int maxSize) |
int |
wordCount() |
public int[][] wordTopicCounts
public int[] vocabularyCounts
public int[] tokensPerTopic
public int[] topicCounts
public LdaModel makeCopy()
public List<com.github.chen0040.data.utils.TupleTwo<String,Integer>> topicWords(int selectedTopicIndex, int length)
public double sumDocSortSmoothing()
public int wordCount()
public void sortTopicWords()
public double entropy(int[] counts)
public List<com.github.chen0040.data.text.VocabularyTableCell> vocabularyTable(int maxSize)
public void createTopicSummary(int length)
public String getTopicSummary(int topicIndex)
Copyright © 2017. All rights reserved.