SummarySentence Class

Represents a single sentence from the extractive text summarization.

New in version 2023-04-01: The SummarySentence model.

Inheritance
azure.ai.textanalytics._dict_mixin.DictMixin
SummarySentence

Constructor

SummarySentence(**kwargs: Any)

Methods

get
has_key
items
keys
update
values

get

get(key: str, default: Any | None = None) -> Any

Parameters

Name Description
key
Required
default
default value: None

has_key

has_key(k: str) -> bool

Parameters

Name Description
k
Required

items

items() -> Iterable[Tuple[str, Any]]

keys

keys() -> Iterable[str]

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> Iterable[Any]

Attributes

length

The length of the sentence. This value depends on the value of the string_index_type parameter set in the original request, which is UnicodeCodePoint by default.

length: int

offset

The sentence offset from the start of the document. The value depends on the value of the string_index_type parameter set in the original request, which is UnicodeCodePoint by default.

offset: int

rank_score

A float value representing the relevance of the sentence within the summary. Higher values indicate higher importance.

rank_score: float

text

The extracted sentence text.

text: str