Download lib/mix/build_code_vectors.ex from headway/medicode: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/headway/medicode/resolve/main/lib/mix/build_code_vectors.ex
- Command line
-
hf download hf://spaces/headway/medicode/lib/mix/build_code_vectors.ex
-
curl -L -o build_code_vectors.ex https://huggingface.co/spaces/headway/medicode/resolve/main/lib/mix/build_code_vectors.ex
401 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) | |
| Medicode.Coding.VectorPrecomputation.run() | |
| end | |
| end | |