baidu / baidu/lac

LAC2.0.4版本mode=rank分析结果没有重要性信息

Open
#235 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
4k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

lac = LAC(mode='rank')

texts = [u"LAC是个优秀的分词工具", u"百度是一家高科技公司"]

rank_result = lac.run(texts)

结果如下:
rank_result = [
(['LAC', '是', '个', '优秀', '的', '分词', '工具'],
[nz, v, q, a, u, n, n]),
(['百度', '是', '一家', '高科技', '公司'],
[ORG, v, m, n, n])
]

找不到 [3, 0, 2, 3, 1] 这样的信息

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the LAC(mode='rank') API entry point and reproduce the example with the supplied texts. Trace how the rank result is assembled and determine where the importance information is lost; done means the result includes the expected importance values alongside the tokens and tags.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.