forked from hankcs/HanLP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDemoAtFirstSight.java
More file actions
29 lines (27 loc) · 1.03 KB
/
DemoAtFirstSight.java
File metadata and controls
29 lines (27 loc) · 1.03 KB
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
/*
* <summary></summary>
* <author>He Han</author>
* <email>hankcs.cn@gmail.com</email>
* <create-date>2014/12/7 21:13</create-date>
*
* <copyright file="DemoAll.java" company="上海林原信息科技有限公司">
* Copyright (c) 2003-2014, 上海林原信息科技有限公司. All Right Reserved, http://www.linrunsoft.com/
* This source is subject to the LinrunSpace License. Please contact 上海林原信息科技有限公司 to get more information.
* </copyright>
*/
package com.hankcs.demo;
import com.hankcs.hanlp.HanLP;
/**
* 第一个Demo,惊鸿一瞥
*
* @author hankcs
*/
public class DemoAtFirstSight
{
public static void main(String[] args)
{
System.out.println("首次编译运行时,HanLP会自动构建词典缓存,请稍候……");
HanLP.Config.enableDebug(); // 为了避免你等得无聊,开启调试模式说点什么:-)
System.out.println(HanLP.segment("你好,欢迎使用HanLP汉语处理包!接下来请从其他Demo中体验HanLP丰富的功能~"));
}
}