File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 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/ )
2
2
3
3
# IBM Developer Model Asset Exchange: Text Sentiment Classifier
4
4
Original file line number Diff line number Diff line change 7
7
8
8
# API metadata
9
9
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 . ' \
11
11
'The model was finetuned on the IBM Project Debater Claim Sentiment dataset.'
12
- API_VERSION = '0.1 '
12
+ API_VERSION = '1.0.0 '
13
13
14
14
# default model
15
15
MODEL_NAME = 'sentiment_BERT_base_uncased'
16
16
DEFAULT_MODEL_PATH = 'assets/{}' .format (MODEL_NAME )
17
17
18
18
# the metadata of the model
19
19
MODEL_META_DATA = {
20
- 'id' : '{}_tensorflow' . format ( MODEL_NAME . lower ()) ,
20
+ 'id' : 'max-text-sentiment-classifier' ,
21
21
'name' : 'Bert Base Uncased TensorFlow Model' ,
22
22
'description' : 'BERT Base finetuned on the IBM Project Debater Claim Sentiment dataset.' ,
23
23
'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 '
26
26
}
Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ def test_metadata():
23
23
assert r .status_code == 200
24
24
25
25
metadata = r .json ()
26
- assert metadata ['id' ] == 'sentiment_bert_base_uncased_tensorflow '
26
+ assert metadata ['id' ] == 'max-text-sentiment-classifier '
27
27
assert metadata ['name' ] == 'Bert Base Uncased TensorFlow Model'
28
28
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 '
30
30
assert metadata ['type' ] == 'Text Classification'
31
31
assert 'developer.ibm.com' in metadata ['source' ]
32
32
You can’t perform that action at this time.
0 commit comments