Libraryless. Click here for Pure Java version (7869L/52K).
1 | // returns list of parsed sentences with round brackets |
2 | static LS recursiveProbabilisticParse(S productions, S sentenceClass, S input, O... _) { |
3 | optPar RecursiveProbabilisticParser1 parser = new RecursiveProbabilisticParser1; |
4 | parser.sentenceClass = sentenceClass; |
5 | parser.productionsStartWithClass = true; |
6 | parser.loadRules(productions); |
7 | parser.useRoundBrackets = true; |
8 | ret parser.parse(input); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1027995 |
Snippet name: | recursiveProbabilisticParse |
Eternal ID of this version: | #1027995/5 |
Text MD5: | 927be037a25c4d466e10b5d7b03f37ef |
Transpilation MD5: | d9508ccc3bb9f2c98ecf7350191b4db7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-05-26 14:17:48 |
Source code size: | 414 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 251 / 398 |
Version history: | 4 change(s) |
Referenced in: | [show references] |