Skip to content

lindera/lindera-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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": "うち"
  }
]