You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ITextTransform.cs 561 B

123456789101112131415161718192021
  1. namespace LLama.Abstractions
  2. {
  3. /// <summary>
  4. /// An interface for text transformations.
  5. /// These can be used to compose a pipeline of text transformations, such as:
  6. /// - Tokenization
  7. /// - Lowercasing
  8. /// - Punctuation removal
  9. /// - Trimming
  10. /// - etc.
  11. /// </summary>
  12. public interface ITextTransform
  13. {
  14. /// <summary>
  15. /// Takes a string and transforms it.
  16. /// </summary>
  17. /// <param name="text"></param>
  18. /// <returns></returns>
  19. string Transform(string text);
  20. }
  21. }