Get the App
SLTechnology News&Howtos  ›  Database  › 

How can hanlp quickly extract only a person's name from a participle?

Shulou Source: shulou.com Published: 2022-05-31 15:22:34 10月01日 Update

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!

Tags: Names content official more articles related good practical health deeds code rituals enterprises entrepreneurs official websites articles see knowledge examples results Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information vpn Shulou Tech Info Xiaomi Redmi