How can hanlp quickly extract only a person's name from a participle?
This article is about how hanlp can quickly extract only people's names from participles. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Attach the results of the official implementation:
[signing / v, ceremony / n, former / f, / w, Qin Guangrong / nr, / w, Li Jiheng / nr, / w, Qiuhe / nr, etc. / u, meeting / v, / ul, participating / v, signing / v, / uj, entrepreneur / n, etc. / w]
[Wang Guoqiang / nr, / w, Gao Feng / n, / w, Wang Yang / n, / w, Zhang Chaoyang / nr, bald / l, / w, Han Han / nr, / w, Xiao Si / nr]
[Zhang Haohe / nr, Hu Health / nr, demobilized / vn, go home / v, re / ul]
[boss Wang / nr, and / c, Xiao Li / nr, married / v, le / ul]
[screenwriter / n, Shao Junlin / nr, and / c, Ji Daoqing / nr, say / v]
[here / r, have / v, Guan Tianpei / nr, / uj, related / vn, deeds / n]
[gong Xueping / nr, et al / u, leader / n, / w, Deng Yingchao / nr, alive / t]
Enclose the sample code of the official website
String [] testCase = new String [] {
Thank you for reading! This article is about "how hanlp can quickly extract names from participles". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!