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

24
LINES

< > BotCompany Repo | #1020830 // Yes/No Detection Examples

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (18744L/106K).

1  
!7
2  
3  
concept Example {
4  
  S input;
5  
  S classification; // 'yes, 'no or something else
6  
}
7  
8  
compact module YesNoExamples > DynCRUD<Example> {
9  
  *() { super(Example); }
10  
  
11  
  // API
12  
  
13  
  void addEntry(S input, S classification) {
14  
    uniq_sync(Example, +input, +classification);
15  
  }
16  
  
17  
  LS yesPatterns() {
18  
    ret collect('input, conceptsWhere(Example, classification := 'yes));
19  
  }
20  
  
21  
  LS noPatterns() {
22  
    ret collect('input, conceptsWhere(Example, classification := 'no));
23  
  }
24  
}

Author comment

Began life as a copy of #1020788

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020830
Snippet name: Yes/No Detection Examples
Eternal ID of this version: #1020830/3
Text MD5: b50b2f7c82f947148e6f9301c18bb309
Transpilation MD5: 0f1519702b41aadd5c5069e7558c9bd9
Author: stefan
Category: javax / stefan's os / nlp
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-03 20:45:56
Source code size: 500 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 322 / 1320
Version history: 2 change(s)
Referenced in: [show references]