Markov chains appear to be training correctly

* Markov chains record words correctly from a single line to the end of
  their line with a couple of exceptions.
* Start working on using ETS for storing markov chains, and saving it as
  a DETS periodically

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-07-08 17:25:26 -07:00
parent 1a73a62a2c
commit 9c69ca7b72
4 changed files with 43 additions and 24 deletions

View File

@@ -25,7 +25,6 @@ defmodule MarkovChainTest do
]
chain = chain |> Chain.add_weight(["foo", "bar"], "qux")
assert chain.chain == [
{["foo", "bar"], %{"baz" => 3, "qux" => 1}}
]