Skip to content

Commit

Permalink
use tempfile, then cp to /Volume works
Browse files Browse the repository at this point in the history
  • Loading branch information
ulc0 committed Aug 29, 2024
1 parent 27870ce commit 1a8630f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/update_umls_linker_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,23 @@
#dbutils.fs.cp(temp_dir+'/tfidf_vectors_sparse.npz','/Volumes/edav_dev_cdh_test/dev_cdh_ml_test/data/' )


# COMMAND ----------

"""
tfidf_vectorizer_path = f"{out_path}/tfidf_vectorizer.joblib"
ann_index_path = f"{out_path}/nmslib_index.bin"
tfidf_vectors_path = f"{out_path}/tfidf_vectors_sparse.npz"
umls_concept_aliases_path = f"{out_path}/concept_aliases.json"
"""

# COMMAND ----------

# MAGIC %sh
# MAGIC cd /tmp/tmppc1_fdto
# MAGIC cd /tmp/tmpazmsqksw
# MAGIC cp concept_aliases.json /Volumes/edav_dev_cdh_test/dev_cdh_ml_test/data/
# MAGIC cp tfidf_vectors_sparse.npz /Volumes/edav_dev_cdh_test/dev_cdh_ml_test/data/
# MAGIC cp tfidf_vectorizer.joblib /Volumes/edav_dev_cdh_test/dev_cdh_ml_test/data/
# MAGIC cp nmslib_index.bin /Volumes/edav_dev_cdh_test/dev_cdh_ml_test/data/

# COMMAND ----------

Expand Down

0 comments on commit 1a8630f

Please sign in to comment.