Implementation of character CNN by LeCunn et. al. for an university talk. Pimped with LIME to make the predictions of the black box charCNN more accessible and localy interpretable. Also, a small flask App is included for demonstration purposes.
This readme is structured as follows:
- Basic idea of CNNs for text classification
- Implementation
- Basic idea of LIME
- How to: handle those scripts
Work in progress
1D convolution over character-encoded text. Example with the text "text mining":
Implementation of the small charCnn by Zhang, Zhao LeCunn 2015 following this architecture:
Used the Yelp Polarity Data Set to detect the sentiment of Yelp reviews.
The fully trained model can be downloaded as a hdf5 file using this link. Make sure to install the h5py python package (available on pip) to access the file.
Use of the fantastic LIME package to make some sense out of the local predictions of the charCnn.