1 | // s = e.g. "John couldn't see the stage with Billy in front of him because he is so [short/tall]. Who is so [short/tall]?" |
2 | |
3 | sS winograd_takeFirstOption(S s) { |
4 | ret regexpReplaceWithFirstGroup("\\[(\\w+)/\\w+\\]", s); |
5 | } |
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: | #1027099 |
Snippet name: | winograd_takeFirstOption |
Eternal ID of this version: | #1027099/1 |
Text MD5: | 10e00104d6fefacb1e736da0148b5a11 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-18 20:15:18 |
Source code size: | 226 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 231 / 263 |
Referenced in: | [show references] |