ClassifyDocumentResult الفصل

ClassifyDocumentResult هو عنصر نتيجة يحتوي على التصنيفات لمستند معين.

توريث
azure.ai.textanalytics._dict_mixin.DictMixin
ClassifyDocumentResult

الدالمنشئ

ClassifyDocumentResult(**kwargs: Any)

الأساليب

get
has_key
items
keys
update
values

get

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

المعلمات

الاسم الوصف
key
مطلوب
default
القيمة الافتراضية: None

has_key

has_key(k: str) -> bool

المعلمات

الاسم الوصف
k
مطلوب

items

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

keys

keys() -> Iterable[str]

update

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

values

values() -> Iterable[Any]

السمات

classifications

نتائج التصنيف المعترف بها في المستند.

classifications: List[ClassificationCategory]

id

معرف مستند فريد غير فارغ.

id: str

is_error

تحقق منطقي من وجود عنصر خطأ عند التكرار عبر قائمة النتائج. خطأ دائما لمثيل ClassifyDocumentResult.

is_error: Literal[False] = False

kind

نوع تحليل النص - "CustomDocumentClassification".

kind: Literal['CustomDocumentClassification'] = 'CustomDocumentClassification'

statistics

إذا تم تحديد show_stats=True في الطلب، فسيحتوي هذا الحقل على معلومات حول حمولة المستند.

statistics: TextDocumentStatistics | None = None

warnings

تمت مصادفة تحذيرات أثناء معالجة المستند.

warnings: List[TextAnalyticsWarning]