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