Business Rule Extraction using Aritficial Neural Networks
Requirements –
1. Python 2.7
2. NLTK – sudo pip install –U nltk
3. NumPy – sudo pip install –U numpy
4. Punkt
Code Usage –
Training the Neural Network
1. Open Train.py
2. Add sentences in the training_data according to the scope of the program.
3. Open terminal.
4. Type in “python Train.py”
5. This will train the neural network, creating a synapses.json file.
Rule Extraction
1. Add your code to program.txt
2. Open terminal.
3. Type in “python parse.py”
4. This will test the program against the trained data.
5. Output is displayed in the terminal as Natural Language
Screenshots -
Fig. 1 – Training the Dataset
Fig. 2 – Extracting rules in Natural Language