-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Former-commit-id: 89bb400
- Loading branch information
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
package com.mayabot.nlp; | ||
|
||
import com.mayabot.nlp.segment.Lexer; | ||
import com.mayabot.nlp.segment.Lexers; | ||
|
||
public class Test { | ||
public static void main(String[] args) { | ||
System.out.println(Lexers.core().scan( | ||
"瑞金二路街道举办“法官进社区”系列讲座活动信息来源:瑞金二路街道发布时间:2014-03-31字体: 【】日前,瑞金二路街道举办“法官进社区”系列讲座活动,邀请区法院民一庭审判长来讲《婚姻法》、《继承法》等法律。各居委调委会主任、委员共计70余人参加。法官对《婚姻法》、《继承法》等法律进行了多角度、多层次、深入浅出的精彩阐述,并结合自己的工作经历,用实际案例对相关法律条款进行了耐心、详细的讲解。通过开展“法官进社区”活动,统一建立社区法官制度和社区司法联络员制度,积极参与社会矛盾化解和社会管理创新,促进社区居民自治、民主管理。")); | ||
String text = "上海市人民政府"; | ||
|
||
Lexer lexer = Lexers.coreBuilder() | ||
.collector().indexPickup().done().build(); | ||
|
||
lexer.scan(text).forEach(x -> { | ||
System.out.println(x); | ||
}); | ||
} | ||
} |