Commit Graph

913 Commits (570687d04ad5c98ca60a0d6e5aa5fd3b65a84a27)

Author SHA1 Message Date
Augusto Monteiro 319f39801a #566 - Adding normalize import on wolfranalpha 2017-03-15 14:31:10 -05:00
Åke Forslund 8df393c813 Remove handler from registered_intents list, it wasn't used 2017-03-14 22:01:48 +01:00
Åke Forslund 49c5a3e523 Add debug and error logging 2017-03-14 21:55:04 +01:00
Augusto Monteiro 7c25e56b96 #560 - fixing pep8 2017-03-14 14:34:53 -05:00
Augusto Monteiro 2464e87118 #560 - loading skills sorted 2017-03-14 14:34:53 -05:00
Augusto Monteiro 435b254a54 Merge pull request #531 from MycroftAI/feature/issue-539
Normalize text before intent parsing #530
2017-03-14 14:22:34 -05:00
Augusto Monteiro eaac4a1f08 #539 - fixing pep8 2017-03-14 13:57:17 -05:00
Augusto Monteiro 0901f1bafc #539 - fixing pep8 2017-03-14 13:43:45 -05:00
penrods eafcc1abfb Several extensions to text normalization:
* intent_failure message now carries along the utterance's lang code
* normalizing query for Wolfram Alpha
* added normalization of "whats" to "what is".  This is technically incorrect ("whats" means more than one instance of "what", as in "the whats and whys of open source"), but that is a rare phrase.  Unfortunately, several STT engines incorrectly output things like "whats 8 + 4", which is grammatically incorrect.  So we'll handle the common and potentially screw up the uncommon.
* more parsing test cases, including a few corrections
2017-03-14 13:43:45 -05:00
Steve Penrod 883848fa11 Fixed typo (parser instead of parse)
Fixed typo (parser instead of parse)
2017-03-14 13:43:45 -05:00
penrods cfa79e03a2 Fixes issue #539
The utterance is now placed on the bus along with its language code.  If not specified, it uses "en-us".

Added a new mycroft.util.parse module.  It contains the normalize() function.  Normalization currently does two things:
  * Expands contractions ("they're" -> "they are", etc)
  * Optionally removes articles ("a", "an", "the").  Removing is the default.
  * Textual numbers become digits, up to 20.  E.g. "What is the weather in four days" becomes "What is weather in 4 days".

NOTE:  This is potentially a breaking change!  Remove "the", "a" and "an" from your .voc files!

Skill changes:
  * I cleaned up the .voc files for the default Skills.
  * Split the date_time keyword into an extra entity.  Now a "QueryKeyword.voc" exists, with "what|tell" instead of combing that into "what is time" in the TimeKeyword.voc.
  * Volume skill now accepts 1-11, e.g. "turn volume to 11"
2017-03-14 13:43:45 -05:00
Augusto Monteiro 621faef118 Merge pull request #550 from JarbasAI/patch-3
load intent skill first #552
2017-03-14 11:43:39 -05:00
JarbasAI 12c299789a autopep8 missed line 85 2017-03-14 11:33:15 -05:00
JarbasAI 870e827b5d autopep 8 2017-03-14 11:12:34 -05:00
Augusto Monteiro 9433167eab Merge pull request #549 from JarbasAI/patch-2
added blacklist check to load_skill#551
2017-03-13 14:53:52 -05:00
Augusto Monteiro dc53c9571b Merge pull request #548 from MycroftAI/feature/issue-547
This implements CLI enhancements per issue #547
2017-03-13 14:38:33 -05:00
Åke Forslund f0eb55effb Add functionality to remove and restore intents. 2017-03-13 18:15:12 +01:00
JarbasAI 9d55a6ab2d Update main.py 2017-03-12 16:44:46 -05:00
JarbasAI 07864cb6c9 list of pripritary skills
generalized for more skills
2017-03-12 16:42:42 -05:00
JarbasAI 5714bc608f pep 8 2017-03-11 16:03:41 -06:00
JarbasAI 00cfbd7f1b load intent skill first
intents for skills loaded before intent skill were not executing because register_intent messages were missed
2017-03-11 15:50:30 -06:00
JarbasAI b0bca504ee added blacklist check to load_skill
skill blacklisting was checked in load_skills which is no longer used in favor of watch_skills calling load_skill directly
2017-03-11 13:46:18 -06:00
penrods bc9956cd68 Fixing sloppy copy/paste errors. 2017-03-10 16:23:00 -06:00
penrods 9fce7d4620 This implements CLI enhancements per issue #547
Main CLI enhancements:
* Microphone meter
* Long log line left/right scrolling
* Eliminated flicker
* VT100 ESC key code support (used by some terms)

In addition, to achieve the meter it was necessary to implement a mechanism for local Inter Process Communication (IPC).  This is achieved using the file-system.  By default a folder structure is created under /tmp/mycroft/ipc, but it can be directed to somewhere else by setting the config value in mycroft.conf:
    "ipc_path" : "/path/to/somewhere"
In the future, Mark 1 and Picroft will get RAM disks to avoid burning out the SD card.  This is also a very fast communication mechanism.  This is all hidden under util.get_ipc_directory()

Further, the named signal mechanism was changed to use the IPC folder.  The signal can have a lifetime now (not just one shot).
2017-03-10 01:30:15 -06:00
JarbasAI b13070f276 added reload_skill flag 2017-03-09 01:56:23 -06:00
JarbasAI 7258dc6214 do not reload intent
or register_intent messages are missed and wolphram alpha always executes
2017-03-09 01:56:23 -06:00
JarbasAI 964fdb838e added do not reload flag 2017-03-09 01:56:23 -06:00
Arron Atchison 09ed3a6845 bump to 0.8.6 2017-03-01 09:45:56 -06:00
penrods 49b1530976 Fixing color initialization. I assumed 16 colors were defined, but that isn't standard on all terminals. Now only assuming the first 8. 2017-02-27 15:15:13 -06:00
penrods 6feac48c13 Bug fix for when the log contains a really short line (less than 8 characters). 2017-02-27 15:15:13 -06:00
penrods b51bd4acd9 Further enhancements:
* Added "--simple" mode, to get the old cli behavior
* Rewrote to not use tail (works better with multiple log files)
* Added Ctrl+PgUp/Dn support for scrolling back in logs
* Added filtering
* Refined look and log coloring
* Added :help screen
* Added support for terminal resizing
2017-02-27 15:15:13 -06:00
penrods 9e937964b0 For issue #535
* Fixed pep8 errors
* Added monitoring of relative and system log files for both github and package installs.
2017-02-27 15:15:13 -06:00
penrods bd68c478d7 First check-in of enhanced command line interface (CLI):
* Uses curses
* Displays a "chat history" with requests and responses
* Shows filtered logs from mycroft-skills.log, mycroft-voice.log
* Start of framework for special ":" commands (for log searching, etc)
2017-02-27 15:15:13 -06:00
Karl Fezer ffa6d4c50b Adds ./mycroft.sh start -d option that boots directly into the cli
modified:   mycroft.sh
2017-02-27 13:35:55 -06:00
Arron Atchison 75c24182d5 Update install-mimic.sh 2017-02-27 13:30:34 -06:00
Arron Atchison ee8820a048 Update .travis.yml 2017-02-27 13:30:34 -06:00
Arron Atchison 72af3fdee7 This might fix travis for mimic, thanks forslund 2017-02-27 13:30:34 -06:00
Arron Atchison 711433688b Added libicu-dev to deps for mimic 2017-02-27 13:30:34 -06:00
Arron Atchison a4dfbe591e Updating travis config to include a new dependency for mimic 2017-02-27 13:30:34 -06:00
Arron Atchison 754b7e7bc5 updated mimic to 1.2.0.1 with gcc fix; added make install; it's working great now 2017-02-27 13:30:34 -06:00
Arron Atchison 2b46d12b3a this is what works in my case, with gcc 6.2.0 2017-02-27 13:30:34 -06:00
Arron Atchison a7f0e9265d And autogen needs the ".sh" 2017-02-27 13:30:34 -06:00
Arron Atchison e41a23e5fe I had forgotten autogen 2017-02-27 13:30:34 -06:00
Arron Atchison 91137e6635 Updating Mimic version to 1.2.0; using --enable-shared flag for future Pymimic support 2017-02-27 13:30:34 -06:00
Augusto Monteiro 9fa77c4452 #521 - Ensuring that skill only try to load once 2017-02-23 23:03:12 -08:00
Augusto Monteiro 67e3c5f4a5 #521 - Using while instead of recursive function 2017-02-23 23:03:12 -08:00
Augusto Monteiro da01755fe6 #521 - Fixing pep8 2017-02-23 23:03:12 -08:00
Augusto Monteiro d50f2990f1 #521 - Refactoring watch_skill method 2017-02-23 23:03:12 -08:00
Augusto Monteiro 0044e154df #521 - removing comment 2017-02-23 23:03:12 -08:00
Augusto Monteiro 1b0afe92de #521 - Skill auto reload 2017-02-23 23:03:12 -08:00