Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1023749 // ai_regexpMixScoreIC

JavaX fragment (include)

static double ai_regexpMixScoreIC(Collection<S> regexps1, Collection<S> regexps2, Collection<S> sentences, S info) {
  double score = 0;
  for unnull (S s : sentences) {
    int score1 = l(matchingRegexpsIC(regexps1, s));
    continue if score1 == 0;
    LS l = matchingRegexpsIC(regexps2, s);
    double d = score1*l(l);
    if (nempty(l)) print("[" + d + "] " + info + " because: " + quote(s) /*+ " - " + l*/);
    score += d;
  }
  ret score;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023749
Snippet name: ai_regexpMixScoreIC
Eternal ID of this version: #1023749/6
Text MD5: f3dfebd0a99d0f69b4f09cdcd2a72995
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-07 23:46:49
Source code size: 458 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 310 / 332
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)