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

21
LINES

< > BotCompany Repo | #1027451 // Language 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 (12172L/63K).

!7

concept Example {
  S text, language;
}

cmodule Examples > DynCRUD<Example> {
  start {
    indexConceptFieldsCI(Example, 'language, Example, 'text);
  }
  
  // API
  
  Cl<S> examplesForLanguage(S language) {
    ret collect text(conceptsWhereCI Example(+language));
  }
  
  void addExample(S text, S language) {
    uniqCI Example(+text, +language);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027451
Snippet name: Language Detection Examples
Eternal ID of this version: #1027451/3
Text MD5: 8ce0831ef60f302e6d114d746ea8954a
Transpilation MD5: f998414bbd0532537d49df3b8938fae7
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 13:00:21
Source code size: 384 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 188 / 579
Version history: 2 change(s)
Referenced in: [show references]