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

@@ -10,7 +10,9 @@ defmodule Omnibot.Supervisor do
@impl true
def init(:ok) do
{_, bindings} = Code.eval_file("omnibot.exs")
{_, bindings} = System.get_env("OMNIBOT_CFG", "omnibot.exs")
|> Code.eval_file()
cfg = bindings[:config]
children = [