Based on the fix submitted by @mutahirqureshi: Fixes handling of annotations which contain spaces  - Added use of regex to match whole words only Fixes missing space when an entity is in the middle of an intent Fixes trailing space on the end of all intents
Based on the fix submitted by @mutahirqureshi:
Fixes handling of annotations which contain spaces
 - Added use of regex to match whole words only
Fixes missing space when an entity is in the middle of an intent
Fixes trailing space on the end of all intents

treethought/flask-assistant