Code Monkey home page Code Monkey logo

personal-assistant's People

Contributors

drapejak avatar drapela-jakub avatar jburant avatar kluckmar avatar konrajak avatar kovarp15 avatar pasky avatar paveltrutman avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

personal-assistant's Issues

Missing argument 'longitude'

Bug after @JBurant last commit:

Traceback (most recent call last):
  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 114, in <module>
    qc = Query_control(port)
  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 40, in __init__
    initModule=module.init_hook()
  File "/root/Personal-Assistant/modules/querylogic/modules/weather.py", line 28, in init_hook
    weather.set_init_parameters(getLocation('Prague'))
TypeError: set_init_parameters() missing 1 required positional argument: 'longitude'

Finish business plan

Finish parts:

  • Project description, motivation, state-of-the-art review
  • Detailed specification
  • Project planning
  • Risk analysis and contingency plans
  • Preliminary results

Expanding functionality to other intents

Following the last team meeting I added some suggestions for additional intents to wit.ai database.
If you have access please look into it, expand the database and lets talk about what to add/change.
If you don't have access and want to help sign up with wit.ai and let me know so I can add you.

Also if we want to enhance the functionality we should decide on what additional modules we are going to need to do that.

queryLogic: 'module' object has no attribute 'choise'

Traceback (most recent call last):
  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 128, in <module>
    qc.listen()
  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 108, in listen
    replyData = self.application(data)
  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 74, in application
    return {'answer': random.choise(message)}
AttributeError: 'module' object has no attribute 'choise'

tell me a joke bug

Query logic module returns None instead of string with an answer when "Tell me a joke." asked.

Bug in query logic

  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 115, in <module>
    qc.listen()
  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 95, in listen
    replyData = self.application(data)
  File "/root/Personal-Assistant/modules/querylogic/query_control.py", line 64, in application
    answer=module.query_resolution(intent, parsedQuery, self.config)
  File "/root/Personal-Assistant/modules/querylogic/modules/weather.py", line 577, in query_resolution
    answersentence=Weather.call_switcher(self,intent,data,timeperiod,offset,timeWord)
  File "/root/Personal-Assistant/modules/querylogic/modules/weather.py", line 479, in call_switcher
    answer=entity['function'](self,data,entity,offset,timeWord,timeperiod)
  File "/root/Personal-Assistant/modules/querylogic/modules/weather.py", line 193, in get_summary
    dictAnsSum = self.get_summaryData(data,entity,offset,timeperiod)
  File "/root/Personal-Assistant/modules/querylogic/modules/weather.py", line 209, in get_summaryData
    answerNew = data[timeperiod]['data'][i]['summary']
KeyError: 'data'

Document threshold setup

It seems that it is necessary to setup the threshold after installing the project on a new computer. Please include short instructions on how to test this, what to change and in which direction.

Problem with geopy library

Problem had found with geopy library. Have you same problem as me in virtual machine? I've tried to solve it but without any good result.

my error:
page = requester(req, timeout=(timeout or self.timeout), *_kwargs)
File "/usr/lib/python3.4/urllib/request.py", line 161, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.4/urllib/request.py", line 469, in open
response = meth(req, response)
File "/usr/lib/python3.4/urllib/request.py", line 579, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.4/urllib/request.py", line 507, in error
return self._call_chain(_args)
File "/usr/lib/python3.4/urllib/request.py", line 441, in _call_chain
result = func(*args)
File "/usr/lib/python3.4/urllib/request.py", line 587, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "ql_offline_test.py", line 31, in
initModule=module.init_hook()
File "/home/kubin/Plocha/GitFolder/Personal-Assistant/modules/querylogic/modules/weather.py", line 24, in init_hook
homelocation=getLocation(location);
File "/home/kubin/Plocha/GitFolder/Personal-Assistant/modules/querylogic/modules/weather.py", line 17, in getLocation
location = geolocator.geocode(place)
File "/usr/local/lib/python3.4/dist-packages/geopy/geocoders/osm.py", line 193, in geocode
self._call_geocoder(url, timeout=timeout), exactly_one
File "/usr/local/lib/python3.4/dist-packages/geopy/geocoders/base.py", line 158, in _call_geocoder
raise ERROR_CODE_MAPcode
geopy.exc.GeocoderInsufficientPrivileges: HTTP Error 403: Forbidden

pywit 2.0

Today has been released pywit version 2.0, in which they have stopped support for audio recording (see few last comments on wit-ai/pywit#14). Therefore the speech-to-text module is not working with the new version (but it works well with pywit version 1.1).

We have some options:

  1. stay at version 1.1 -> we will be stuck forever
  2. implement audio recording for pywit as described on https://wit.ai/docs/http/20141022#get-intent-via-speech-link
  3. use PocketSphinx for speech-to-text part, use pywit only to get the intent from the sentece

What do you think? Will you look at it?

Store dump of wit.ai questions in github

When the project is more or less finished, it'd be great to snapshot and store in git the current setup in wit.ai - there should be some ways to export it in json/yaml. This way, others can reproduce, fork and start improving this project.

Time out when Phoenix is mistriggered

When Phoenix is errorneously triggered and there is even tiny constant background noise, it will never recover and keep listening for a query. There really should be some timeout in this phase (say, 15s) - I think this is the only major UX bug we currently have, everything else are okay glitches.

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.