
TruncateTokenFilter
- Namespace
- Rowles.LeanCorpus.Analysis.Filters
- Assembly
- Rowles.LeanCorpus.dll
Truncates token text to a maximum character length.
public sealed class TruncateTokenFilter : ITokenFilter
TruncateTokenFilter
- Implements
Constructors
TruncateTokenFilter(int)
Initialises a new TruncateTokenFilter with the specified maximum length.
Methods
Apply(List<Token>)
Applies the filter to the token list, modifying it in place.