Skip to content

Commit a914cf4

Browse files
committed
last changes before the v1.0.0 release
1 parent 683917f commit a914cf4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.com/IBM/MAX-Text-Sentiment-Classifier.svg?branch=master)](https://travis-ci.com/IBM/MAX-Text-Sentiment-Classifier)
1+
[![Build Status](https://travis-ci.com/IBM/MAX-Text-Sentiment-Classifier.svg?branch=master)](https://travis-ci.com/IBM/MAX-Text-Sentiment-Classifier) [![API demo](https://img.shields.io/website/http/max-text-sentiment-classifier.max.us-south.containers.appdomain.cloud/swagger.json.svg?label=API%20demo&down_message=down&up_message=up)](http://max-text-sentiment-classifier.max.us-south.containers.appdomain.cloud/)
22

33
# IBM Developer Model Asset Exchange: Text Sentiment Classifier
44

config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@
77

88
# API metadata
99
API_TITLE = 'MAX Text Sentiment Classifier'
10-
API_DESC = 'Detect the sentiment of an input string. ' \
10+
API_DESC = 'Detect the sentiment captured in short pieces of text. ' \
1111
'The model was finetuned on the IBM Project Debater Claim Sentiment dataset.'
12-
API_VERSION = '0.1'
12+
API_VERSION = '1.0.0'
1313

1414
# default model
1515
MODEL_NAME = 'sentiment_BERT_base_uncased'
1616
DEFAULT_MODEL_PATH = 'assets/{}'.format(MODEL_NAME)
1717

1818
# the metadata of the model
1919
MODEL_META_DATA = {
20-
'id': '{}_tensorflow'.format(MODEL_NAME.lower()),
20+
'id': 'max-text-sentiment-classifier',
2121
'name': 'Bert Base Uncased TensorFlow Model',
2222
'description': 'BERT Base finetuned on the IBM Project Debater Claim Sentiment dataset.',
2323
'type': 'Text Classification',
24-
'source': 'https://developer.ibm.com/exchanges/models',
25-
'license': 'ApacheV2'
24+
'source': 'https://developer.ibm.com/exchanges/models/all/max-text-sentiment-classifier/',
25+
'license': 'Apache V2'
2626
}

tests/test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ def test_metadata():
2323
assert r.status_code == 200
2424

2525
metadata = r.json()
26-
assert metadata['id'] == 'sentiment_bert_base_uncased_tensorflow'
26+
assert metadata['id'] == 'max-text-sentiment-classifier'
2727
assert metadata['name'] == 'Bert Base Uncased TensorFlow Model'
2828
assert metadata['description'] == 'BERT Base finetuned on the IBM Project Debater Claim Sentiment dataset.'
29-
assert metadata['license'] == 'ApacheV2'
29+
assert metadata['license'] == 'Apache V2'
3030
assert metadata['type'] == 'Text Classification'
3131
assert 'developer.ibm.com' in metadata['source']
3232

0 commit comments

Comments
 (0)