Type Definitions
GenerationConfig
Properties:
Name | Type | Description |
---|---|---|
from |
string | The word to start generating from |
grams |
number | The sequence length to use. |
backward |
boolean | Whether to generate backward or not. |
A config object used to generate sentences.
Type:
- Object
MarkovChainJSON
Properties:
Name | Type | Description |
---|---|---|
corpus |
Array.<Array.<string>> | The corpus. |
dictionary |
Array.<string> | The dictionary. |
config |
GenerationConfig | The default config used for sentence generation. |
A JSON representation of a Markov chain object.
Type:
- Object
MarkovChainResolvable
Type:
- MarkovChainJSON | string