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.
Namespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.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.v1.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 |