1 | static Set<S> uniqNgrams(int n, Collection<S> lines) { |
2 | new Set<S> set; |
3 | for (S s : unnull(lines)) |
4 | addAll(set, ngrams(n, s)); |
5 | ret set; |
6 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014317 |
Snippet name: | uniqNgrams |
Eternal ID of this version: | #1014317/6 |
Text MD5: | 95b35473d000cc1490c0e565b4ba3d15 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-20 03:07:46 |
Source code size: | 149 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 380 / 417 |
Version history: | 5 change(s) |
Referenced in: | [show references] |