static Map<S, PosNegScore> countPosNegAsCIMap(Collection<S> posExamples, Collection<S> negExamples) { Map<S, PosNegScore> map = ciMap(); for unnull (S word : posExamples) getOrCreatePosNegScore(map, word).pos++; for unnull (S word : negExamples) getOrCreatePosNegScore(map, word).neg++; ret map; }
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: | #1023490 |
| Snippet name: | countPosNegAsCIMap |
| Eternal ID of this version: | #1023490/1 |
| Text MD5: | a60f5ece58cf6074155ec8752e7e0cf8 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-06-25 02:07:13 |
| Source code size: | 320 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 416 / 470 |
| Referenced in: | [show references] |