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

5
LINES

< > BotCompany Repo | #1027492 // parseNGramScorerExpression

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

Transpiled version (2245L) is out of date.

static Pair<LS> parseNGramScorerExpression(S exp) {
  int i = smartIndexOf(exp, '^');
  S pos = takeFirst(exp, i), neg = substring(exp, i+1);
  ret pair(splitAt(pos, "|"), splitAt(neg, "|"));
}

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: #1027492
Snippet name: parseNGramScorerExpression
Eternal ID of this version: #1027492/2
Text MD5: 876825100cdfa7985267406f50798e7a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 15:37:46
Source code size: 197 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 192 / 278
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1027497 - test_parseNGramScorerExpression