LLamaSharp/LLama/Abstractions/ITextTransform.cs

22 lines
561 B
C#

namespace LLama.Abstractions
{
/// <summary>
/// An interface for text transformations.
/// These can be used to compose a pipeline of text transformations, such as:
/// - Tokenization
/// - Lowercasing
/// - Punctuation removal
/// - Trimming
/// - etc.
/// </summary>
public interface ITextTransform
{
/// <summary>
/// Takes a string and transforms it.
/// </summary>
/// <param name="text"></param>
/// <returns></returns>
string Transform(string text);
}
}