Delen via


TextChunker Class

Definition

Split text in chunks, attempting to leave meaning intact. For plain text, split looking at new lines first, then periods, and so on. For markdown, split looking at punctuation first, and so on.

public static class TextChunker
type TextChunker = class
Public Class TextChunker
Inheritance
TextChunker

Methods

SplitMarkDownLines(String, Int32, TextChunker+TokenCounter)

Split markdown text into lines.

SplitMarkdownParagraphs(IEnumerable<String>, Int32, Int32, String, TextChunker+TokenCounter)

Split markdown text into paragraphs.

SplitPlainTextLines(String, Int32, TextChunker+TokenCounter)

Split plain text into lines.

SplitPlainTextParagraphs(IEnumerable<String>, Int32, Int32, String, TextChunker+TokenCounter)

Split plain text into paragraphs.

Applies to