Increments the n-gram frequency. This will increment all of the important keys in the n-gram such as the words in question, lemma, etc.
the n-gram index to add
Adds a number to the key's value. If no number is given the default amount will be added to the value.
optional value to add
Reads a value from the index
the n-gram index to read. This may be a specific key, or the ngram object to read the default key.
Reads a value from the index. If the key does not exist the result will be 0.
Writes a value to the index
the n-gram index to write
Manually writes a value to the index
Generated using TypeDoc
An index of n-gram frequencies