मुख्य सामग्री पर जाएँ
Skillpedia
PDF, Word और स्लाइड9.5k · #12271

xberg-extracting-tables

यह क्या करती है

यह स्किल लेआउट पहचान का इस्तेमाल करके दस्तावेज़ों से तालिकाएँ लेने का तरीका बताती है। यह उन लोगों के लिए है जिन्हें वित्तीय विवरण, इनवॉइस या शोध तालिकाएँ उपयोगी रूप में चाहिए।

कब इस्तेमाल करें

  • ✓जब आपको PDF रिपोर्ट, इनवॉइस या वित्तीय विवरण से तालिकाएँ चाहिए।
  • ✓जब आप चाहें कि तालिका डेटा AI के पढ़ने के लिए साफ़ markdown में हो।
  • ✓जब दूसरे सॉफ़्टवेयर के लिए सटीक सेल मान वाली संरचित फ़ाइल चाहिए।

Skill का लिंक

https://github.com/xberg-io/xberg/blob/main/plugin/.ai-rulez/skills/xberg-extracting-tables/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/xberg-io/xberg/blob/main/plugin/.ai-rulez/skills/xberg-extracting-tables/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस वित्तीय विवरण PDF की सारी तालिकाएँ एक संरचित फ़ाइल में लीजिए, जिसे मैं स्प्रेडशीट में खोल सकूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट लेआउट पहचान चालू करता है, ताकि टूल तालिका की सीमाएँ पहचाने, फिर आपके चुने आउटपुट के आधार पर या तो टेक्स्ट में markdown तालिकाएँ लौटाता है या सेल की संरचित सूची।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Extracting tables

Use this when the user wants structured tabular data — financial statements, scientific tables, invoices, spreadsheet-style PDFs. Xberg detects tables via a layout model (RT-DETR v2) and reconstructs cell structure with a configurable table model.

Basic usage

# Markdown tables embedded in the content stream
xberg extract report.pdf --layout --content-format markdown

# Structured JSON output, tables appear under result.tables
xberg extract report.pdf --layout --format json

--layout turns on layout-aware extraction; without it, tables fall back to plain text reflow and you lose cell boundaries.

Output shapes

Two surfaces, picked via --format (CLI shape) and --content-format (content rendering):

  • Markdown tables in content — --content-format markdown. Tables appear inline as | col | col | blocks. Good for LLM ingestion.
  • Structured tables array — --format json. Each entry has cells[][] (rows × cols), markdown (pre-rendered), page_number, bounding_box. Use this when downstream code needs exact cell access. (bounding_box is omitted when no position data is available.)

Both are populated at once when --layout is on. The tables array is always structured; the content stream switches representation.

xberg extract financials.pdf --layout --format json \
  | jq '.result.tables[] | {page: .page_number, rows: (.cells | length)}'

Table models

--layout-table-model picks the reconstruction backend:

Model Best for Notes
tatr dense complex tables (academic, financial) Default. Heaviest, highest accuracy.
slanet_auto dispatches per-table to wired/wireless Good when table styles are mixed.
slanet_wired tables with visible borders Faster than tatr.
slanet_wireless tables without borders (whitespace-separated) For invoices, simple grids.
slanet_plus hybrid wired / wireless Lighter than slanet_auto.
disabled layout detection only, no table structure Use to skip table model cost.
xberg extract bank-statement.pdf \
  --layout --layout-table-model tatr --content-format markdown

Drop --layout-confidence when the layout model misses tables (default threshold ~0.5):

xberg extract noisy-scan.pdf --layout --layout-confidence 0.3

Spreadsheets

.xlsx, .ods, .csv, .tsv are extracted by dedicated parsers — no layout model needed. Each sheet becomes a markdown table (or structured table) automatically:

xberg extract workbook.xlsx --content-format markdown
xberg extract data.csv --format json

Pass --no-cache=true only when iterating on the same file with different configs.

Config file alternative

# `output_format` in config files equals `--content-format` on the CLI.
output_format = "markdown"

[layout]
confidence_threshold = 0.5
table_model = "tatr"

Then:

xberg extract report.pdf --format json

Programmatic access

From Python, structured tables live on the document in the result envelope (result.results[0].tables):

from xberg import ExtractInput, extract, ExtractionConfig, LayoutDetectionConfig

config = ExtractionConfig(
    layout=LayoutDetectionConfig(table_model="tatr"),
    output_format="markdown",
)
result = await extract(ExtractInput(uri="report.pdf"), config)
for table in result.results[0].tables:
    print(table.markdown)        # rendered markdown
    print(table.cells[0][0])     # cell access

Node.js mirrors this (extract, output.results[0].tables, camelCase fields). See ../../references/python-api.md and ../../references/nodejs-api.md for full type signatures.

Known limitations

  • Merged cells — reconstructed as repeated values across the spanned region; the merge is not preserved as metadata.
  • Rotated tables — enable --ocr-auto-rotate true for image-based PDFs before extraction.
  • Nested tables — flattened. Detection succeeds; structural nesting is lost.
  • **Multi-page table
अक्सर पूछे जाने वाले सवाल

लेआउट सेटिंग क्यों चालू करें?

उसके बिना तालिकाएँ सादे टेक्स्ट की तरह बह जाती हैं और सेल की सीमाएँ खो जाती हैं।

कौन सा आउटपुट चुनूँ?

markdown तालिकाएँ AI के पढ़ने के लिए ठीक हैं, जबकि संरचित सूची उस सॉफ़्टवेयर के लिए जिसे सटीक सेल चाहिए।

क्या यह हमेशा तालिकाएँ सही पकड़ती है?

नहीं। स्किल ज्ञात सीमाएँ बताती है, इसलिए नतीजे को मूल दस्तावेज़ से मिलाकर देखें।

जानकारी

लेखक का मूल विवरण

Use when extracting tabular data from PDFs, spreadsheets, or images. Covers layout-aware table detection, table model selection, output formats (markdown / JSON cells), and known limits.

repo: xberg-io/xberg

लोकप्रियता

GitHub स्टार
9.5k
रैंकिंग में स्थान
#12271
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

xberg-batch-extraction

9.5k

आपके एजेंट को Xberg के साथ एक साथ कई दस्तावेज़ प्रोसेस करने में मदद करती है। विकल्पों का एक सेट साझा होता है, समानांतर काम सीमित रहता है, और विफल फ़ाइलें पूरे रन को नहीं रोकतीं।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

xberg-chunking

9.5k

आपके एजेंट को लंबे दस्तावेज़ों का टेक्स्ट AI प्रॉम्प्ट या सर्च इंडेक्स के लिए छोटे टुकड़ों में बाँटने में मदद करती है, तय आकार और वैकल्पिक ओवरलैप के साथ।

डेटाएनालिसिस और स्प्रेडशीट

xberg-extracting-keywords

9.5k

आपके एजेंट को दस्तावेज़ से मुख्य कीवर्ड या मुख्य वाक्यांश निकालने और उसकी भाषा पहचानने में मदद करती है, Xberg की कीवर्ड सेटिंग के साथ।

डेटाएनालिसिस और स्प्रेडशीट

xberg-extracting-with-ocr

9.5k

आपके एजेंट को स्कैन की गई PDF, फ़ोटो और ऐसी छवियों से टेक्स्ट पढ़ने में मदद करती है जिनमें टेक्स्ट परत नहीं है, वैकल्पिक भाषा पैक के साथ OCR का उपयोग करके।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

मिलती-जुलती skills