Class Sentence (2.2.0)

public sealed class Sentence : IMessage<Sentence>, IEquatable<Sentence>, IDeepCloneable<Sentence>, IBufferMessage, IMessage

Represents a sentence in the input document.

Inheritance

Object > Sentence

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.dll

Constructors

Sentence()

public Sentence()

Sentence(Sentence)

public Sentence(Sentence other)
Parameter
NameDescription
otherSentence

Properties

Sentiment

public Sentiment Sentiment { get; set; }

For calls to [AnalyzeSentiment][] or if [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1.AnnotateTextRequest.Features.extract_document_sentiment] is set to true, this field will contain the sentiment for the sentence.

Property Value
TypeDescription
Sentiment

Text

public TextSpan Text { get; set; }

The sentence text.

Property Value
TypeDescription
TextSpan