12345678910111213141516 |
- defmodule Medicine do
- def suggest(args) do
- opts = [
- model: :multinomial,
- storage: :file_system,
- file_path: "lib/medicine_dataset.txt"
- ]
-
- SimpleBayes.load(opts)
- #|> SimpleBayes.classify("i have some headache and cold")
- # we use args for getting parameter from elixir shell
- |> SimpleBayes.classify(args)
- end
- end
|