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

12
LINES

< > BotCompany Repo | #1024452 // agiBlue_importTatoebaEnglishSentences

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4606L/30K).

1  
svoid agiBlue_importTatoebaEnglishSentences(File sentencesCSV) {
2  
  Set<S> languagesInterestedIn = litset('eng);
3  
4  
  new MultiMap<S> sentences;
5  
  for (T3<Int, S, S> t : tatoeba_parseSentencesCSV(userDir("dev/sentences-db/sentences.csv")))
6  
    if (contains(languagesInterestedIn, t.b))
7  
      sentences.put(t.b, t.c);
8  
9  
  set agiBlueURL_noHTTPS; // weird bug
10  
  print("Posting " + nSentences(sentences.get('eng)));
11  
  agiBlue_createManyPagesInSlice('flrafqthdsbzvfdl, sentences.get('eng));
12  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1024452
Snippet name: agiBlue_importTatoebaEnglishSentences
Eternal ID of this version: #1024452/1
Text MD5: 73c9efbf6ce70c7b19d9a6f2a40c22e3
Transpilation MD5: 12aa8c3d7ba4fdd2b7709c8f790fee45
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-08-13 11:23:37
Source code size: 495 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 204 / 282
Referenced in: [show references]