Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 01367d7

Browse files
fix: Document -> types.Document (#227)
1 parent f5ffec6 commit 01367d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/v1/language_entity_sentiment_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def sample_analyze_entity_sentiment(text_content):
4040
# text_content = 'Grapes are good. Bananas are bad.'
4141

4242
# Available types: PLAIN_TEXT, HTML
43-
type_ = language_v1.Document.Type.PLAIN_TEXT
43+
type_ = language_v1.types.Document.Type.PLAIN_TEXT
4444

4545
# Optional. If not specified, the language is automatically detected.
4646
# For list of supported languages:

0 commit comments

Comments
 (0)