This commit is contained in:
14
docs/snippets/elixir/config/keyword_extraction_config.md
Normal file
14
docs/snippets/elixir/config/keyword_extraction_config.md
Normal file
@@ -0,0 +1,14 @@
|
||||
```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)}")
|
||||
```
|
||||
Reference in New Issue
Block a user