Content-Length: 262978 | pFad | https://github.com/googleapis/python-language/commit/01367d7b1e0ddba6e6b920f125730aa97d51ada0

84 fix: Document -> types.Document (#227) · googleapis/python-language@01367d7 · GitHub
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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-language/commit/01367d7b1e0ddba6e6b920f125730aa97d51ada0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy