【发布时间】:2019-07-26 04:45:47
【问题描述】:
Soundex函数中这个数字参数是什么意思?
代码:
import fuzzy
soundex = fuzzy.Soundex(6)
【问题讨论】:
Soundex函数中这个数字参数是什么意思?
代码:
import fuzzy
soundex = fuzzy.Soundex(6)
【问题讨论】:
从source code 看来是输出大小:
cdef class Soundex:
cdef int size
cdef char *map
def __init__(self, size):
self.size = size
...
if written == self.size:
break
默认情况下,Soundex 会生成 4 个字符的代码,但您似乎可以在此实现中更改它。
【讨论】: