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

16
LINES

< > BotCompany Repo | #1017740 // Entity Extraction Spike 1 [dev.]

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

Download Jar. Libraryless. Click here for Pure Java version (11162L/82K).

!7

p-exp {
  S input = "Wiggle {your big toe} and {your small toe}";
  PTElement tree = ai_parseToCulledTree(input);
  new HashSet<PTElement> toSkip;
  for (PTElement e : ai_scanParseTreeForCategory(tree, "<noun>")) {
    if (toSkip.contains(e)) continue;
    print("Entity found: " + e.text());
    PTElement ee = ai_parseTree_simplifyNode(e);
    if (ee != null && ee != e) {
      toSkip.add(ee);
      //print("Simplified -> " + ee);
    }
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1017740
Snippet name: Entity Extraction Spike 1 [dev.]
Eternal ID of this version: #1017740/7
Text MD5: ef4120be663227eff06b05cdaf194b8d
Transpilation MD5: 9a08f5388c3623331e1b3cb92c830ac4
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-08-07 20:44:08
Source code size: 465 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 359 / 825
Version history: 6 change(s)
Referenced in: [show references]