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

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