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

13
LINES

< > BotCompany Repo | #1021409 // ai_matchTwoTokenizations

JavaX fragment (include)

static Map<TokenAndRange, S> ai_matchTwoTokenizations(LS l1, LS l2) {
  int n = l(l1);
  if (n != l(l2)) null;
  L<TokenAndRange> l1t = addRangesToTokenization(l1);
  new LinkedHashMap<TokenAndRange, S> map;
  for i to n: {
    TokenAndRange a = l1t.get(i);
    S b = l2.get(i);
    if (!eqic(a.token, b))
      map.put(a, b);
  }
  ret map;
}

Author comment

Began life as a copy of #1021397

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021409
Snippet name: ai_matchTwoTokenizations
Eternal ID of this version: #1021409/1
Text MD5: 2873fa5ab903d6f7c420ace1da9c51d8
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 23:02:48
Source code size: 355 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 189 / 233
Referenced in: [show references]