Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 938 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 938 Bytes

Ensemble Classification Demo

Implemented TextCNNs,BERT as well as the weighted vote ensemble method.

This repository contains the whole inference process of both BERT and TextCNNs, including preprocessing and prediction.

Preparation

  1. Firstly, you must have exported either BERT/TextCNNs models into .pb format. For BERT models, you can find the solution to exporting BERT .pb model by checking https://github.com/cyk1337/BERT-Classification/blob/master/bert/run_classification.py.
  2. Then, use the .pb model path to initialize the model class at
    String bert_model_path = "pb_model/bert_L4_FC3_Seq128.pb";
    , suppose you have generated .pb model correctly.