selfteaching / selfteaching/selfteaching-python-camp

Day10 关于jieba的默认分词模式问题

Open
#993 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
151
Forks
875
PR merge metrics
No merged PRs in 30d

Description

对比了今天自己的作业和廖同学的作业,发现有一点不同的是,line128处我写的是
text = [x for x in jieba.cut(text,cut_all=False) if len(x) >= 2]
廖同学直接写的是
text = [x for x in jieba.cut(text) if len(x) >= 2]
请问jieba的默认模式是精确模式吗?
但输出的结果不同,还是廖同学忘了...
@srvz @ LiaoJiaQing

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at line 128 of the Day10 assignment and compare the two jieba.cut calls shown in the report. Check jieba's documented default mode and reproduce both calls to identify why their outputs differ; done means the default behavior and the cause of the discrepancy are clearly explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.