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

10
LINES

< > BotCompany Repo | #1017910 // Parse with simpler rules [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (12708L/91K).

!7

p-exp {
  S s = "hey bot yo what's the time yo?";
  AI_BottomUpParser1 p = ai_emptyBUParser();
  for (S a : mL("Appellations"))
    p.wordsToCategories.put(a, litset("<appellation>"));
  p.parse(javaTokNPunctuation(s));
  p.printWordsAndGroups();
}

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: #1017910
Snippet name: Parse with simpler rules [OK]
Eternal ID of this version: #1017910/5
Text MD5: fa8dd93b92cd4c549775dc8d0db53964
Transpilation MD5: a7592c3230796ae25b95d11ba26edc36
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 18:10:13
Source code size: 261 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 372 / 913
Version history: 4 change(s)
Referenced in: #1018198 - Group simple noun phrases using BU parser [OK]