use of org.ansj.app.keyword.Keyword in project ansj_seg by NLPchina.
the class TagWordTest method test.
@Test
public void test() {
TagContent tw = new TagContent("<em>", "</em>");
String content = "abc123中国人";
List<Keyword> keywords = new ArrayList<Keyword>();
keywords.add(new Keyword("中国人民", 1.0));
keywords.add(new Keyword("中国", 1.0));
keywords.add(new Keyword("abc", 1.0));
keywords.add(new Keyword("abc12", 1.0));
System.out.println(tw.tagContent(keywords, content));
}
Aggregations