Juman::Result - 形態素解析結果オブジェクト in Juman
Contents
Constructor
new ( RESULT )
Juman の出力を行を単位として格納されたリストに対するリファレンス RESULT
を引数として呼び出すと,その形態素解析結果を表すオブジェクトを生成する.
new ( OPTIONS )
以下の拡張オプションを指定してコンストラクタを呼び出す.
result => RESULT
Juman の出力文字列,または,その文字列を行を単位として格納されたリスト
に対するリファレンスを指定する.
pattern => STRING
解析結果を終端するためのパターンを指定する.
mclass => NAME
形態素オブジェクトを指定する.無指定の場合は,"Juman::Morpheme" を用 いる.
Description
Juman による形態素解析の結果を保持するオブジェクト.
Methods
本オブジェクトは,形態素列オブジェクト "Juman::MList" を継承するよう
実装されている.したがって,形態素列オブジェクトに対して有効な以下のメ ソッドが利用可能である.
mrph
spec
形態素列の全文字列を返す.Juman による出力と同じ形式の結果が得られる.
Name
Juman::Result - 形態素解析結果オブジェクト in Juman
Pod Errors
Hey! Theabovedocumenthadsomecodingerrors,whichareexplainedbelow:
Around line 11:
Non-ASCII character seen before =encoding in '形態素解析結果オブジェクト'. Assuming UTF-8
Around line 101:
You forgot a '=back' before '=head1'
Around line 144:
=over without closing =back
perl v5.38.2 2024-09-11 Juman::Result(3pm)
See Also
• Juman::Morpheme
• Juman::MList
Synopsis
$result = new Juman::Result( "解析...\n...\nEOS\n" );
