Last active
July 18, 2017 07:20
-
-
Save nagachika/fcd94e36f3aa3841590fce5f4377368f to your computer and use it in GitHub Desktop.
Cloud Language API v1 Sentiment Response Schema for BigQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "document_sentiment", | |
"type": "RECORD", | |
"mode": "NULLABLE", | |
"fields": [ | |
{ | |
"name": "magnitude", | |
"type": "FLOAT", | |
"mode": "NULLABLE" | |
}, | |
{ | |
"name": "score", | |
"type": "FLOAT", | |
"mode": "NULLABLE" | |
} | |
] | |
}, | |
{ | |
"name": "language", | |
"type": "STRING", | |
"mode": "NULLABLE" | |
}, | |
{ | |
"name": "sentences", | |
"type": "RECORD", | |
"mode": "REPEATED", | |
"fields": [ | |
{ | |
"name": "text", | |
"type": "RECORD", | |
"mode": "NULLABLE", | |
"fields": [ | |
{ | |
"name": "begin_offset", | |
"type": "INTEGER", | |
"mode": "NULLABLE" | |
}, | |
{ | |
"name": "content", | |
"type": "STRING", | |
"mode": "NULLABLE" | |
} | |
] | |
}, | |
{ | |
"name": "sentiment", | |
"type": "RECORD", | |
"mode": "NULLABLE", | |
"fields": [ | |
{ | |
"name": "magnitude", | |
"type": "FLOAT", | |
"mode": "NULLABLE" | |
}, | |
{ | |
"name": "score", | |
"type": "FLOAT", | |
"mode": "NULLABLE" | |
} | |
] | |
} | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment