Skip to content

Commit

Permalink
Merge pull request #91 from dod-advana/UOT-130905
Browse files Browse the repository at this point in the history
[UOT-130905]
  • Loading branch information
rha930 authored Feb 3, 2022
2 parents 600438a + ce59841 commit f651614
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gamechangerml/api/fastapi/routers/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ async def post_expand_query_terms(body: dict, response: Response) -> dict:
logger.info(f"Expanding: {body}")
query_expander = (
MODELS.query_expander
if body.get("qe_model", "gc_core") != "jbook"
if body.get("qe_model", "gc_core") != "jbook" or MODELS.query_expander_jbook==None
else MODELS.query_expander_jbook
)
try:
Expand Down
2 changes: 1 addition & 1 deletion gamechangerml/api/utils/pathselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def get_model_paths():
else:
print("defaulting INDEX_PATH to qexp")
QEXP_JBOOK_MODEL_PATH = os.path.join(
Config.LOCAL_PACKAGED_MODELS_DIR, "jbook_qexp_20211029"
Config.LOCAL_PACKAGED_MODELS_DIR, "jbook_qexp_20220131"
)
except Exception as e:
logger.error(e)
Expand Down
4 changes: 2 additions & 2 deletions gamechangerml/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function setup_prod() {
export S3_TRANS_MODEL_PATH="${S3_TRANS_MODEL_PATH:-s3://advana-data-zone/bronze/gamechanger/models/transformers/v5/transformers.tar.gz}"
export S3_SENT_INDEX_PATH="${S3_SENT_INDEX_PATH:-s3://advana-data-zone/bronze/gamechanger/models/sentence_index/v7/sent_index_20210715.tar.gz}"
export S3_QEXP_PATH="${S3_QEXP_PATH:-s3://advana-data-zone/bronze/gamechanger/models/qexp_model/v3/qexp_20201217.tar.gz}"
export S3_QEXP_JBOOK_PATH="${S3_QEXP_JBOOK_PATH:-s3://advana-data-zone/bronze/gamechanger/models/jbook_qexp_model/v1/jbook_qexp_20211029.tar.gz}"
export S3_QEXP_JBOOK_PATH="${S3_QEXP_JBOOK_PATH:-s3://advana-data-zone/bronze/gamechanger/models/jbook_qexp_model/v2/jbook_qexp_20220131.tar.gz}"
export S3_TOPICS_PATH="${S3_TOPICS_PATH:-s3://advana-data-zone/bronze/gamechanger/models/topic_model/v1/20210208.tar.gz}"
export S3_ML_DATA_PATH="${S3_ML_DATA_PATH:-s3://advana-data-zone/bronze/gamechanger/ml-data/v1/data_20220127.tar.gz}"
export S3_CORPUS_PATH="${S3_CORPUS_PATH:-s3://advana-data-zone/bronze/gamechanger/json}"
Expand Down Expand Up @@ -50,7 +50,7 @@ function setup_dev() {
export S3_TRANS_MODEL_PATH="${S3_TRANS_MODEL_PATH:-s3://advana-data-zone/bronze/gamechanger/models/transformers/v5/transformers.tar.gz}"
export S3_SENT_INDEX_PATH="${S3_SENT_INDEX_PATH:-s3://advana-data-zone/bronze/gamechanger/models/sentence_index/v7/sent_index_20210716.tar.gz}"
export S3_QEXP_PATH="${S3_QEXP_PATH:-s3://advana-data-zone/bronze/gamechanger/models/qexp_model/v4/qexp_20211001.tar.gz}"
export S3_QEXP_JBOOK_PATH="${S3_QEXP_JBOOK_PATH:-s3://advana-data-zone/bronze/gamechanger/models/jbook_qexp_model/v1/jbook_qexp_20211029.tar.gz}"
export S3_QEXP_JBOOK_PATH="${S3_QEXP_JBOOK_PATH:-s3://advana-data-zone/bronze/gamechanger/models/jbook_qexp_model/v2/jbook_qexp_20220131.tar.gz}"
export S3_TOPICS_PATH="${S3_TOPICS_PATH:-s3://advana-data-zone/bronze/gamechanger/models/topic_model/v1/20210208.tar.gz}"
export S3_ML_DATA_PATH="${S3_ML_DATA_PATH:-s3://advana-data-zone/bronze/gamechanger/ml-data/v1/data_20220127.tar.gz}"
export S3_CORPUS_PATH="${S3_CORPUS_PATH:-s3://advana-data-zone/bronze/gamechanger/json}"
Expand Down

0 comments on commit f651614

Please sign in to comment.