Giter Site home page Giter Site logo

groonga-tokenizer-friso's Introduction

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.

groonga-tokenizer-friso's People

Contributors

kenhys avatar kou avatar

Watchers

James Cloos avatar Naoya Murakami avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.