7.8.3. TokenBigramIgnoreBlank
#
7.8.3.1. Summary#
TokenBigramIgnoreBlank
is similar to TokenBigram. The
difference between them is blank handling. TokenBigramIgnoreBlank
ignores white-spaces in continuous symbols and non-ASCII characters.
7.8.3.2. Syntax#
TokenBigramIgnoreBlank
hasn’t parameter:
TokenBigramIgnoreBlank
7.8.3.3. Usage#
You can find difference of them by 日 本 語 ! ! !
text because it
has symbols and non-ASCII characters.
Here is a result by TokenBigram :
Execution example:
tokenize TokenBigram "日 本 語 ! ! !" NormalizerAuto
# [
# [
# 0,
# 1337566253.89858,
# 0.000355720520019531
# ],
# [
# {
# "value": "日",
# "position": 0,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "本",
# "position": 1,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "語",
# "position": 2,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "!",
# "position": 3,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "!",
# "position": 4,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "!",
# "position": 5,
# "force_prefix": false,
# "force_prefix_search": false
# }
# ]
# ]
Here is a result by TokenBigramIgnoreBlank
:
Execution example:
tokenize TokenBigramIgnoreBlank "日 本 語 ! ! !" NormalizerAuto
# [
# [
# 0,
# 1337566253.89858,
# 0.000355720520019531
# ],
# [
# {
# "value": "日本",
# "position": 0,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "本語",
# "position": 1,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "語",
# "position": 2,
# "force_prefix": false,
# "force_prefix_search": false
# },
# {
# "value": "!!!",
# "position": 3,
# "force_prefix": false,
# "force_prefix_search": false
# }
# ]
# ]