renamed extract
문서에서 구조화된 데이터를 추출하십시오. 송장, 영수증 및 계약서를 회계 및 자동화를 위한 JSON 또는 CSV로 변환하십시오.
renamed extract <file|directory> [options]extract 명령은 AI를 사용하여 문서를 구문 분석하고 날짜, 금액, 공급업체 이름 및 항목과 같은 주요 필드를 추출합니다. API용 JSON 또는 스프레드시트용 CSV로 출력하십시오.
예제
송장 데이터를 JSON으로 추출:
$ renamed extract invoice.pdf --output json일괄 추출하여 단일 CSV로 출력:
$ renamed extract ./invoices/*.pdf --output csv --merge --file invoices.csv특정 문서 스키마 사용:
$ renamed extract receipt.pdf --schema receipt옵션
-o, --output <format>출력 형식: json, table. 기본값: json.
-s, --schema <type>내장 스키마: invoice, receipt, contract, resume.
-f, --schema-file <path>필드 정의를 위한 커스텀 JSON 스키마 파일 경로입니다.
-p, --parser-id <id>웹 대시보드에서 저장된 파서 프로필을 사용합니다.
-i, --instructions <text>추출을 위한 커스텀 AI 지침입니다.
--merge추출된 모든 데이터를 단일 출력 파일로 결합합니다.
--pretty들여쓰기가 있는 JSON 출력을 예쁘게 인쇄합니다.
내장 스키마
invoice — Vendor, invoice number, date, amount, line items, tax
receipt — Store, date, total, payment method, items
contract — Parties, effective date, termination date, terms
resume — Name, contact, skills, experience, education
커스텀 스키마
JSON 스키마 파일로 자신만의 필드를 정의하십시오:
{
"fields": {
"projectName": "string",
"budget": "currency",
"deadline": "date",
"approved": "boolean"
}
}Field types: string, number, date, currency, boolean
출력 예제
송장의 JSON 출력:
{
"vendor": "Acme Corp",
"invoiceNumber": "INV-8847",
"date": "2026-01-15",
"amount": 2450.00,
"currency": "USD",
"lineItems": [
{
"description": "Consulting Services",
"total": 2000.00
}
]
}