This repository contains all the code examples in the book Machine Reading Comprehension: Algorithms and Practice
All code is is based on Python 3. The required packages are specified in requirements.txt.
pip install -r requirements.txt
The folders contain code from the corresponding chapter. Each code example can be executed independently, e.g.:
python Chapter_3/3.1.2_CNN_Pooling.py
The pre-trained model and package used in Chapter 6 are specified in the code comment.
The code of SDNet model in Chapter 7 is at https://github.com/microsoft/SDNet.
Errata.md contains the errata information.
For more questions, please contact the author Chenguang Zhu, [email protected].