python3
tensorflow >= 1.13
Given a sentence, assign a label according to its' content.
i liked the Da Vinci Code a lot. --- 1
The data provided in the data/
directory is a csv file
In data_util.py
I provide some funtions to process the csv file.
This contains several steps:
- Before you can get started on training the model, you mast run
python data_util.py
- After the dirty preprpcessing jobs, you can try running an training experiment with some configurations by:
python main.py
- You can also run an evaluation by:
python server.py
Then follow the instruction. Hope you enjoy it.
Bag of Tricks for Efficient Text Classification.
Recurrent Convolutional Neural Networks for Text Classification.
Hierarchical Attention Networks for Document Classification.
├── data - this fold contains all the data
│ ├── train
├── model - this fold contains the pkl file to restore
├── main.py - main structure of the project
├── methods.py - all methods we use
├── data_util.py - preprocess the data
├── load_data.py - data generator
├── server.py - server
- Still need parameters searching.
- Need structure changing to satisfy parameters chosing.
- Make codes nicer.