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

5
LINES

< > BotCompany Repo | #1028009 // directProbabilisticParse - probabilistic parse of one sentence with one pattern [dev.]

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7992L/53K).

sS directProbabilisticParse(S pattern, S rewritten, S input, O... _) {
  optPar RecursiveProbabilisticParser1 parser = new;
  parser.starsAreWildcards = true;
  ret first(recursiveProbabilisticParse("sentence => " + quote(pattern) + " => " + rewritten, "sentence", input, paramsPlus(_, +parser)));
}

Author comment

Began life as a copy of #1027995

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: #1028009
Snippet name: directProbabilisticParse - probabilistic parse of one sentence with one pattern [dev.]
Eternal ID of this version: #1028009/4
Text MD5: 7b2daac21052e8ee3f68ef589722ab6f
Transpilation MD5: 0c499db99e7ce38f11eba85055d1fcfa
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-02 22:57:23
Source code size: 303 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 216 / 324
Version history: 3 change(s)
Referenced in: [show references]