#setlinebreak(on)
*Clalis形態素解析+[#xb3b7c74]
#contents
*概要 [#qb56ab4a]
入力文章をMecabを使って形態素解析した結果を返します。
このAPIで返される結果は、Mecabから出力される結果をすべて返してきます。
文章の要素解析などに使用できるかと思います。
Liplisのデータ収集、感情付与など、基礎機能として使用しています。
この結果の出力には形態素解析器「Mecab」を使用しています。
http://mecab.googlecode.com/svn/trunk/mecab/doc/index.html
*Mecab出力結果 [#d8b4e79a]
入力文章を分かち書きした上で、以下の情報を出力します。
表層形,品詞,品詞細分類1,品詞細分類2,品詞細分類3,活用形,活用型,原形,読み,発音
*辞書 [#de225eb1]
「IPADIC」をシステム辞書としています。
ユーザー辞書として、Clalisが学習した多くの固有名詞を含む辞書を使用しています。
辞書は定期的に更新しています。
*デモフォーム [#8Upaf2s]
以下のページでAPIを試すことが出来ます。
#html{{
<a href="/Sister/ClalisSampleJavaScript/"><img src="/lipliswiki/webroot/image/common/LiplisBanner/ClalisApi.gif" alt="ClalisApi" style="width:230px;float:none"/></a><br />
}}
*APIリファレンス [#pccc86cd]
**SOAP [#mb0cb1ca]
-URL
https://liplis.mine.nu/Clalis/v30/Soap/Clalis.asmx/clalisMecabFull
-引数
sentence
-GET
https://liplis.mine.nu/Clalis/v30/Soap/Clalis.asmx/clalisMecabFull?sentence=string
-POST
https://liplis.mine.nu/Clalis/v30/Soap/Clalis.asmx/clalisMecabFull
sentence=string
-XML名前空間
https://liplis.mine.nu/XMLSchema
-出力フォーマット
[[XML>#i2848cf3]]
**POST TO XML [#i8454c5b]
-URL
https://liplis.mine.nu/Clalis/v30/Post/Xml/clalisMecabFull.aspx
-引数
sentence
-POST
https://liplis.mine.nu/Clalis/v30/Post/Xml/clalisMecabFull.aspx
sentence=string
-XML名前空間
なし
-出力フォーマット
[[XML>#i2848cf3]]
**POST TO JSON [#aeb34486]
-URL
https://liplis.mine.nu/Clalis/v30/Post/Json/clalisMecabFull.aspx
-引数
sentence
-POST
https://liplis.mine.nu/Clalis/v30/Post/Json/clalisMecabFull.aspx
sentence=string
-出力フォーマット
[[JSON>#na7bad9e]]
**REST TO XML [#ne8f5279]
-URL
https://liplis.mine.nu/Clalis/v30/Rest/Xml/clalisMecabFull
-引数
sentence
-REST GET
https://liplis.mine.nu/Clalis/v30/Rest/Xml/clalisMecabFull/string
-XML名前空間
なし
-出力フォーマット
[[XML>#i2848cf3]]
**REST TO JSON [#gb5e88a0]
-URL
https://liplis.mine.nu/Clalis/v30/Rest/Json/clalisMecabFull
-引数
sentence
-REST GET
https://liplis.mine.nu/Clalis/v30/Rest/Json/clalisMecabFull/string
-出力フォーマット
[[JSON>#na7bad9e]]
*出力フォーマット [#c18092b0]
要求方法によって出力フォーマットが異なります。
フォーマットの種類は以下のとおりです。
**XMLフォーマット https://liplis.mine.nu/XMLSchema 名前空間 [#i2848cf3]
#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フォーマット[#i2848cf3]
#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フォーマット [#na7bad9e]
#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"
}
]
}
}}