Files
fil/docs/snippets/elixir/config/keyword_extraction_config.md

15 lines
357 B
Markdown
Raw Normal View History

2026-06-01 23:40:55 +02:00
```elixir title="Elixir"
config_json = Jason.encode!(%{
"keywords" => %{
"algorithm" => "Yake",
"max_keywords" => 10,
"min_score" => 0.1,
"ngram_range" => [1, 3],
"language" => "en"
}
})
{:ok, result} = Kreuzberg.extract_file_sync("document.pdf", "application/pdf", config_json)
IO.puts("Keywords: #{inspect(result.keywords)}")
```