1. 關鍵詞提取
HanLP.extractKeyword(String content, int num); //第一個參數文本內容,第二個參數提取關鍵詞個數
2. 自動摘要
HanLP.extractSummary(String content, int num); //第一個參數文本內容,第二個參數提取句子個數
3. 短語提取
HanLP.extractPhrase(String content, int num); //第一個參數文本內容,第二個參數提取短語個數
詳細文檔:http://hanlp.linrunsoft.com/doc/_build/html/extract.html#extract-summary