class

Xerp::Adapters::WindowAdapter

Inherits Xerp::Adapters::Adapter < Reference < Object

Adapter that creates fixed-size overlapping window blocks. Used as a fallback when structure detection is not applicable.

Constants

DEFAULT_WINDOW_OVERLAP = 10
DEFAULT_WINDOW_SIZE = 50

Constructors

new(window_size : Int32 = DEFAULT_WINDOW_SIZE, window_overlap : Int32 = DEFAULT_WINDOW_OVERLAP)
Source

Instance methods

build_blocks(lines : Array(String)) : AdapterResult

Builds blocks from an array of lines. Lines are 0-indexed in the array.

Source
file_type

Returns the file type string for this adapter.

Source