Giter Club home page Giter Club logo

medibot's People

Contributors

jaideepkekre avatar quantifiedcode-bot avatar v0dro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

medibot's Issues

Use simple in-memory data store intead of dispatcher

Since the message queuing architecture is now multi-process, it does not seem necessary to stilll have the dispatcher around. One process manages getting and queuing messages and the other processes them and sends them across.

Using an in-memory data store like Redis to store the messages of a conversation would be simpler and cleaner. The core class can simply read the the chat_id and pull the relevant conversation.

Formalize labelling format produced by NLP engine

The NLP engine tokenizes and labels words based on their occurrence in the string and how previous conversations have proceeded.

It is important to formalize a format that will be passed to the expert system by the NLP engine which will easily convey the relevance of every word in a sentence to the expert system, and make KE easy.

Threading

1. Let's do this , each user gets a thread .

  • Text/dict from user is kept in queue , the thread consumes text / dict and only consumes next text/dict after previous request has returned .

2. Let's do this , each NLP op gets a thread .

  • each NLP op in core.py gets a thread as NLP will be the heaviest job in our code .

What's your opinion ?

@v0dro

Ambigious variable names

  • updater = Updater(token=os.environ.get('TELEGRAM_API_KEY'))
  • dispatcher = updater.dispatcher

IMHO the custom variables "updater" , "dispatcher" are VERY similar to Updater() function , updater.distatcher . Won't it be a better convention to make it obvious what is custom and what is imported . You code isn't very readable like this , imagine this on a scale*100 .

ImportError: cannot import name 'Updater'

./run.sh Traceback (most recent call last): File "/Users/rex/Downloads/MediBot-master/bin/server.py", line 11, in <module> from telegram import Updater ImportError: cannot import name 'Updater'

I've updated telegram but still unable to resolve this issue.

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.