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

7
LINES

< > BotCompany Repo | #1027476 // scoreRegexpIC

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2438L/16K).

static double scoreRegexpIC(S regexp, Cl<S> pos, Cl<S> neg) {
  PosNegMatrix<LS> matrix = posNegMatrixForRegexpIC(regexp, pos, neg);
  PosNegMatrix<Int> m2 = posNegMatrixOfLists_lengths(matrix);
  double quality = posNegMatrixOfInts_quality(m2);
  //if (verbose) print(regexp + ": " + m2 + " / " + quality);
  ret quality;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027476
Snippet name: scoreRegexpIC
Eternal ID of this version: #1027476/1
Text MD5: acf4726cb03c98460d058a2ad3bed53c
Transpilation MD5: b862970fe1cd881f39459eff733ab6a3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 14:08:19
Source code size: 330 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 249
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1027494 - scoreNGramScorer