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

13
LINES

< > BotCompany Repo | #1027485 // LanguageDetectionTask

JavaX fragment (include)

1  
sclass LanguageDetectionTask {
2  
  // set by user
3  
  S lang1, lang2;
4  
  LS pos, neg;
5  
  
6  
  // set automatically
7  
  S task;
8  
  
9  
  S task() {
10  
    if (task == null) task = lang1 + " vs " + lang2 + " n=" + l(pos);
11  
    ret task;
12  
  }
13  
}

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: #1027485
Snippet name: LanguageDetectionTask
Eternal ID of this version: #1027485/1
Text MD5: 03eb435f90f6c8843cd6ffc9c32c6920
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 14:52:34
Source code size: 234 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 217 / 490
Referenced in: [show references]