Giter Site home page Giter Site logo

linwords's People

Contributors

jay7n avatar

Watchers

 avatar

linwords's Issues

serve side: make a ranking policy interface

There is a ranking system needed, which should act like such:

  • when searching a word in a store and if it exists there, a statistic way is needed to rank the priority value for this word and store it in the store.
  • when running the program under the query-anyone mode, a specific word calculated in this statistic way should be given back, and continually it asks the user whether he/she has remembered the word. The word's priority value will be recalculated according to the user's answer.
  • the ranking policy should be extensive. A simplest ranking policy will be provided but the program supports a configurable ranking policy system (just like the "word scheme" and the "store")

server side: refine interfaces to connect "wordStore" and "Schemes" elegantly

By design "wordStore"e should only care about how to store word data and ignore the details of it, and "Schemes" define an interface to select what type of dictionaries to use for searching the word.

But there's a problem in the between. for retrieving a word from "wordStore" we have to know which "scheme" would be used so that we can get the word from the correct dictionaries exactly. By this reason there's a cross-point between them. That means, "wordStore" has to know some details about the word to some extent.

Let me figure this out.

code refactor phase 1

  • convert all 'print msg' for debugging purpose to logging.debug()
  • handle the every margin cases properly
  • read the popular python coding convention and apply them to this project - used autopep8
  • split interfaces and implementations well

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.