add --shared
[pylucene.git] / lucene-java-3.4.0 / lucene / contrib / analyzers / common / src / java / org / apache / lucene / analysis / cn / package.html
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <!--
3  Licensed to the Apache Software Foundation (ASF) under one or more
4  contributor license agreements.  See the NOTICE file distributed with
5  this work for additional information regarding copyright ownership.
6  The ASF licenses this file to You under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with
8  the License.  You may obtain a copy of the License at
9
10      http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17 -->
18 <html>
19 <head>
20 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
21 </head>
22 <body>
23 Analyzer for Chinese, which indexes unigrams (individual chinese characters).
24 <p>
25 Three analyzers are provided for Chinese, each of which treats Chinese text in a different way.
26 <ul>
27         <li>StandardAnalyzer: Index unigrams (individual Chinese characters) as a token.
28         <li>CJKAnalyzer (in the analyzers/cjk package): Index bigrams (overlapping groups of two adjacent Chinese characters) as tokens.
29         <li>SmartChineseAnalyzer (in the analyzers/smartcn package): Index words (attempt to segment Chinese text into words) as tokens.
30 </ul>
31
32 Example phrase: "我是中国人"
33 <ol>
34         <li>StandardAnalyzer: 我-是-中-国-人</li>
35         <li>CJKAnalyzer: 我是-是中-中国-国人</li>
36         <li>SmartChineseAnalyzer: 我-是-中国-人</li>
37 </ol>
38 </p>
39
40 </body>
41 </html>