Comments (2)
DimSim/code/dimsim/dimsim/dimsim.py
Line 349 in d5b8410
if self.consonant is "w":
您好,想請教在這段 consonant 判斷式設計上的意義,在實做上,以 wang2 為例,進入判段式後
將 vowel 取代為 u+self.vowel
並使 consonant w 為 ""回到 getEditDistanceClose_TwoDCode 後,"" mapping 到 99999.0,
接著進入到 cDis = abs(getDistance_TwoDCode(twoDcode_consonant_a, twoDcode_consonant_b)) ,在此段中,因傳入的值為 99999.0 ,因此造成 x2 or y2 沒辦法 mapping 到 value,進而產生 TypeError: 'float' object is not iterable
因為不了解將 consonet w 取代成 "" 的意義,因此不敢隨意修改,希望可以請教設計上的相關事宜,謝謝您
Thanks for your comment, it was a bug, and now it's been fixed. We also updated the corresponding pypi project. Now, if you want to try the new version, you can do
pip install chinesesoundex-1.0
Thanks
from dimsim.
Issue has been fixed.
from dimsim.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dimsim.