Skip to main content
`Ctrl`+`K`

# 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
    #   ],
    #   [
    #     {
    #       "position": 0,
    #       "force_prefix": false,
    #       "value": "日"
    #     },
    #     {
    #       "position": 1,
    #       "force_prefix": false,
    #       "value": "本"
    #     },
    #     {
    #       "position": 2,
    #       "force_prefix": false,
    #       "value": "語"
    #     },
    #     {
    #       "position": 3,
    #       "force_prefix": false,
    #       "value": "!"
    #     },
    #     {
    #       "position": 4,
    #       "force_prefix": false,
    #       "value": "!"
    #     },
    #     {
    #       "position": 5,
    #       "force_prefix": false,
    #       "value": "!"
    #     }
    #   ]
    # ]

Here is a result by `TokenBigramIgnoreBlank`:

Execution example:

    tokenize TokenBigramIgnoreBlank "日 本 語 ! ! !" NormalizerAuto
    # [
    #   [
    #     0,
    #     1337566253.89858,
    #     0.000355720520019531
    #   ],
    #   [
    #     {
    #       "position": 0,
    #       "force_prefix": false,
    #       "value": "日本"
    #     },
    #     {
    #       "position": 1,
    #       "force_prefix": false,
    #       "value": "本語"
    #     },
    #     {
    #       "position": 2,
    #       "force_prefix": false,
    #       "value": "語"
    #     },
    #     {
    #       "position": 3,
    #       "force_prefix": false,
    #       "value": "!!!"
    #     }
    #   ]
    # ]