lindera-server

Crates.iolindera-server
lib.rslindera-server
version0.12.0
sourcesrc
created_at2022-03-18 07:10:40.637301
updated_at2022-03-18 07:10:40.637301
descriptionLindera server.
homepagehttps://github.com/lindera-morphology/lindera-server
repositoryhttps://github.com/lindera-morphology/lindera-server
max_upload_size
id552563
size72,160
Minoru Osuka (mosuka)

documentation

https://docs.rs/lindera-server

README

lindera-server

A Japanese Morphological Analysis Server.

Run server

% cargo run -- -H 0.0.0.0 -p=3333 -t ipadic

Tokenize text

% curl -XPOST -H 'Content-type: text/plain' http://localhost:3333/tokenize --data-binary 'すもももももももものうち' | jq .
[
  {
    "detail": [
      "名詞",
      "一般",
      "*",
      "*",
      "*",
      "*",
      "すもも",
      "スモモ",
      "スモモ"
    ],
    "text": "すもも"
  },
  {
    "detail": [
      "助詞",
      "係助詞",
      "*",
      "*",
      "*",
      "*",
      "も",
      "モ",
      "モ"
    ],
    "text": "も"
  },
  {
    "detail": [
      "名詞",
      "一般",
      "*",
      "*",
      "*",
      "*",
      "もも",
      "モモ",
      "モモ"
    ],
    "text": "もも"
  },
  {
    "detail": [
      "助詞",
      "係助詞",
      "*",
      "*",
      "*",
      "*",
      "も",
      "モ",
      "モ"
    ],
    "text": "も"
  },
  {
    "detail": [
      "名詞",
      "一般",
      "*",
      "*",
      "*",
      "*",
      "もも",
      "モモ",
      "モモ"
    ],
    "text": "もも"
  },
  {
    "detail": [
      "助詞",
      "連体化",
      "*",
      "*",
      "*",
      "*",
      "の",
      "ノ",
      "ノ"
    ],
    "text": "の"
  },
  {
    "detail": [
      "名詞",
      "非自立",
      "副詞可能",
      "*",
      "*",
      "*",
      "うち",
      "ウチ",
      "ウチ"
    ],
    "text": "うち"
  }
]
Commit count: 14

cargo fmt