Skip to content

Commit 074b61b

Browse files
Merge pull request #389 from watson-developer-cloud/codegen/nlu
Regenerate natural language understanding
2 parents 28855ed + 76c0928 commit 074b61b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

watson_developer_cloud/natural_language_understanding_v1.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class NaturalLanguageUnderstandingV1(WatsonService):
7676
"""The Natural Language Understanding V1 service."""
7777

7878
default_url = 'https://gateway.watsonplatform.net/natural-language-understanding/api'
79-
VERSION_DATE_2017_02_27 = '2017-02-27'
8079

8180
def __init__(self, version, url=default_url, username=None, password=None):
8281
"""
@@ -155,7 +154,7 @@ def analyze(self,
155154
"""
156155
if features is None:
157156
raise ValueError('features must be provided')
158-
features = self._convert_model(features)
157+
features = self._convert_model(features, Features)
159158
params = {'version': self.version}
160159
data = {
161160
'features': features,

0 commit comments

Comments
 (0)