This is a CBT(Children's Book Test) project, using Trigram Language Model. Information of the test is available: https://research.fb.com/projects/babi/
Stanford CoreNLP and py-corenlp is essential to build index data file with POS. Before building the index, make sure Stanford CoreNLP local server is started.