baidu / baidu/lac

不能处理英文'

Open
#135 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

```python
from LAC import LAC
lac = LAC(mode="seg")
lac.run("I don't like it")
```
输出为
```
['I', ' ', 'don', "'", 't', ' ', 'like', ' ', 'it']
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Python example through lac.run("I don't like it") and inspect the segmentation path responsible for English text. The issue shows that the apostrophe is split into a separate token; done means the intended English contraction behavior is handled consistently and the original example no longer produces the reported output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.