1 | static S guessGermanOrEnglish_upperNgrams(int n, S text) {
|
2 | Set<S> set1 = uniqNgrams(n, toUpper(mechCISet("English words")));
|
3 | Set<S> set2 = uniqNgrams(n, toUpper(mechCISet("Deutsche Wörter")));
|
4 | ret upperNgramScoreBySet(n, text, set1, set2, "english", "german"); |
5 | } |
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: | 592 / 994 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |