AlphaOrNumeric constructor
AlphaOrNumeric({
- double termDecay = 0.1,
Construct tokens
see: TermMapping.termDecay for explanation of termDecay usage.
Implementation
AlphaOrNumeric({double termDecay = 0.1})
: super(
(String str, bool caseSensitive, bool unicode) =>
LinkedHashSet<String>.from((unicode
? _matchAlphaOrNumericUnicode
: _matchAlphaOrNumericAscii)
.allMatches(caseSensitive ? str : str.toLowerCase())
.map((m) => m[0])),
termDecay);