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

5
LINES

< > BotCompany Repo | #1014324 // guessGermanOrEnglish_upperNgrams - returns "german", "english" or null

JavaX fragment (include)

static S guessGermanOrEnglish_upperNgrams(int n, S text) {
  Set<S> set1 = uniqNgrams(n, toUpper(mechCISet("English words")));
  Set<S> set2 = uniqNgrams(n, toUpper(mechCISet("Deutsche Wörter")));
  ret upperNgramScoreBySet(n, text, set1, set2, "english", "german");
}

Author comment

Began life as a copy of #1014316

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014324
Snippet name: guessGermanOrEnglish_upperNgrams - returns "german", "english" or null
Eternal ID of this version: #1014324/3
Text MD5: 2f22ef0255e9a509775c99f247b2ef3c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 03:46:37
Source code size: 273 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 375 / 772
Version history: 2 change(s)
Referenced in: [show references]