Skip to content

Commit 326f973

Browse files
authored
Merge pull request #724 from watson-developer-cloud/patch
fix(nlu): Add model property back in CategoriesOptions
2 parents d5ae070 + 6d5ed34 commit 326f973

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

ibm_watson/natural_language_understanding_v1.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,16 +716,28 @@ class CategoriesOptions():
716716
:attr bool explanation: (optional) Set this to `true` to return explanations for
717717
each categorization. **This is available only for English categories.**.
718718
:attr int limit: (optional) Maximum number of categories to return.
719+
:attr str model: (optional) Deprecated: Enter a [custom model]
720+
(https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-customizing)
721+
ID to override the standard categories model. The custom categories experimental feature will be retired on
722+
19 December 2019. On that date, deployed custom categories models will no longer be accessible in Natural Language
723+
Understanding. The feature will be removed from Knowledge Studio on an earlier date. Custom categories models will
724+
no longer be accessible in Knowledge Studio on 17 December 2019.
719725
"""
720726

721-
def __init__(self, *, explanation: bool = None, limit: int = None) -> None:
727+
def __init__(self, *, explanation: bool = None, limit: int = None, model: str = None) -> None:
722728
"""
723729
Initialize a CategoriesOptions object.
724730
725731
:param bool explanation: (optional) Set this to `true` to return
726732
explanations for each categorization. **This is available only for English
727733
categories.**.
728734
:param int limit: (optional) Maximum number of categories to return.
735+
:attr str model: (optional) Deprecated: Enter a [custom model]
736+
(https://cloud.ibm.com/docs/services/natural-language-understanding?topic=natural-language-understanding-customizing)
737+
ID to override the standard categories model. The custom categories experimental feature will be retired on
738+
19 December 2019. On that date, deployed custom categories models will no longer be accessible in Natural Language
739+
Understanding. The feature will be removed from Knowledge Studio on an earlier date. Custom categories models will
740+
no longer be accessible in Knowledge Studio on 17 December 2019.
729741
"""
730742
self.explanation = explanation
731743
self.limit = limit

0 commit comments

Comments
 (0)