A class for viewing BEAGLE models.
Methods
__init__(corpus, model) | Initialize BeagleViewer. |
dismat_word(word_list[, dist_fn]) | Calculates a distance matrix for a given list of words. |
dist_word_word(word_or_words[, weights, ...]) | Computes and sorts the distances between word(s) and every word. |
Initialize BeagleViewer.
Parameters: |
|
---|
Calculates a distance matrix for a given list of words.
Parameters: |
|
---|---|
Returns: | an instance of IndexedSymmArray. A n x n matrix containing floats where n is the number of words in word_list. |
See Also: | vsm.viewer.wrappers.dismat_word() |
Computes and sorts the distances between word(s) and every word.
Parameters: |
|
---|---|
Returns: | an instance of LabeledColumn. A 2-dim array containing words and their distances to word_or_words. |
See Also: | vsm.viewer.wrappers.dist_word_word() |