1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
20 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
24 Analyzer for Simplified Chinese, which indexes words.
30 Three analyzers are provided for Chinese, each of which treats Chinese text in a different way.
32 <li>StandardAnalyzer: Index unigrams (individual Chinese characters) as a token.
33 <li>CJKAnalyzer (in the analyzers/cjk package): Index bigrams (overlapping groups of two adjacent Chinese characters) as tokens.
34 <li>SmartChineseAnalyzer (in this package): Index words (attempt to segment Chinese text into words) as tokens.
37 Example phrase: "我是中国人"
39 <li>StandardAnalyzer: 我-是-中-国-人</li>
40 <li>CJKAnalyzer: 我是-是中-中国-国人</li>
41 <li>SmartChineseAnalyzer: 我-是-中国-人</li>