AlgorithmOptions class

Configuration options for specific similarity algorithms.

Constructors

AlgorithmOptions({double jaroWinklerPrefixScale = 0.1, double jaroWinklerBoostThreshold = 0.7, int ngramSize = 3, double tverskyAlpha = 0.5, double tverskyBeta = 0.5, bool stemTokens = false})
Creates an AlgorithmOptions.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
jaroWinklerBoostThreshold double
Minimum Jaro score required to apply the Winkler boost (default: 0.7).
final
jaroWinklerPrefixScale double
Scaling factor for the Jaro-Winkler prefix adjustment (default: 0.1).
final
ngramSize int
The size of n-grams (e.g., 3 for trigrams) (default: 3).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stemTokens bool
Whether to stem tokens before comparing (default: false).
final
tverskyAlpha double
The alpha parameter for Tversky index (default: 0.5).
final
tverskyBeta double
The beta parameter for Tversky index (default: 0.5).
final

Methods

copyWith({double? jaroWinklerPrefixScale, double? jaroWinklerBoostThreshold, int? ngramSize, double? tverskyAlpha, double? tverskyBeta, bool? stemTokens}) AlgorithmOptions
Creates a copy of this object with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate() → void
Runtime validation helper. Must throw InvalidConfigurationException (not AssertionError) when invalid.

Operators

operator ==(Object other) bool
The equality operator.
inherited