Skip to content

Commit 6bccdbd

Browse files
committed
updating .env, classifier id
1 parent 6b38ca7 commit 6bccdbd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.env.enc

288 Bytes
Binary file not shown.

examples/natural_language_classifier_v1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212

1313
# create a classifier
1414
# with open('../resources/weather_data_train.csv', 'rb') as training_data:
15-
# print(json.dumps(natural_language_classifier.create(training_data=training_data, name='weather2'), indent=2))
15+
# print(json.dumps(natural_language_classifier.create(training_data=training_data, name='weather'), indent=2))
1616

1717
# replace 4f1704ex55-nlc-2432" with your classifier id
18-
status = natural_language_classifier.status('f1704ex55-nlc-2432')
18+
status = natural_language_classifier.status('3a84d1x62-nlc-18096')
1919
print(json.dumps(status, indent=2))
2020
#
21-
classes = natural_language_classifier.classify('f1704ex55-nlc-2432', 'How hot will it be tomorrow?')
21+
classes = natural_language_classifier.classify('3a84d1x62-nlc-18096', 'How hot will it be tomorrow?')
2222
print(json.dumps(classes, indent=2))
2323

2424
# example of raising a WatsonException

0 commit comments

Comments
 (0)