Skip to content

Commit 844d8b9

Browse files
authored
Update natural_language_understanding_v1.py
I was getting this error: NameError: name 'features' is not defined found out that line no. 15: features=[features.Entities(), features.Keywords()]) should be: features=[Features.Entities(), Features.Keywords()]) Notice the uppercase 'F'.
1 parent 1d5802c commit 844d8b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/natural_language_understanding_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
response = natural_language_understanding.analyze(
1313
text='Bruce Banner is the Hulk and Bruce Wayne is BATMAN! '
1414
'Superman fears not Banner, but Wayne.',
15-
features=[features.Entities(), features.Keywords()])
15+
features=[Features.Entities(), Features.Keywords()])
1616

1717
print(json.dumps(response, indent=2))

0 commit comments

Comments
 (0)