GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PLUCENE::ANALYSIS::CJKTOKENIZER (3)

.ds Aq ’

NAME

Plucene::Analysis::CJKTokenizer - Tokenizer for CJK texts

CONTENTS

SYNOPSIS



        # isa Plucene::Analysis::Tokenizer

        my $next = $chartokenizer->next;



DESCRIPTION

This module tokenizes CJK texts. It creates uni-gram tokens from CJK texts. (See also PROBLEMS) Because I understand not much of Japanese and Korean, I rudely apply this method to them. Patches are always welcome.

METHODS

    next



        my $next = $chartokenizer->next;



This will return the next token in the string, or undef at the end of the string.

GLOBAL VARIABLE

Here is one pattern variable that you can modify to customize your tokenizer for a specific collection.

CW$InCJK

Default pattern for CJK characters.

Default value is

qr(
\p{InCJKUnifiedIdeographs} |
\p{InCJKUnifiedIdeographsExtensionA} |
\p{InCJKUnifiedIdeographsExtensionB} |



    \p{InCJKCompatibilityForms} |
    \p{InCJKCompatibilityIdeographs} |
    \p{InCJKCompatibilityIdeographsSupplement} |

    \p{InCJKRadicalsSupplement} |
    \p{InCJKSymbolsAndPunctuation} |
   
    \p{InHiragana} |
    \p{InKatakana} |
    \p{InKatakanaPhoneticExtensions} |
   
    \p{InHangulCompatibilityJamo} |
    \p{InHangulJamo} |
    \p{InHangulSyllables}
   )x;



PROBLEMS

Currently, I tested bigram tokens, but it keeps failing. Snipped for the current release.

Speed is another issue.

SEE ALSO

Plucene

Plucene::Analysis::CJKAnalyzer

MIME::Base64

COPYRIGHT

Copyright (C) 2006 by Yung-chung Lin (a.k.a. xern) <xern@cpan.org>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PLUCENE::ANALYSIS::CJKTOKENIZER (3) 2006-01-19

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.