HanLP

Multilingual Language Processing✨

Install 🚀Demo 💡

      from hanlp_restful import HanLPClient
HanLP = HanLPClient('https://www.hanlp.com/api', auth=None, language='mul') # Fill in your auth
HanLP('''In 2021, HanLPv2.1 delivers state-of-the-art multilingual NLP techniques to production environments. 
         2021年、HanLPv2.1は次世代の最先端多言語NLP技術を本番環境に導入します。
         2021年 HanLPv2.1为生产环境带来次世代最先进的多语种NLP技术。''').pretty_print()

    

HanLP also provides native APIs that you can run on your local machine, preferably with a GPU.

      import hanlp
HanLP = hanlp.load(hanlp.pretrained.mtl.UD_ONTONOTES_TOK_POS_LEM_FEA_NER_SRL_DEP_SDP_CON_MMINILMV2L6)
HanLP(['In 2021, HanLPv2.1 delivers state-of-the-art multilingual NLP techniques to production environments.',
       '2021年、HanLPv2.1は次世代の最先端多言語NLP技術を本番環境に導入します。',
       '2021年 HanLPv2.1为生产环境带来次世代最先进的多语种NLP技术。']).pretty_print()