Property InputFormat
- Namespace
- LMKit.Translation
- Assembly
- LM-Kit.NET.dll
InputFormat
The syntax of the text handed to Translate(string, Language, CancellationToken). Auto (the default) reads it from the text itself; Markdown and PlainText state it.
public TextFormat InputFormat { get; set; }
Property Value
Remarks
A Markdown input is cut at its block boundaries when it is too long for one pass - a heading opens a chunk, and a table, a list or a fenced code block is never cut in two - and every chunk carries the instruction to keep the markup where it stands and translate only the words a reader sees. Read as plain text, the same document would be cut at the nearest paragraph, which can fall inside a table, and its markers would be left to the model's discretion. Image and attachment inputs ignore this property.