Giter Club home page Giter Club logo

Comments (2)

kunqian-usa avatar kunqian-usa commented on June 27, 2024 1

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.

yunyaoli avatar yunyaoli commented on June 27, 2024 1

Issue has been fixed.

from dimsim.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.