Udostępnij za pośrednictwem


SummarySentence Klasa

Reprezentuje jedno zdanie z podsumowania tekstu wyodrębnianego.

Nowość w wersji 2023-04-01: Model PodsumowaniaSentence .

Dziedziczenie
azure.ai.textanalytics._dict_mixin.DictMixin
SummarySentence

Konstruktor

SummarySentence(**kwargs: Any)

Metody

get
has_key
items
keys
update
values

get

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

Parametry

key
Wymagane
default
wartość domyślna: None

has_key

has_key(k: str) -> bool

Parametry

k
Wymagane

items

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

keys

keys() -> Iterable[str]

update

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

values

values() -> Iterable[Any]

Atrybuty

length

Długość zdania. Ta wartość zależy od wartości parametru string_index_type ustawionego w oryginalnym żądaniu, które jest domyślnie unicodeCodePoint.

length: int

offset

Przesunięcie zdania od początku dokumentu. Wartość zależy od wartości parametru string_index_type ustawionego w oryginalnym żądaniu, które jest domyślnie unicodeCodePoint.

offset: int

rank_score

Wartość zmiennoprzecinkowa reprezentująca znaczenie zdania w podsumowaniu. Wyższe wartości wskazują na wyższą ważność.

rank_score: float

text

Wyodrębniony tekst zdania.

text: str