Class |
RiMarkov |
||
---|---|---|---|
Name |
probability |
||
Description | Returns either the raw (unigram) probability for a single token in the model (0 if it does not exist) OR (for an array) the probability of obtaining a sequence of k tokens where k <= nFactor , e.g., if nFactor = 3, then valid lengths for the data array are 1, 2 & 3. |
||
Example |
rm = new RiMarkov(3); |
||
Parameters |
|
||
Returns |
|
||
Syntax |
probability(dataString); |
||
Platform | Java / JavaScript | ||