1 | static Map<TokenAndRange, S> ai_matchTwoTokenizations(LS l1, LS l2) {
|
2 | int n = l(l1); |
3 | if (n != l(l2)) null; |
4 | L<TokenAndRange> l1t = addRangesToTokenization(l1); |
5 | new LinkedHashMap<TokenAndRange, S> map; |
6 | for i to n: {
|
7 | TokenAndRange a = l1t.get(i); |
8 | S b = l2.get(i); |
9 | if (!eqic(a.token, b)) |
10 | map.put(a, b); |
11 | } |
12 | ret map; |
13 | } |
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: | 510 / 545 |
| Referenced in: | [show references] |