Execution example:: tokenize --tokenizer 'TokenNgram("loose_symbol", true, "loose_blank", true)' --string "0123(45)6789" --normalizer NormalizerAuto # [ # [ # 0, # 1337566253.89858, # 0.000355720520019531 # ], # [ # { # "value": "0123", # "position": 0, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "(", # "position": 1, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "45", # "position": 2, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": ")", # "position": 3, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "6789", # "position": 4, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "￰", # "position": 5, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "0123456789", # "position": 6, # "force_prefix": false, # "force_prefix_search": false # } # ] # ] tokenize --tokenizer 'TokenNgram("loose_symbol", true, "loose_blank", true)' --string "0123-45-6789" --normalizer NormalizerAuto # [ # [ # 0, # 1337566253.89858, # 0.000355720520019531 # ], # [ # { # "value": "0123", # "position": 0, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "-", # "position": 1, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "45", # "position": 2, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "-", # "position": 3, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "6789", # "position": 4, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "￰", # "position": 5, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "0123456789", # "position": 6, # "force_prefix": false, # "force_prefix_search": false # } # ] # ] tokenize --tokenizer 'TokenNgram("loose_symbol", true, "loose_blank", true)' --string "0123 45 6789" --normalizer NormalizerAuto # [ # [ # 0, # 1337566253.89858, # 0.000355720520019531 # ], # [ # { # "value": "0123", # "position": 0, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "45", # "position": 1, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "6789", # "position": 2, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "￰", # "position": 3, # "force_prefix": false, # "force_prefix_search": false # }, # { # "value": "0123456789", # "position": 4, # "force_prefix": false, # "force_prefix_search": false # } # ] # ]