public sealed class Sentence : IMessage<Sentence>, IEquatable<Sentence>, IDeepCloneable<Sentence>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Natural Language v2 API class Sentence.
Represents a sentence in the input document.
Namespace
Google.Cloud.Language.V2Assembly
Google.Cloud.Language.V2.dll
Constructors
Sentence()
public Sentence()
Sentence(Sentence)
public Sentence(Sentence other)
Parameter | |
---|---|
Name | Description |
other | Sentence |
Properties
Sentiment
public Sentiment Sentiment { get; set; }
For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v2.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.
Property Value | |
---|---|
Type | Description |
Sentiment |
Text
public TextSpan Text { get; set; }
The sentence text.
Property Value | |
---|---|
Type | Description |
TextSpan |