pub struct AnnotateTextRequestFeatures {
pub classification_model_options: Option<ClassificationModelOptions>,
pub classify_text: Option<bool>,
pub extract_document_sentiment: Option<bool>,
pub extract_entities: Option<bool>,
pub extract_entity_sentiment: Option<bool>,
pub extract_syntax: Option<bool>,
pub moderate_text: Option<bool>,
}
Expand description
All available features for sentiment, syntax, and semantic analysis. Setting each one to true will enable that specific analysis for the input.
This type is not used in any activity, and only used as part of another schema.
Fields§
§classification_model_options: Option<ClassificationModelOptions>
Optional. The model options to use for classification. Defaults to v1 options if not specified. Only used if classify_text
is set to true.
classify_text: Option<bool>
Classify the full document into categories.
extract_document_sentiment: Option<bool>
Extract document-level sentiment.
extract_entities: Option<bool>
Extract entities.
extract_entity_sentiment: Option<bool>
Extract entities and their associated sentiment.
extract_syntax: Option<bool>
Extract syntax information.
moderate_text: Option<bool>
Moderate the document for harmful and sensitive categories.
Trait Implementations§
Source§impl Clone for AnnotateTextRequestFeatures
impl Clone for AnnotateTextRequestFeatures
Source§fn clone(&self) -> AnnotateTextRequestFeatures
fn clone(&self) -> AnnotateTextRequestFeatures
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AnnotateTextRequestFeatures
impl Debug for AnnotateTextRequestFeatures
Source§impl Default for AnnotateTextRequestFeatures
impl Default for AnnotateTextRequestFeatures
Source§fn default() -> AnnotateTextRequestFeatures
fn default() -> AnnotateTextRequestFeatures
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnotateTextRequestFeatures
impl<'de> Deserialize<'de> for AnnotateTextRequestFeatures
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for AnnotateTextRequestFeatures
Auto Trait Implementations§
impl Freeze for AnnotateTextRequestFeatures
impl RefUnwindSafe for AnnotateTextRequestFeatures
impl Send for AnnotateTextRequestFeatures
impl Sync for AnnotateTextRequestFeatures
impl Unpin for AnnotateTextRequestFeatures
impl UnwindSafe for AnnotateTextRequestFeatures
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more