Google Cloud Natural Language v1 API - Class Sentence (3.4.0)

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

Reference documentation and code samples for the Google Cloud Natural Language v1 API class Sentence.

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