.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "Juman 3pm" .TH Juman 3pm "2022-09-03" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Juman \- 形態素解析を行うモジュール .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 4 \& use Juman; \& $juman = new Juman; \& $result = $juman\->analysis( "この文を形態素解析してください." ); \& print $result\->all(); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" \&\f(CW\*(C`Juman\*(C'\fR は,形態素解析器 \s-1JUMAN\s0 を Perl から利用するためのモジュールで ある. .PP 単純に形態素解析を行うだけならば、\f(CW\*(C`Juman::Simple\*(C'\fR が利用できる. \&\f(CW\*(C`Juman::Simple\*(C'\fR は,\f(CW\*(C`Juman\*(C'\fR モジュールのラッパーであり,より簡単に形 態素解析器を利用できるように設計されている. .SH "CONSTRUCTOR" .IX Header "CONSTRUCTOR" \&\f(CW\*(C`Juman\*(C'\fR オブジェクトを生成するコンストラクタは,以下の引数を受け付け る. .SS "Synopsis" .IX Subsection "Synopsis" .Vb 8 \& $juman = new Juman \& [ \-Server => string,] \& [ \-Port => integer,] \& [ \-Command => string,] \& [ \-Timeout => integer,] \& [ \-Option => string,] \& [ \-Rcfile => filename,] \& [ \-IgnorePattern => string,] .Ve .SS "Options" .IX Subsection "Options" .RS 4 各引数の意味は次の通り. .Sp \&\-Server .Sp \&\s-1JUMAN\s0 サーバーのホスト名.省略された場合は,環境変数 \f(CW\*(C`JUMANSERVER\*(C'\fR で 指定されたサーバーが利用される.環境変数も指定されていない場合は, Juman を子プロセスとして呼び出す. .Sp \&\-Port .Sp サーバーのポート番号. .Sp \&\-Command .Sp Juman の実行ファイル名.Juman サーバーを利用しない場合に参照される. .Sp \&\-Timeout .Sp サーバーまたは子プロセスと通信する時の待ち時間. .Sp \&\-Option .Sp \&\s-1JUMAN\s0 を実行する際のコマンドライン引数.省略した場合は, \&\f(CW$Juman::DEFAULT{option}\fR の値が用いられる. .Sp ただし,設定ファイルを指定する \f(CW\*(C`\-r\*(C'\fR オプションと,KNP によって無視さ れる行頭パターンを指定する \f(CW\*(C`\-i\*(C'\fR オプションについては,それぞれ個別に \&\f(CW\*(C`\-Rcfile\*(C'\fR, \f(CW\*(C`\-IgnorePattern\*(C'\fR によって指定するべきである. .Sp \&\-Rcfile .Sp \&\s-1JUMAN\s0 の設定ファイルを指定するオプション. .Sp このオプションと,Juman サーバーの利用は両立しないことが多い.特に,サー バーが利用している辞書と違う辞書を指定している設定ファイルは,意図した 通りには動作しない. .Sp \&\-IgnorePattern .Sp \&\s-1JUMAN\s0 によって無視される行頭パターン. .RE .SH "METHODS" .IX Header "METHODS" .IP "analysis( \s-1STR\s0 )" 4 .IX Item "analysis( STR )" 指定された文字列 \s-1STR\s0 を形態素解析し,その結果を \f(CW\*(C`Juman::Result\*(C'\fR オブ ジェクトとして返す. .IP "juman ( \s-1STR\s0 )" 4 .IX Item "juman ( STR )" \&\f(CW\*(C`analysis\*(C'\fR の別名. .SH "ENVIRONMENT" .IX Header "ENVIRONMENT" .IP "\s-1JUMANSERVER\s0" 4 .IX Item "JUMANSERVER" 環境変数 \f(CW\*(C`JUMANSERVER\*(C'\fR が設定されている場合は,指定されているホストを Juman サーバーとして利用する. .SH "SEE ALSO" .IX Header "SEE ALSO" .IP "\(bu" 4 Juman::Result .IP "\(bu" 4 Juman::Simple .SH "HISTORY" .IX Header "HISTORY" This module is the completely rewritten version of the original module written by Taku Kudoh . .SH "AUTHOR" .IX Header "AUTHOR" .IP " \s-1TSUCHIYA\s0 Masatoshi " 4 .IX Item " TSUCHIYA Masatoshi " .SH "COPYRIGHT" .IX Header "COPYRIGHT" 利用及び再配布については \s-1GPL2\s0 または Artistic License に従ってください。 .SH "POD ERRORS" .IX Header "POD ERRORS" Hey! \fBThe above document had some coding errors, which are explained below:\fR .IP "Around line 13:" 4 .IX Item "Around line 13:" Non-ASCII character seen before =encoding in '形態素解析を行うモジュール'. Assuming \s-1UTF\-8\s0 .IP "Around line 49:" 4 .IX Item "Around line 49:" You can't have =items (as at line 53) unless the first thing after the =over is an =item