Skip to content

Commit

Permalink
Migrate COS assets (#13)
Browse files Browse the repository at this point in the history
* Migrate COS assets

* Update Dockerfile

Co-Authored-By: Brendan Dwyer <brendan.dwyer@ibm.com>
  • Loading branch information
splovyt and bdwyer2 committed Jun 17, 2019
1 parent 2ecca5e commit 98d1305
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -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} && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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).

Expand Down
2 changes: 1 addition & 1 deletion assets/README.md
Expand Up @@ -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)

Expand Down

0 comments on commit 98d1305

Please sign in to comment.