medicode / lib /mix /build_code_vectors.ex
noahsettersten's picture
chore: Move vector precomputation into separate module
fd1b984
raw
history blame
413 Bytes
defmodule Mix.Tasks.BuildCodeVectors do
@moduledoc "Populate database with vector embeddings from downloaded ICD-9 code list"
use Mix.Task
@shortdoc "Downloads the ICD-9 codelist, calculates vector embeddings for each, and adds them to the database"
def run(_args) do
Mix.Task.run("app.start")
Logger.configure(level: :info)
MedicalTranscription.Coding.VectorPrecomputation.run()
end
end