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

8
LINES

< > BotCompany Repo | #1030077 // CICBasedDetector

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

Libraryless. Click here for Pure Java version (2748L/17K).

1  
srecord CICBasedDetector(Map<S, Int> weights) implements IF1<S, Int> {
2  
  public Int get(S text) {
3  
    int sum = 0;
4  
    for (S s, int w : weights)
5  
      if (cic(text, s)) sum += w;
6  
    ret sum;
7  
  }
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030077
Snippet name: CICBasedDetector
Eternal ID of this version: #1030077/2
Text MD5: 40e134358794dd5924bd6aba7ec6deeb
Transpilation MD5: 976fab7c52badf3977ad4e2894b5b8f1
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-05 11:34:21
Source code size: 207 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 161 / 219
Version history: 1 change(s)
Referenced in: [show references]