split

package
v1.781.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMarkdownTree

func ExtractMarkdownTree(markdownText string) map[string]string

func ExtractTablesAndRemainder

func ExtractTablesAndRemainder(markdownText string) (string, []string, error)

func ExtractTablesWithContext

func ExtractTablesWithContext(markdownText string, contextKey string) (string, []string, error)

Types

type BasicSplitProvider

type BasicSplitProvider struct{}

func NewBasicSplitProvider

func NewBasicSplitProvider() (*BasicSplitProvider, error)

func (*BasicSplitProvider) SplitText

func (p *BasicSplitProvider) SplitText(text string) ([]string, error)

type DefaultSplitProvider

type DefaultSplitProvider struct {
	TextType string
}

func NewDefaultSplitProvider

func NewDefaultSplitProvider(textType string) (*DefaultSplitProvider, error)

func (*DefaultSplitProvider) SplitText

func (p *DefaultSplitProvider) SplitText(text string) ([]string, error)

type MarkdownSplitProvider

type MarkdownSplitProvider struct{}

func NewMarkdownSplitProvider

func NewMarkdownSplitProvider() (*MarkdownSplitProvider, error)

func (*MarkdownSplitProvider) SplitText

func (p *MarkdownSplitProvider) SplitText(text string) ([]string, error)

type QaSplitProvider

type QaSplitProvider struct{}

QaSplitProvider structure

func NewQaSplitProvider

func NewQaSplitProvider() (*QaSplitProvider, error)

NewQaSplitProvider creates a new instance of QaSplitProvider

func (*QaSplitProvider) SplitText

func (p *QaSplitProvider) SplitText(text string) ([]string, error)

SplitText method splits the text into question-answer pairs

type SplitProvider

type SplitProvider interface {
	SplitText(text string) ([]string, error)
}

func GetSplitProvider

func GetSplitProvider(typ string) (SplitProvider, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL