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

9
LINES

< > BotCompany Repo | #1008723 // Guess module: Guess object

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

Libraryless. Click here for Pure Java version (1026L/7K/23K).

!7

svoid guess(S s, SS data) {
  int start = or(intRangeMax(
    ai_parseAction(data.get("subject")),
    ai_parseAction(data.get("verb"))), 0);
  int end = l(dropPunctuationAtEnd(s));
  data.put("object", ai_makeAction(s, start, end));
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1008723
Snippet name: Guess module: Guess object
Eternal ID of this version: #1008723/3
Text MD5: 172a576eaba7eda9b3a89707d2af371f
Transpilation MD5: af5ec1894673d746c4846fc71f29a3a1
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-30 17:27:23
Source code size: 247 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 768
Version history: 2 change(s)
Referenced in: [show references]