
KeywordMarkerFilter
- Namespace
- Rowles.LeanCorpus.Analysis.Filters
- Assembly
- Rowles.LeanCorpus.dll
Identifies tokens that should be treated as keywords by compatible analysers.
public sealed class KeywordMarkerFilter : ISpanTokenFilter
- Inheritance
-
KeywordMarkerFilter
- Implements
KeywordMarkerFilter(IEnumerable<string>)
Initialises a new KeywordMarkerFilter with the specified keyword set.
Apply(ReadOnlySpan<char>, int, int, string, int, byte[]?, ISpanTokenSink)
Applies the filter to a token and emits the transformed token into sink.