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

15
LINES

< > BotCompany Repo | #1018195 // Gather word category facts for text [dev.]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (9724L/71K).

!7

p-exp {
  S text = mL_raw("Program 1");
  
  new TreeSet<S> facts;
  
  for (S word : words2(text)) {
    LS cats = ai_categoriesForWord(word);
    for (S cat : cats)
      facts.add(quote(word) + " is " + a(underscoresToSpaces(deAngleBracket(cat))));
  }
  
  pnl(facts);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018195
Snippet name: Gather word category facts for text [dev.]
Eternal ID of this version: #1018195/4
Text MD5: c3614fcc48aec4ed0f5fdd9d670faa98
Transpilation MD5: 2eb7da91a6f2cc70c7da5c8f186abfdb
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-09 17:58:12
Source code size: 292 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 271 / 628
Version history: 3 change(s)
Referenced in: [show references]