1 | static double ai_regexpMixScoreIC(Collection<S> regexps1, Collection<S> regexps2, Collection<S> sentences, S info) {
|
2 | double score = 0; |
3 | for unnull (S s : sentences) {
|
4 | int score1 = l(matchingRegexpsIC(regexps1, s)); |
5 | continue if score1 == 0; |
6 | LS l = matchingRegexpsIC(regexps2, s); |
7 | double d = score1*l(l); |
8 | if (nempty(l)) print("[" + d + "] " + info + " because: " + quote(s) /*+ " - " + l*/);
|
9 | score += d; |
10 | } |
11 | ret score; |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023749 |
| Snippet name: | ai_regexpMixScoreIC |
| Eternal ID of this version: | #1023749/6 |
| Text MD5: | f3dfebd0a99d0f69b4f09cdcd2a72995 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-07-07 23:46:49 |
| Source code size: | 458 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 539 / 562 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |