⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 token.pm

📁 Plucene-1.25.tar.gz PERL版本的lucene
💻 PM
字号:
package Plucene::Analysis::Token;=head1 NAMEPlucene::Analysis::Token - A term in a field=head1 SYNOPSIS=head1 DESCRIPTIONA Token is an occurence of a term from the text of a field.  It consists ofa term's text, the start and end offset of the term in the text of the field,and a type string.The start and end offsets permit applications to re-associate a token withits source text, e.g., to display highlighted query terms in a documentbrowser, or to show matching text fragments in a KWIC (KeyWord In Context)display, etc.The type is an interned string, assigned by a lexical analyzer(a.k.a. tokenizer), naming the lexical or syntactic class that the tokenbelongs to.  For example an end of sentence marker token might be implementedwith type "eos".  The default token type is "word".=head1 METHODS=cutuse strict;use warnings;use base 'Class::Accessor::Fast';__PACKAGE__->mk_accessors(qw[type text start end]);=head2 new	my $token = Plucene::Analysis::Token->new({		type  => $type,		text  => $text,		start => $start,		end   => $end });This will create a new Plucene::Analysis::Token object.		=cutsub new {	my ($class, %args) = @_;	$args{type} ||= "word";	$class->SUPER::new({%args});}1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -