Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nagachika/fcd94e36f3aa3841590fce5f4377368f to your computer and use it in GitHub Desktop.
Save nagachika/fcd94e36f3aa3841590fce5f4377368f to your computer and use it in GitHub Desktop.
Cloud Language API v1 Sentiment Response Schema for BigQuery
[
{
"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