Download Jar. Libraryless. Click here for Pure Java version (11162L/82K).
1 | !7 |
2 | |
3 | p-exp { |
4 | S input = "Wiggle {your big toe} and {your small toe}"; |
5 | PTElement tree = ai_parseToCulledTree(input); |
6 | new HashSet<PTElement> toSkip; |
7 | for (PTElement e : ai_scanParseTreeForCategory(tree, "<noun>")) { |
8 | if (toSkip.contains(e)) continue; |
9 | print("Entity found: " + e.text()); |
10 | PTElement ee = ai_parseTree_simplifyNode(e); |
11 | if (ee != null && ee != e) { |
12 | toSkip.add(ee); |
13 | //print("Simplified -> " + ee); |
14 | } |
15 | } |
16 | } |
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: | 494 / 1158 |
Version history: | 6 change(s) |
Referenced in: | [show references] |