词性标注与实体识别批量文本含有多个空字符串时,返回的结果顺序不对
Open
- Dominant language
- C++
- Stars
- 4k
- Forks
- 592
- PR merge metrics
- No merged PRs in 30d
Description
python
lac = LAC(mode='lac')
a = ['', '1', '2', '', '4', '', '5', '']
b = lac.run(a)
返回的结果
b = [[[], []], [['1'], ['m']], [['2'], ['m']], [['4'], ['m']], [[], []], [['5'], ['m']], [[], []], [[], []]]
空值的插入顺序不对
LAC中Model类的run方法,对于pop空字符串倒序,但是插入的时候也是倒序,是不是应该写成正序?
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the ordering problem with the Python snippet, then inspect LAC's Model.run method where empty strings are removed and reinserted. Confirm that results remain aligned with the original input positions, including multiple empty strings, and add or run the relevant regression test if one is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100