Configures WIT & generates series of utterances to train on.
Use templates & create sentences by iterating through provided intents, entities & traits- Make templates smarter by automatically creating permutations that look like typos. These should apply to:
- The fixed template strings
- The template variables populated by entities & traits
- Turn in to a general package anyone could use
- Install required libraries:
pip install -r requirements.txt
- Set WIT Environment Variable
export WIT_TOKEN=abc123
- Train WIT
python train_wit.py
The pywit library has a bug in it. Either it should be forked & fixed or better yet a PR should be raised. In the meantime, it's been cloned, updated & installed locally to get things up & running. To so within the create_intent
method in wit.py
swap out the existing line for:
resp = req(self.logger, self.access_token, 'POST', endpoint, params, data=json.dumps(data) , headers=headers)