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).

!7

concept Example {
  S input;
  S classification; // 'yes, 'no or something else
}

compact module YesNoExamples > DynCRUD<Example> {
  *() { super(Example); }
  
  // API
  
  void addEntry(S input, S classification) {
    uniq_sync(Example, +input, +classification);
  }
  
  LS yesPatterns() {
    ret collect('input, conceptsWhere(Example, classification := 'yes));
  }
  
  LS noPatterns() {
    ret collect('input, conceptsWhere(Example, classification := 'no));
  }
}

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: 320 / 1316
Version history: 2 change(s)
Referenced in: [show references]