Language Technology PlatformLink

Intro

An open-source neural language technology platform supporting six fundamental Chinese NLP tasks:

  • lexical analysis (Chinese word segmentation, part-of-speech tagging, and named entity recognition)
  • syntactic parsing (dependency parsing)
  • semantic parsing (semantic dependency parsing and semantic role labeling).

Quickstart

from ltp import LTP

ltp = LTP()  # 默认加载 Small 模型
seg, hidden = ltp.seg(["他叫汤姆去拿外衣。"])
pos = ltp.pos(hidden)
ner = ltp.ner(hidden)
srl = ltp.srl(hidden)
dep = ltp.dep(hidden)
sdp = ltp.sdp(hidden)

Performance

ModelCWSPOSNERSRLDEPSDPSpeed(Sents/S)
LTP 4.0 (Base)98.7098.5095.480.6089.5075.2039.12
LTP 4.0 (Base1)99.2298.7396.3979.2889.5776.57--.--
LTP 4.0 (Base2)99.1898.6995.9779.4990.1976.62--.--
LTP 4.0 (Small)98.4098.2094.3078.4088.3074.7043.13
LTP 4.0 (Tiny)96.8097.1091.6070.9083.8070.1053.22

Cite

@article{che2020n,
  title={N-LTP: A Open-source Neural Chinese Language Technology Platform with Pretrained Models},
  author={Che, Wanxiang and Feng, Yunlong and Qin, Libo and Liu, Ting},
  journal={arXiv preprint arXiv:2009.11616},
  year={2020}
}