From 62d654fadb00be93a7db7ec610f0b5de8451eb05 Mon Sep 17 00:00:00 2001 From: Andrew Ferlitsch Date: Mon, 6 Dec 2021 13:08:24 -0800 Subject: [PATCH] fix: Document -> types.Document --- samples/v1/language_entity_sentiment_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/v1/language_entity_sentiment_text.py b/samples/v1/language_entity_sentiment_text.py index b28434df..4e1341d5 100644 --- a/samples/v1/language_entity_sentiment_text.py +++ b/samples/v1/language_entity_sentiment_text.py @@ -40,7 +40,7 @@ def sample_analyze_entity_sentiment(text_content): # text_content = 'Grapes are good. Bananas are bad.' # Available types: PLAIN_TEXT, HTML - type_ = language_v1.Document.Type.PLAIN_TEXT + type_ = language_v1.types.Document.Type.PLAIN_TEXT # Optional. If not specified, the language is automatically detected. # For list of supported languages: