मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट9.5k · #12270

xberg-extracting-keywords

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

यह स्किल बताती है कि YAKE या RAKE तरीकों से दस्तावेज़ों के कीवर्ड कैसे लें, और दस्तावेज़ की भाषा कैसे पहचानें। यह उन लोगों के लिए है जिन्हें त्वरित विषय टैग या भाषा जाँच चाहिए।

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

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

Skill का लिंक

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

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

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

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

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

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

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

“इस शोध पत्र से मुख्य कीवर्ड निकालिए और बताइए कि यह किस भाषा में है।”

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

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

एजेंट निष्कर्षण विकल्पों में कीवर्ड सेटिंग चालू करता है और YAKE या RAKE चुनता है। फिर कीवर्ड नतीजे में दिखते हैं। एम्बेडिंग एक अलग embed कमांड से बनती हैं।

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

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

Extracting keywords, language, and embeddings

Use this for the enrichment surface around extraction: statistical keyword extraction, language detection, and vector embeddings. Keywords and language detection ride along with extraction and land on the result; embeddings are produced by a dedicated embed command.

Keywords (YAKE / RAKE)

Keyword extraction is configured via the [keywords] config block (or inline JSON) — there is no single --keywords CLI flag. When enabled, extracted keywords appear on result.extracted_keywords (extractedKeywords in Node.js; the CLI JSON field is extracted_keywords). Two algorithms are available:

  • YAKE ("yake") — statistical, unsupervised single-document extraction. Good general default.
  • RAKE ("rake") — co-occurrence / phrase-based. Favors multi-word key phrases.

Feature-gated: keyword extraction requires the CLI to be built with the keywords-yake and/or keywords-rake Cargo features (both are in the default/full build). If the CLI was built without them, the [keywords] config block is silently ignored — result.extracted_keywords simply stays empty rather than erroring. The "yake" algorithm needs keywords-yake; "rake" needs keywords-rake.

Enable via inline JSON on the CLI:

xberg extract paper.pdf --format json \
  --config-json '{"keywords":{"algorithm":"yake","max_keywords":15,"language":"en"}}' \
  | jq '.result.extracted_keywords'

Or in a config file:

[keywords]
algorithm = "rake"       # "yake" or "rake"
max_keywords = 10        # default 10
min_score = 0.0          # filter below this score (normalized 0.0-1.0 for both algorithms)
ngram_range = [1, 3]     # unigrams..trigrams (default); config-file only
language = "en"          # stopword language; omit to skip stopword filtering
xberg extract report.pdf --config xberg.toml --format json | jq '.result.extracted_keywords'

Field notes:

  • max_keywords caps how many keywords are returned (default 10).
  • min_score filters low-scoring keywords. Both YAKE and RAKE normalize their scores to the 0.0-1.0 range with higher-is-better, so min_score retains keywords with score >= min_score identically for either algorithm.
  • ngram_range is [min, max]: [1,1] unigrams only, [1,2] adds bigrams, [1,3] (default) adds trigrams. Config-file only — it is not a field on the language bindings' KeywordConfig.
  • language enables stopword filtering for that language; omit it to disable stopword filtering entirely.

Language detection

Language detection is a real CLI flag: --detect-language. Detected languages appear on result.detected_languages:

xberg extract multilingual.pdf --detect-language true --format json \
  | jq '.result.detected_languages'

In a config file it lives under [language_detection]:

[language_detection]
enabled = true
min_confidence = 0.8
detect_multiple = false

The CLI flag enables detection with min_confidence = 0.8 and single-language mode; use the config block to detect multiple languages or tune confidence.

Embeddings (embed command)

The standalone embed command produces vector embeddings for text from --text (repeatable) or stdin. It does not run extraction — pipe extracted content in if you want document embeddings.

# Local ONNX preset model (default provider)
xberg embed --text "first passage" --text "second passage" --preset balanced

# Embed extracted document text
xberg extract report.pdf | xberg embed --preset quality

Presets for the local provider: fast, balanced (default), quality, multilingual. Output defaults to JSON (--format json).

--provider selects the embedding source:

Provider Flag Notes
local --preset <fast|balanced|quality|multilingual> Default. ONNX model, no API key.
llm --model <id> --api-key <key> liter-llm routing, e.g. openai/text-embedding-3-small.
plugin --plugin <name> A backend pre-registered in-process via the plugin API.
# Provider-hosted embeddings via an LLM
xberg embed --text "query text" \
  --provider llm --model openai/text-embedding-3-small --api-key "$OPENAI_API_KEY"

Local embedding presets must be down

अक्सर पूछे जाने वाले सवाल

YAKE और RAKE में क्या अंतर है?

YAKE एक सांख्यिकीय तरीका है जो सामान्य डिफ़ॉल्ट के रूप में अच्छा काम करता है, जबकि RAKE कई शब्दों वाले वाक्यांशों को पसंद करता है।

मेरे कीवर्ड क्यों गायब हैं?

कीवर्ड फ़ीचर टूल में बना होना चाहिए। अगर न हो, तो सेटिंग अनदेखी हो जाती है और सूची बिना त्रुटि के खाली रहती है।

एम्बेडिंग कहाँ बनती हैं?

एक अलग embed कमांड उन्हें बनाता है, सामान्य निष्कर्षण से अलग।

जानकारी

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

Use when extracting keywords (YAKE/RAKE) from documents — and, secondarily, when detecting document language or generating embeddings for RAG and search. Covers the keyword config (and its feature gating), `--detect-language`, and the standalone `embed` command with real flags.

repo: xberg-io/xberg

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

xberg-batch-extraction

9.5k

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

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

xberg-chunking

9.5k

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

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

xberg-extracting-tables

9.5k

आपके एजेंट को PDF, स्प्रेडशीट और छवियों से तालिकाएँ निकालने में मदद करती है, पंक्तियाँ और कॉलम markdown या संरचित डेटा के रूप में सही रखते हुए।

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

xberg-extracting-with-ocr

9.5k

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

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

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