Debian Codegraph @

doc/source/example/reference/tokenizers/token-delimit-pattern-option-with-complex-pattern.log

raw
1 Execution example::
2
3 tokenize 'TokenDelimit("pattern", "([。!?]+(?![)」])|[\\r\\n]+)\\s*")' "これはペンですか!?リンゴですか?「リンゴです。」"
4 # [
5 # [
6 # 0,
7 # 1337566253.89858,
8 # 0.000355720520019531
9 # ],
10 # [
11 # {
12 # "value": "これはペンですか",
13 # "position": 0,
14 # "force_prefix": false,
15 # "force_prefix_search": false
16 # },
17 # {
18 # "value": "リンゴですか",
19 # "position": 1,
20 # "force_prefix": false,
21 # "force_prefix_search": false
22 # },
23 # {
24 # "value": "「リンゴです。」",
25 # "position": 2,
26 # "force_prefix": false,
27 # "force_prefix_search": false
28 # }
29 # ]
30 # ]