| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
.. groonga-command |
| 4 |
.. database: tokenizers |
| 5 |
|
| 6 |
.. _token-bigram-ignore-blank: |
| 7 |
|
| 8 |
``TokenBigramIgnoreBlank`` |
| 9 |
========================== |
| 10 |
|
| 11 |
Summary |
| 12 |
------- |
| 13 |
|
| 14 |
``TokenBigramIgnoreBlank`` is similar to :ref:`token-bigram`. The |
| 15 |
difference between them is blank handling. ``TokenBigramIgnoreBlank`` |
| 16 |
ignores white-spaces in continuous symbols and non-ASCII characters. |
| 17 |
|
| 18 |
Syntax |
| 19 |
------ |
| 20 |
|
| 21 |
``TokenBigramIgnoreBlank`` hasn't parameter:: |
| 22 |
|
| 23 |
TokenBigramIgnoreBlank |
| 24 |
|
| 25 |
Usage |
| 26 |
----- |
| 27 |
|
| 28 |
You can find difference of them by ``日 本 語 ! ! !`` text because it |
| 29 |
has symbols and non-ASCII characters. |
| 30 |
|
| 31 |
Here is a result by :ref:`token-bigram` : |
| 32 |
|
| 33 |
.. groonga-command |
| 34 |
.. include:: ../../example/reference/tokenizers/token-bigram-with-white-spaces.log |
| 35 |
.. tokenize TokenBigram "日 本 語 ! ! !" NormalizerAuto |
| 36 |
|
| 37 |
Here is a result by ``TokenBigramIgnoreBlank``: |
| 38 |
|
| 39 |
.. groonga-command |
| 40 |
.. include:: ../../example/reference/tokenizers/token-bigram-ignore-blank-with-white-spaces.log |
| 41 |
.. tokenize TokenBigramIgnoreBlank "日 本 語 ! ! !" NormalizerAuto |