a b/code/dnc_code/Readme.txt
1
The code is written in Python 3.6 in Ubuntu 18.04 Operating System.
2
3
********************************************************************************
4
5
Libraries required:
6
NumPy
7
PyTorch
8
9
********************************************************************************
10
11
Train the model by writing following in the terminal:
12
13
"python3 train.py opt1 opt2"
14
15
---------------------------------------
16
opt1: 1). '1' for bAbI Task training
17
      2). '2' for Medical NER task training
18
      
19
opt1: 1). 'GPU' to run code on GPU
20
      2). 'CPU' to run code normally
21
---------------------------------------
22
23
********************************************************************************
24
25
Test the model by writing following in the terminal:
26
27
"python3 test.py opt1 opt2 opt3 opt4"
28
29
---------------------------------------
30
opt1: 1). '1' for bAbI Task training
31
      2). '2' for Medical NER task training
32
33
opt2: 1). 'GPU' to run code on GPU
34
      2). 'CPU' to run code normally
35
36
opt3: Last Epoch number till the model was trained
37
38
Opt4: Last Batch Number till the model was trained 
39
---------------------------------------
40
41
********************************************************************************
42
43
Reference:
44
1). https://github.com/loudinthecloud/pytorch-ntm
45
2). Paper: Robust and Scalable Differentiable Neural Computer for Question Answering