public static IScorable <IResolver, double> Normalize(this IScorable <IResolver, Match> scorable) { return(scorable.SelectScore((r, m) => RegexMatchScorable.ScoreFor(m))); }
public static IScorable <IResolver, double> Normalize(this IScorable <IResolver, IntentRecommendation> scorable) { return(scorable.SelectScore((r, i) => i.Score ?? 0)); }
public static IScorable <IResolver, double> Normalize(this IScorable <IResolver, Binding> scorable) { return(scorable.SelectScore((r, b) => 1.0)); }