├── .idea ├── dictionaries │ └── xuliang.xml └── vcs.xml ├── BERT_BASE_DIR └── readMe.md ├── PRE_TRAIN_DIR └── readMe.md ├── README.md ├── README_bert_chinese_tutorial.md ├── TEXT_DIR ├── dev2.tsv ├── readMe.md └── train2.tsv ├── __init__.py ├── ai_challenger_sentiment_analysis_testa_20180816 ├── README.txt └── protocol.txt ├── ai_challenger_sentiment_analysis_trainingset_20180816 ├── README.txt └── protocol.txt ├── ai_challenger_sentiment_analysis_validationset_20180816 ├── README.txt └── protocol.txt ├── ai_challenger_sentimetn_analysis_testb_20180816 ├── README.txt └── protocol.txt ├── bigru_char_checkpoint └── README.txt ├── create_pretraining_data.py ├── data └── img │ ├── bert_sa.jpg │ ├── bert_sentiment_analysis.jpg │ └── fine_grain.jpg ├── data_util_hdf5.py ├── evaluation_matrix.py ├── model ├── __init__.py ├── base_model.py ├── bert_cnn_fine_grain_model.py ├── bert_cnn_model.py ├── bert_model.py ├── bert_modeling.py ├── config.py ├── config_transformer.py ├── encoder.py ├── layer_norm_residual_conn.py ├── multi_head_attention.py ├── optimization.py ├── poistion_wise_feed_forward.py └── transfomer_model.py ├── old ├── JoinAttLayer.py ├── Preprocess_char_old.ipynb ├── classifier_bigru.py ├── classifier_capsule.py ├── classifier_rcnn.py ├── evaluate_char.py ├── model_bigru_char.py ├── model_capsule_char.py ├── model_rcnn_char.py ├── predict_bigru_char.py ├── predict_rcnn_char.py ├── rcnn_retrain.py ├── stopwords.txt ├── temp_covert.py ├── train_transform.py ├── validation_bigru_char.py └── validation_rcnn_char.py ├── preprocess_char.ipynb ├── preprocess_char └── README.txt ├── preprocess_word.ipynb ├── pretrain_task.py ├── run_classifier_multi_labels_bert.py ├── run_pretraining.py ├── tokenization.py ├── tokenizer_char.pickle ├── train_bert_fine_tuning.py ├── train_cnn_fine_grain.py ├── train_cnn_lm.py └── word2vec └── README.txt /.idea/dictionaries/xuliang.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/.idea/dictionaries/xuliang.xml -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /BERT_BASE_DIR/readMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/BERT_BASE_DIR/readMe.md -------------------------------------------------------------------------------- /PRE_TRAIN_DIR/readMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/PRE_TRAIN_DIR/readMe.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/README.md -------------------------------------------------------------------------------- /README_bert_chinese_tutorial.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/README_bert_chinese_tutorial.md -------------------------------------------------------------------------------- /TEXT_DIR/dev2.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/TEXT_DIR/dev2.tsv -------------------------------------------------------------------------------- /TEXT_DIR/readMe.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/TEXT_DIR/readMe.md -------------------------------------------------------------------------------- /TEXT_DIR/train2.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/TEXT_DIR/train2.tsv -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ai_challenger_sentiment_analysis_testa_20180816/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentiment_analysis_testa_20180816/README.txt -------------------------------------------------------------------------------- /ai_challenger_sentiment_analysis_testa_20180816/protocol.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentiment_analysis_testa_20180816/protocol.txt -------------------------------------------------------------------------------- /ai_challenger_sentiment_analysis_trainingset_20180816/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentiment_analysis_trainingset_20180816/README.txt -------------------------------------------------------------------------------- /ai_challenger_sentiment_analysis_trainingset_20180816/protocol.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentiment_analysis_trainingset_20180816/protocol.txt -------------------------------------------------------------------------------- /ai_challenger_sentiment_analysis_validationset_20180816/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentiment_analysis_validationset_20180816/README.txt -------------------------------------------------------------------------------- /ai_challenger_sentiment_analysis_validationset_20180816/protocol.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentiment_analysis_validationset_20180816/protocol.txt -------------------------------------------------------------------------------- /ai_challenger_sentimetn_analysis_testb_20180816/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentimetn_analysis_testb_20180816/README.txt -------------------------------------------------------------------------------- /ai_challenger_sentimetn_analysis_testb_20180816/protocol.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/ai_challenger_sentimetn_analysis_testb_20180816/protocol.txt -------------------------------------------------------------------------------- /bigru_char_checkpoint/README.txt: -------------------------------------------------------------------------------- 1 | checkpoint of bigru_char will be saved here. -------------------------------------------------------------------------------- /create_pretraining_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/create_pretraining_data.py -------------------------------------------------------------------------------- /data/img/bert_sa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/data/img/bert_sa.jpg -------------------------------------------------------------------------------- /data/img/bert_sentiment_analysis.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/data/img/bert_sentiment_analysis.jpg -------------------------------------------------------------------------------- /data/img/fine_grain.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/data/img/fine_grain.jpg -------------------------------------------------------------------------------- /data_util_hdf5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/data_util_hdf5.py -------------------------------------------------------------------------------- /evaluation_matrix.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/evaluation_matrix.py -------------------------------------------------------------------------------- /model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /model/base_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/base_model.py -------------------------------------------------------------------------------- /model/bert_cnn_fine_grain_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/bert_cnn_fine_grain_model.py -------------------------------------------------------------------------------- /model/bert_cnn_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/bert_cnn_model.py -------------------------------------------------------------------------------- /model/bert_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/bert_model.py -------------------------------------------------------------------------------- /model/bert_modeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/bert_modeling.py -------------------------------------------------------------------------------- /model/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/config.py -------------------------------------------------------------------------------- /model/config_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/config_transformer.py -------------------------------------------------------------------------------- /model/encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/encoder.py -------------------------------------------------------------------------------- /model/layer_norm_residual_conn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/layer_norm_residual_conn.py -------------------------------------------------------------------------------- /model/multi_head_attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/multi_head_attention.py -------------------------------------------------------------------------------- /model/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/optimization.py -------------------------------------------------------------------------------- /model/poistion_wise_feed_forward.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/poistion_wise_feed_forward.py -------------------------------------------------------------------------------- /model/transfomer_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/model/transfomer_model.py -------------------------------------------------------------------------------- /old/JoinAttLayer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/JoinAttLayer.py -------------------------------------------------------------------------------- /old/Preprocess_char_old.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/Preprocess_char_old.ipynb -------------------------------------------------------------------------------- /old/classifier_bigru.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/classifier_bigru.py -------------------------------------------------------------------------------- /old/classifier_capsule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/classifier_capsule.py -------------------------------------------------------------------------------- /old/classifier_rcnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/classifier_rcnn.py -------------------------------------------------------------------------------- /old/evaluate_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/evaluate_char.py -------------------------------------------------------------------------------- /old/model_bigru_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/model_bigru_char.py -------------------------------------------------------------------------------- /old/model_capsule_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/model_capsule_char.py -------------------------------------------------------------------------------- /old/model_rcnn_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/model_rcnn_char.py -------------------------------------------------------------------------------- /old/predict_bigru_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/predict_bigru_char.py -------------------------------------------------------------------------------- /old/predict_rcnn_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/predict_rcnn_char.py -------------------------------------------------------------------------------- /old/rcnn_retrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/rcnn_retrain.py -------------------------------------------------------------------------------- /old/stopwords.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/stopwords.txt -------------------------------------------------------------------------------- /old/temp_covert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/temp_covert.py -------------------------------------------------------------------------------- /old/train_transform.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/train_transform.py -------------------------------------------------------------------------------- /old/validation_bigru_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/validation_bigru_char.py -------------------------------------------------------------------------------- /old/validation_rcnn_char.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/old/validation_rcnn_char.py -------------------------------------------------------------------------------- /preprocess_char.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/preprocess_char.ipynb -------------------------------------------------------------------------------- /preprocess_char/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/preprocess_char/README.txt -------------------------------------------------------------------------------- /preprocess_word.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/preprocess_word.ipynb -------------------------------------------------------------------------------- /pretrain_task.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/pretrain_task.py -------------------------------------------------------------------------------- /run_classifier_multi_labels_bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/run_classifier_multi_labels_bert.py -------------------------------------------------------------------------------- /run_pretraining.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/run_pretraining.py -------------------------------------------------------------------------------- /tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/tokenization.py -------------------------------------------------------------------------------- /tokenizer_char.pickle: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/tokenizer_char.pickle -------------------------------------------------------------------------------- /train_bert_fine_tuning.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/train_bert_fine_tuning.py -------------------------------------------------------------------------------- /train_cnn_fine_grain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/train_cnn_fine_grain.py -------------------------------------------------------------------------------- /train_cnn_lm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brightmart/sentiment_analysis_fine_grain/HEAD/train_cnn_lm.py -------------------------------------------------------------------------------- /word2vec/README.txt: -------------------------------------------------------------------------------- 1 | save word2vec here. --------------------------------------------------------------------------------