Description Usage Arguments Value
Gets the weight (or count) of a given n-gram in a trained PPM moel.
1 2 3 4 5 6 7 8 | get_weight(
model,
n_gram,
pos = 1L,
time = 0,
update_excluded = FALSE,
zero_indexed = FALSE
)
|
model |
A PPM model object as produced by (for example)
|
n_gram |
An integerish vector defining the n-gram to be queried. |
pos |
(Integerish scalar) The nominal 'position' at which the n-gram is retrieved (only relevant for decay-based models). |
time |
(Numeric scalar) The nominal 'time' at which the n-gram is retrieved (only relevant for decay-based models). |
update_excluded |
(Logical scalar) Whether to retrieve update-excluded counts or not. |
zero_indexed |
(Logical scalar) Whether the input n-gram is zero-indexed. |
A numeric scalar identifying the weight of the n-gram.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.