Skip to content

Commit 75673fe

Browse files
committed
chore(NLC): Update of documentation
1 parent 1a13392 commit 75673fe

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

watson_developer_cloud/natural_language_classifier_v1.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def classify(self, classifier_id, text, **kwargs):
100100
can use the classifier to classify text.
101101
102102
:param str classifier_id: Classifier ID to use.
103-
:param str text: The submitted phrase.
103+
:param str text: The submitted phrase. The maximum length is 2048 characters.
104104
:param dict headers: A `dict` containing the request headers
105105
:return: A `dict` containing the `Classification` response.
106106
:rtype: dict
@@ -644,14 +644,14 @@ class ClassifyInput(object):
644644
"""
645645
Request payload to classify.
646646
647-
:attr str text: The submitted phrase.
647+
:attr str text: The submitted phrase. The maximum length is 2048 characters.
648648
"""
649649

650650
def __init__(self, text):
651651
"""
652652
Initialize a ClassifyInput object.
653653
654-
:param str text: The submitted phrase.
654+
:param str text: The submitted phrase. The maximum length is 2048 characters.
655655
"""
656656
self.text = text
657657

@@ -692,7 +692,8 @@ class CollectionItem(object):
692692
"""
693693
Response from the classifier for a phrase in a collection.
694694
695-
:attr str text: (optional) The submitted phrase.
695+
:attr str text: (optional) The submitted phrase. The maximum length is 2048
696+
characters.
696697
:attr str top_class: (optional) The class with the highest confidence.
697698
:attr list[ClassifiedClass] classes: (optional) An array of up to ten class-confidence
698699
pairs sorted in descending order of confidence.
@@ -702,7 +703,8 @@ def __init__(self, text=None, top_class=None, classes=None):
702703
"""
703704
Initialize a CollectionItem object.
704705
705-
:param str text: (optional) The submitted phrase.
706+
:param str text: (optional) The submitted phrase. The maximum length is 2048
707+
characters.
706708
:param str top_class: (optional) The class with the highest confidence.
707709
:param list[ClassifiedClass] classes: (optional) An array of up to ten
708710
class-confidence pairs sorted in descending order of confidence.

0 commit comments

Comments
 (0)