Skip to content

Commit

Permalink
增加说明:模糊匹配,单词pos
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed May 20, 2018
1 parent 8e4f684 commit 8defb76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ fuse:pos = `n:46/v:54`

```python
def stripword(word):
return (''.join([ n for n in word if n.isalnum() ])).lower()
return (''.join([ n for n in word if n.isalnum() ])).lower()
```

CSV数据库虽然没有记录该字段,但每次加载到内存以后会自动为每个单词生成该字段,而 SQLite/MySQL 数据库则是建表的时候就包含该字段,插入单词时为该单词自动计算后插入,以后不在改变。
Expand Down

0 comments on commit 8defb76

Please sign in to comment.