Azure AI Document Intelligence client library for Python - a cloud service that uses machine learning to analyze text and structured data from documents
76
Implements helper functions that move document models and classifiers between Azure Document Intelligence resources by combining target-generated copy authorizations with long-running pollers.
@generates
from dataclasses import dataclass
from typing import Optional, Tuple
@dataclass
class ResourceConfig:
endpoint: str
api_key: str
target_asset_id: str
def copy_model(source: ResourceConfig, target: ResourceConfig, *, poll_interval: float = 5.0) -> str:
"""Initiates a cross-resource model copy using a target authorization and waits for completion. Returns the new model id from the target resource."""
def copy_classifier(source: ResourceConfig, target: ResourceConfig, *, poll_interval: float = 5.0) -> str:
"""Initiates a cross-resource classifier copy using a target authorization and waits for completion. Returns the new classifier id from the target resource."""
def resume_copy(continuation_token: str, *, poll_interval: float = 5.0) -> Tuple[str, str]:
"""Resumes a previously started model or classifier copy using a continuation token and returns a tuple of (asset_id, status) when done."""Provides administration clients, copy authorization helpers, and pollers for model and classifier copy operations.
Install with Tessl CLI
npx tessl i tessl/pypi-azure-ai-documentintelligencedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10