This program run the analysis components of Karmen for a given SMS text or Email message. This includes cleaning the source data, and interfacing trained Watson NLC to identify the confidence percentage of the message being Spam. It will also identify ip addresses and urls within the message and leverage X-Force Exchange for analysis. It collects all the data and returns a json.
To download and install the required modules, run the command:
npm i
If running locally, a sample localdev-config.tpl template has been provided to show the required varialbes for a localdev-config.json file
A dump file containing the databases, views, indexes and initial data created using couchbackup.
To run the component tests, run the following command
LOGGER_LEVEL=debug DEBUG=debug npm run test
To execute the application locally, execute the following command:
node index.js
To log into the IBM cloud and setting up the environemnt, execute the following command:
npm run login
To push the updated application to the cloud, execute the following commnad:
npm run build; npm run update
If you need to watch the execution of the application in production, execute the following command:
npm run logs
Info on training a NLC and the data formatting can be found at the following links: