brmson / personal-assistant Goto Github PK
View Code? Open in Web Editor NEWHousehold Intelligent Assistant
Household Intelligent Assistant
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'
Make presentation
Finish parts:
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.
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'
Query logic module returns None instead of string with an answer when "Tell me a joke." asked.
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'
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.
Mimic module is unable to parse and read sentences with ' (apostrophe) character.
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
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:
pywit
as described on https://wit.ai/docs/http/20141022#get-intent-via-speech-linkPocketSphinx
for speech-to-text part, use pywit
only to get the intent from the senteceWhat do you think? Will you look at it?
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.