33 lines
1.1 KiB
Elixir
Generated
33 lines
1.1 KiB
Elixir
Generated
# This file is auto-generated by alef — DO NOT EDIT.
|
|
# alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
|
# To regenerate: alef generate
|
|
# To verify freshness: alef verify --exit-code
|
|
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
|
defmodule Kreuzberg.TextExtractionResult do
|
|
@moduledoc """
|
|
Plain text and Markdown extraction result.
|
|
|
|
Contains the extracted text along with statistics and,
|
|
for Markdown files, structural elements like headers and links.
|
|
"""
|
|
|
|
@typedoc "Plain text and Markdown extraction result."
|
|
@type t :: %__MODULE__{
|
|
content: String.t() | nil,
|
|
line_count: non_neg_integer(),
|
|
word_count: non_neg_integer(),
|
|
character_count: non_neg_integer(),
|
|
headers: [String.t()] | nil,
|
|
links: [[String.t()]] | nil,
|
|
code_blocks: [[String.t()]] | nil
|
|
}
|
|
|
|
defstruct content: nil,
|
|
line_count: 0,
|
|
word_count: 0,
|
|
character_count: 0,
|
|
headers: nil,
|
|
links: nil,
|
|
code_blocks: nil
|
|
end
|