Gå til hovedinnhold

kapi exec entity-extract

kapi entity-extract [files...]

Detekter navngitte enheter (personer, organisasjoner, produkter, steder) med en LLM, en lokal NER-modell, eller begge

Commandexec entity-extract
Try it (demo)

Demo mode — illustrative output from a built-in stub, not a real model. Install the CLI to run with your own API key.

kapi exec entity-extract
Flags
FlagTypeDefaultDescription
--api-key stringAPI key for the AI provider
--batch-concurrency int1Number of concurrent batch calls (0 or 1 = sequential)
--batch-size int1Number of blocks per LLM call (0 or 1 = one block per call)
--concurrency , -jint0max parallel files (0 = auto)
--credential stringsaved credential name to use (see 'kapi credentials list')
--encoding , -estringinput file encoding
--engine stringllmllm (AI provider; default) / ner (local on-device model: nothing leaves the machine) / hybrid (both) (LLM (AI provider), Local NER (on-device), Hybrid (NER + LLM))
--fail-on-unknown boolfalseexit with error if any file cannot be processed (default: skip with warning)
--format , -fstringoverride input format detection
--json boolfalseoutput results as JSON
--known-terms stringSliceTerms to exclude from extraction (already in the terms store)
--locale stringLocale of the source content
--map , -mstringArraymap glob pattern to format (e.g. '*.docx=okf_openxml:test')
--model stringAI model name
--no-warn boolfalsesuppress warnings for skipped files
--pack boolfalsewhen transforming a .kpz, also eject the result to the .kpz (auto-pack)
--parallel-blocks int0fan out block processing across N goroutines (0 = off)
--progress , -pboolfalseshow progress bar
--provider stringanthropicAI provider (Anthropic, OpenAI, Gemini, Azure OpenAI, Claude Code, Ollama, Demo (illustrative))
--source-lang stringsource language (e.g. en, en-US; defaults to the project's source_language, else en)
--strict boolfalsealias for --fail-on-unknown
--target-lang stringtarget language (e.g. fr, de-DE)
--trace stringwrite flow trace JSON to file (for flow visualization)

← Back to the Command Reference