ホーム   Liplis   トップ   一覧 検索 最終更新   ヘルプ   最終更新のRSS
 

ClalisMecabFull のバックアップ(No.1)


Clalis形態素解析+

概要

  入力文章をMecabを使って形態素解析した結果を返します。
  このAPIで返される結果は、Mecabから出力される結果をすべて返してきます。
 
  文章の要素解析などに使用できるかと思います。
 
  Liplisのデータ収集、感情付与など、基礎機能として使用しています。
 
  この結果の出力には形態素解析器「Mecab」を使用しています。
  http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html
 
 

Mecab出力結果

  入力文章を分かち書きした上で、以下の情報を出力します。 

   表層形,品詞,品詞細分類1,品詞細分類2,品詞細分類3,活用形,活用型,原形,読み,発音

 
 

辞書

  「IPADIC」をシステム辞書としています。
   ユーザー辞書として、Clalisが学習した多くの固有名詞を含む辞書を使用しています。
   辞書は定期的に更新しています。
 

デモフォーム [#8Upaf2s]

以下のページでAPIを試すことが出来ます。

ClalisApi

 
 

APIリファレンス

SOAP

  • 引数
      sentence
  • 出力フォーマット
     XML

 

POST TO XML

  • 引数
      sentence
  • XML名前空間
     なし
  • 出力フォーマット
     XML

 

POST TO JSON

  • 引数
      sentence
  • 出力フォーマット
     JSON

 

REST TO XML

  • 引数
      sentence
  • XML名前空間
     なし
  • 出力フォーマット
     XML

 

REST TO JSON

  • 引数
      sentence
  • 出力フォーマット
     JSON

 

出力フォーマット

  要求方法によって出力フォーマットが異なります。
  フォーマットの種類は以下のとおりです。

XMLフォーマット https://liplis.mine.nu/XMLSchema 名前空間

#sh(xml){{
<?xml version="1.0" encoding="utf-8"?>
<resMecabResultFull xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://liplis.mine.nu/XMLSchema">
<resWordList>
<msgMecabResultFull>
<idx>int</idx>
<name>string</name>
<pos>string</pos>
<pos1>string</pos1>
<pos2>string</pos2>
<pos3>string</pos3>
<infetted1>string</infetted1>
<infetted2>string</infetted2>
<prototype>string</prototype>
<read>string</read>
<pronunciation>string</pronunciation>
</msgMecabResultFull>
<msgMecabResultFull>
<idx>int</idx>
<name>string</name>
<pos>string</pos>
<pos1>string</pos1>
<pos2>string</pos2>
<pos3>string</pos3>
<infetted1>string</infetted1>
<infetted2>string</infetted2>
<prototype>string</prototype>
<read>string</read>
<pronunciation>string</pronunciation>
</msgMecabResultFull>
</resWordList>
</resMecabResultFull>
}}
 

XMLフォーマット

#sh(xml){{
<?xml version="1.0" encoding="utf-8"?>
<resMecabResultFull xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<resWordList>
<msgMecabResultFull>
<idx>int</idx>
<name>string</name>
<pos>string</pos>
<pos1>string</pos1>
<pos2>string</pos2>
<pos3>string</pos3>
<infetted1>string</infetted1>
<infetted2>string</infetted2>
<prototype>string</prototype>
<read>string</read>
<pronunciation>string</pronunciation>
</msgMecabResultFull>
<msgMecabResultFull>
<idx>int</idx>
<name>string</name>
<pos>string</pos>
<pos1>string</pos1>
<pos2>string</pos2>
<pos3>string</pos3>
<infetted1>string</infetted1>
<infetted2>string</infetted2>
<prototype>string</prototype>
<read>string</read>
<pronunciation>string</pronunciation>
</msgMecabResultFull>
</resWordList>
</resMecabResultFull>
}}
 

JSONフォーマット

#sh{{
{"resWordList":
[
{
"idx":int,
"name":"string",
"pos":"string",
"pos1":"string",
"pos2":"string",
"pos3":"string",
"infetted1":"string",
"infetted2":"string",
"prototype":"string",
"read":"string",
"pronunciation":"string"
},
{
"idx":int,
"name":"string",
"pos":"string",
"pos1":"string",
"pos2":"string",
"pos3":"string",
"infetted1":"string",
"infetted2":"string",
"prototype":"string",
"read":"string",
"pronunciation":"string"
}
]
}
}}