Skip to content

groonga/groonga-tokenizer-friso

Repository files navigation

Friso tokenizer for Groonga

Install

Install libgroonga-dev, friso in the advance.

Build this tokenizer.

% ./configure --with-friso=PATH_TO_FRISO_DIR --with-friso-ini=PATH_TO_INI_FILE
% make
% sudo make install

Friso is installed into /usr/lib and /usr/include/friso by default. In this case, you should specify --with-friso=/usr option.

Usage

Register tokenizers/friso:

% groonga DB
> register tokenizers/friso
[[0,0.0,0.0],true]

Now, you can use TokenFriso that tokenizes the sentence by each word segmentation:

> tokenize TokenFriso "Groonga是一款可嵌入式的全文搜寻引擎"
[
  [
    0,
    0.0,
    0.0
  ],
  [
    {
      "value": "Groonga",
      "position": 0
    },
    {
      "value": "是",
      "position": 1
    },
    {
      "value": "一款",
      "position": 2
    },
    {
      "value": "可",
      "position": 3
    },
    {
      "value": "嵌入",
      "position": 4
    },
    {
      "value": "式",
      "position": 5
    },
    {
      "value": "的",
      "position": 6
    },
    {
      "value": "全文",
      "position": 7
    },
    {
      "value": "搜寻引擎",
      "position": 8
    }
  ]
]

License

LGPLv2.1. It is same as Groonga.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published