Giter Site home page Giter Site logo

Comments (2)

barrust avatar barrust commented on August 15, 2024 1

So part of this is a confusion of what the word_probability is for and what it means. The word probability is the ratio of the word compared to the corpus. It allows for us to choose which of two words that are both possible answers should be selected. Generally you will never need to use that function unless you wanted to inspect a words value. You are likely getting 0.0 since those words are not in the result set. That could be a bug that should be resolved (likely throw an exception).

As for your other questions:

  1. Yes, selecting a distance of 1 would not solve that problem as diet is likely more common in the corpus.
  2. The text file can be of any form. It could be sentences, just words, anything. It just has to be a *.txt file; the one you listed would be perfect. I would recommend, if you are looking for very specific terms, to build your own spelling database: documentation on building a new dictionary
  3. I am not adding anything to have topic based dictionaries at the moment. Perhaps this could be its own issue that can be used for a place of discussion on the idea.

I hope this is helpful!

from pyspellchecker.

corinabioinformatic avatar corinabioinformatic commented on August 15, 2024

Thank you very much Barrust. I will take a look to how the programme works in deeper and the link to the documentation on building a new dictionary. Very interesting!

from pyspellchecker.

Related Issues (20)

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.