Struct google_language1::api::AnnotateTextResponse
source · pub struct AnnotateTextResponse {
pub categories: Option<Vec<ClassificationCategory>>,
pub document_sentiment: Option<Sentiment>,
pub entities: Option<Vec<Entity>>,
pub language: Option<String>,
pub moderation_categories: Option<Vec<ClassificationCategory>>,
pub sentences: Option<Vec<Sentence>>,
pub tokens: Option<Vec<Token>>,
}
Expand description
The text annotations response message.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- annotate text documents (response)
Fields§
§categories: Option<Vec<ClassificationCategory>>
Categories identified in the input document.
document_sentiment: Option<Sentiment>
The overall sentiment for the document. Populated if the user enables AnnotateTextRequest.Features.extract_document_sentiment.
entities: Option<Vec<Entity>>
Entities, along with their semantic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_entities.
language: Option<String>
The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. See Document.language field for more details.
moderation_categories: Option<Vec<ClassificationCategory>>
Harmful and sensitive categories identified in the input document.
sentences: Option<Vec<Sentence>>
Sentences in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
tokens: Option<Vec<Token>>
Tokens, along with their syntactic information, in the input document. Populated if the user enables AnnotateTextRequest.Features.extract_syntax.
Trait Implementations§
source§impl Clone for AnnotateTextResponse
impl Clone for AnnotateTextResponse
source§fn clone(&self) -> AnnotateTextResponse
fn clone(&self) -> AnnotateTextResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more