- Get intent examples for workspace
- Get intent examples for workspace, based on word count
- Show all intents for workspace
- Change message string depending on value assigned to
changeType - Full json reports for each intent, with response data
- Summary report of correct matching intents
- Log files for request or Watson API exception errors
input folder contains the imported messages files
report folder holds the results file with all response data
logs folder hold all data related to errors
brew update
brew install python3
pip3 install -r requirements.txt
cp config.example.conf config.confComplete the config.conf file
export SPACE_ID=workspace-idTo get current workspace ids:
curl -u "workspace-user-id":"workspace-password" "workspace-url"```python3 sendallmessages.pyfind ./logs/ -type f -size 0 -exec rm -f {} \;From the report directory:
find ./ -exec sed -i '' '1s/^{/[&/' {} \;
find ./ -exec sed -i '' '$ s/.$/]/' {} \;python3 jsoncompare.py file1.json file2.json > output.txtpython3 extractwordsmatchingcount.py