Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions postman/Platform-API.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@
"formdata": [
{
"key": "method",
"value": "pii-bbox-extraction"
"value": "extract-pii-bounding-boxes"
},
{
"key": "params",
Expand Down Expand Up @@ -800,7 +800,7 @@
"formdata": [
{
"key": "method",
"value": "text-bbox-extraction"
"value": "extract-text-bounding-boxes"
},
{
"key": "params",
Expand Down
4 changes: 2 additions & 2 deletions samples/python/platform_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ def extract_tables(self, file_path: Path) -> dict[str, Any]:

def detect_pii(self, file_path: Path, language: str = "en") -> dict[str, Any]:
"""Detect PII and return bounding boxes."""
return self._request("extractions", "pii-bbox-extraction", file_path, {"language": language})
return self._request("extractions", "extract-pii-bounding-boxes", file_path, {"language": language})

def find_text_boxes(self, file_path: Path, texts: list[str]) -> dict[str, Any]:
"""Find bounding boxes for specified text strings."""
return self._request("extractions", "text-bbox-extraction", file_path, {"texts": texts})
return self._request("extractions", "extract-text-bounding-boxes", file_path, {"texts": texts})

def redact(self, file_path: Path, redactions: list[dict]) -> bytes:
"""Redact specified bounding boxes."""
Expand Down