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

7
LINES

< > BotCompany Repo | #1008721 // Guess module: Split sentences

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

Libraryless. Click here for Pure Java version (900L/6K/22K).

!7

svoid guess(S sentence, SS data) {
  L<S> l = splitIntoSentences_v3(sentence);
  if (l(l) > 1)
    data.put("firstPart", ai_makeAction(sentence, intRange(0, l(first(l))))); // Hopefully this works
}

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: #1008721
Snippet name: Guess module: Split sentences
Eternal ID of this version: #1008721/2
Text MD5: ca86e2da7e6b306e27fe2025ac7dafaf
Transpilation MD5: 216ab2ecb00f5f6c5d7f0f28978eba73
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:21:09
Source code size: 208 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 377 / 717
Version history: 1 change(s)
Referenced in: [show references]