Пример #1
0
 public static IScorable <IResolver, double> Normalize(this IScorable <IResolver, Match> scorable)
 {
     return(scorable.SelectScore((r, m) => RegexMatchScorable.ScoreFor(m)));
 }
Пример #2
0
 public static IScorable <IResolver, double> Normalize(this IScorable <IResolver, IntentRecommendation> scorable)
 {
     return(scorable.SelectScore((r, i) => i.Score ?? 0));
 }
Пример #3
0
 public static IScorable <IResolver, double> Normalize(this IScorable <IResolver, Binding> scorable)
 {
     return(scorable.SelectScore((r, b) => 1.0));
 }