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 703 B

123456789101112131415161718192021222324252627
  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. /// <summary>
  21. /// Copy the transform.
  22. /// </summary>
  23. /// <returns></returns>
  24. ITextTransform Clone();
  25. }
  26. }