/usr/lib/perl5/Text/ChaSen.pm is in libtext-chasen-perl 1.04-3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | #
# $Id: ChaSen.pm,v 1.9 2000/12/18 07:32:38 knok Exp $
package Text::ChaSen;
=head1 NAME
Text::ChaSen - ChaSen library module for perl
=head1 SYNOPSIS
use Text::ChaSen;
$res = Text::ChaSen::getopt_argv('chasen-perl', '-j', '-F', '%m ');
$str = Text::ChaSen::sparse_tostr("ÆüËܸì¤Îʸ»úÎó");
=head1 DESCRIPTION
¤³¤Î¥â¥¸¥å¡¼¥ë¤Ï¡¢ÆàÎÉÀèü²Ê³Øµ»½ÑÂç³Ø¤¬³«È¯¤·¤¿ÆüËܸì·ÁÂÖÁDzòÀÏ
¥½¥Õ¥È¥¦¥§¥¢"Ããä¥"¤òperl¤«¤é»È¤¦¤¿¤á¤Î¤â¤Î¤Ç¤¢¤ë¡£
=over 4
=item getopt_argv($arg1, $arg2, ...)
Ãã䥤˥ª¥×¥·¥ç¥ó¤òÅϤ·¡¢½é´ü²½¤ò¹Ô¤¦¡£¥ª¥×¥·¥ç¥ó¤Ï¡¢chasen¥³¥Þ¥ó¥É
¤Ë»ØÄê¤Ç¤¤ë¤â¤Î¤Ë½à¤º¤ë¤¬¡¢C<-s>¤äC<-D>¤Ê¤É¤Î¥µ¡¼¥Ð¤ä¥¯¥é¥¤¥¢¥ó¥È¤Ë´Ø¤¹¤ë
¥ª¥×¥·¥ç¥ó¤ÏÍøÍѤǤ¤Ê¤¤¡£
¤Þ¤¿¡¢°ìÈֺǽé¤Î¥ª¥×¥·¥ç¥ó¤Ï¥×¥í¥°¥é¥à¤Î¥Õ¥¡¥¤¥ë̾¤Ç¤¢¤ë¡£
Î㤨¤Ð¡¢¼¡¤Î¤è¤¦¤Ê°ú¿ô¤Ç¼Â¹Ô¤·¤¿chasen¥³¥Þ¥ó¥É¤¬¤¢¤ë¡£
$ chasen C<-j> C<-F> '%m '
¤³¤ì¤ÈƱ¤¸µóÆ°¤ò¤µ¤»¤ë¤Ë¤Ï¡¢¼¡¤Î¤è¤¦¤Ê°ú¿ô¤Çgetopt_argv¤ò¸Æ¤Ó½Ð¤¹¡£
getopt_argv('chasen', 'C<-j>', 'C<-F>', '%m ');
=item sparse_tostr($str)
·ÁÂÖÁDzòÀϤò¹Ô¤¤¡¢·ë²Ì¤òʸ»úÎó¤È¤·¤ÆÊÖ¤¹¡£
=item sparse_tostr_long($str)
·ÁÂÖÁDzòÀϤò¹Ô¤¤¡¢·ë²Ì¤òʸ»úÎó¤È¤·¤ÆÊÖ¤¹¡£¤³¤Î´Ø¿ô¤Ï¡¢°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó
¤È¤Î¸ß´¹À¤Î¤¿¤á¤À¤±¤Ë¸ºß¤¹¤ë¡£
=back
=head1 COPYRIGHT
Copyright(c) 1998, 1999 NOKUBI Takatsugu <knok@daionet.gr.jp>
Copyright(c) 1997 Nara Institute of Science and Technorogy.
All Rights Reserved.
Use, reproduction, and distribution of this software is permitted.
Any copy of this software, whether in its original form or modified,
must include both the above copyright notice and the following
paragraphs.
Nara Institute of Science and Technology (NAIST),
the copyright holders, disclaims all warranties with regard to this
software, including all implied warranties of merchantability and
fitness, in no event shall NAIST be liable for
any special, indirect or consequential damages or any damages
whatsoever resulting from loss of use, data or profits, whether in an
action of contract, negligence or other tortuous action, arising out
of or in connection with the use or performance of this software.
The Japanese morphological dictionary included in this system
originates from ICOT Free Software. The following conditions for ICOT
Free Software applies to the morphological dictionary of the system.
Each User may also freely distribute the Program, whether in its
original form or modified, to any third party or parties, PROVIDED
that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear
on, or be attached to, the Program, which is distributed substantially
in the same form as set out herein and that such intended
distribution, if actually made, will neither violate or otherwise
contravene any of the laws and regulations of the countries having
jurisdiction over the User or the intended distribution itself.
NO WARRANTY
The program was produced on an experimental basis in the course of the
research and development conducted during the project and is provided
to users as so produced on an experimental basis. Accordingly, the
program is provided without any warranty whatsoever, whether express,
implied, statutory or otherwise. The term "warranty" used herein
includes, but is not limited to, any warranty of the quality,
performance, merchantability and fitness for a particular purpose of
the program and the nonexistence of any infringement or violation of
any right of any third party.
Each user of the program will agree and understand, and be deemed to
have agreed and understood, that there is no warranty whatsoever for
the program and, accordingly, the entire risk arising from or
otherwise connected with the program is assumed by the user.
Therefore, neither ICOT, the copyright holder, or any other
organization that participated in or was otherwise related to the
development of the program and their respective officials, directors,
officers and other employees shall be held liable for any and all
damages, including, without limitation, general, special, incidental
and consequential damages, arising out of or otherwise in connection
with the use or inability to use the program or any product, material
or result produced or otherwise obtained by using the program,
regardless of whether they have been advised of, or otherwise had
knowledge of, the possibility of such damages at any time during the
project or thereafter. Each user will be deemed to have agreed to the
foregoing by his or her commencement of use of the program. The term
"use" as used herein includes, but is not limited to, the use,
modification, copying and distribution of the program and the
production of secondary products from the program.
In the case where the program, whether in its original form or
modified, was distributed or delivered to or received by a user from
any person, organization or entity other than ICOT, unless it makes or
grants independently of ICOT any specific warranty to the user in
writing, such person, organization or entity, will also be exempted
from and not be held liable to the user for any such damages as noted
above as far as the program is concerned.
=cut
require Exporter;
require DynaLoader;
@ISA = qw(Exporter DynaLoader);
@EXPORT_OK = qw(getopt_argv sparse_tostr fparse_tostr sparse_tostr_long);
%EXPORT_TAGS = (all => [qw(getopt_argv sparse_tostr fparse_tostr
sparse_tostr_long)]);
$VERSION = '1.04';
bootstrap Text::ChaSen $VERSION;
1;
__END__
pos = (unsigned char *) "";
|