diff --git a/Dockerfile b/Dockerfile index bd39ccc..8adf6a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ FROM codait/max-base:v1.1.3 -ARG model_bucket=http://max-assets.s3.us.cloud-object-storage.appdomain.cloud/max-text-sentiment-classifier/1.0 +ARG model_bucket=https://s3.us-south.cloud-object-storage.appdomain.cloud/max-assets-prod/max-text-sentiment-classifier/1.0.0 ARG model_file=assets.tar.gz RUN wget -nv --show-progress --progress=bar:force:noscroll ${model_bucket}/${model_file} --output-document=assets/${model_file} && \ diff --git a/README.md b/README.md index 7237027..cca3bb7 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This repository contains code to instantiate and deploy a text sentiment classifier. This model is able to detect whether a text fragment leans towards a positive or a negative sentiment. Optimal input examples for this model are short strings (preferably a single sentence) with correct grammar, although not a requirement. The model is based on the [pre-trained BERT-Base, English Uncased](https://github.com/google-research/bert/blob/master/README.md) model and was finetuned on the [IBM Claim Stance Dataset](http://www.research.ibm.com/haifa/dept/vst/debating_data.shtml). The model files are hosted on -[IBM Cloud Object Storage](http://max-assets.s3.us.cloud-object-storage.appdomain.cloud/max-text-sentiment-classifier/1.0/assets.tar.gz). +[IBM Cloud Object Storage](http://s3.us-south.cloud-object-storage.appdomain.cloud/max-assets-prod/max-text-sentiment-classifier/1.0.0/assets.tar.gz). The code in this repository deploys the model as a web service in a Docker container. This repository was developed as part of the [IBM Developer Model Asset Exchange](https://developer.ibm.com/exchanges/models/) and the public API is powered by [IBM Cloud](https://ibm.biz/Bdz2XM). diff --git a/assets/README.md b/assets/README.md index c8918eb..afd4aeb 100644 --- a/assets/README.md +++ b/assets/README.md @@ -4,7 +4,7 @@ The original pre-trained model files are from the [BERT](https://github.com/google-research/bert) repository, where they are available under [Apache 2.0](https://github.com/google-research/bert/blob/master/LICENSE). This pre-trained model was then finetuned on the [IBM Claim Stance Dataset](http://www.research.ibm.com/haifa/dept/vst/debating_data.shtml). -_Note: the finetuned model files are hosted on [IBM Cloud Object Storage](http://max-assets.s3.us.cloud-object-storage.appdomain.cloud/max-text-sentiment-classifier/1.0/assets.tar.gz)._ +_Note: the finetuned model files are hosted on [IBM Cloud Object Storage](http://s3.us-south.cloud-object-storage.appdomain.cloud/max-assets-prod/max-text-sentiment-classifier/1.0.0/assets.tar.gz)._ ## Test Examples (assets/test-examples.tsv)