├── Model_file ├── F1.py ├── F2.py └── Readme.md ├── Readme.md ├── Readme_data └── model.jpg ├── data_final ├── task1 │ ├── Readme.md │ └── preproces.py └── task2 │ ├── Readme.md │ └── preproces.py ├── pretrain ├── Readme.md ├── create_pretraining_data.py ├── data_humor │ ├── cclhumortask12_bert.txt │ ├── cclhumortaskalldata_bert.txt │ ├── joke_category.xlsx │ ├── joke_degree.xlsx │ ├── task1.csv │ ├── task1_dev.csv │ ├── task1_test.csv │ ├── task2_development.csv │ ├── task2_test.csv │ └── task2_train.csv ├── datapro.py ├── finetune_on_pretrain.py ├── preprocess.py ├── readme.md ├── run_pretraining.py └── 预训练模型.doc ├── pytorch_transformers ├── Readme.md ├── __init__.py ├── __main__.py ├── __pycache__ │ ├── __init__.cpython-37.pyc │ ├── file_utils.cpython-37.pyc │ ├── modeling_auto.cpython-37.pyc │ ├── modeling_bert.cpython-37.pyc │ ├── modeling_gpt2.cpython-37.pyc │ ├── modeling_openai.cpython-37.pyc │ ├── modeling_roberta.cpython-37.pyc │ ├── modeling_transfo_xl.cpython-37.pyc │ ├── modeling_transfo_xl_utilities.cpython-37.pyc │ ├── modeling_utils.cpython-37.pyc │ ├── modeling_xlm.cpython-37.pyc │ ├── modeling_xlnet.cpython-37.pyc │ ├── optimization.cpython-37.pyc │ ├── tokenization_auto.cpython-37.pyc │ ├── tokenization_bert.cpython-37.pyc │ ├── tokenization_gpt2.cpython-37.pyc │ ├── tokenization_openai.cpython-37.pyc │ ├── tokenization_roberta.cpython-37.pyc │ ├── tokenization_transfo_xl.cpython-37.pyc │ ├── tokenization_utils.cpython-37.pyc │ ├── tokenization_xlm.cpython-37.pyc │ └── tokenization_xlnet.cpython-37.pyc ├── convert_gpt2_checkpoint_to_pytorch.py ├── convert_openai_checkpoint_to_pytorch.py ├── convert_pytorch_checkpoint_to_tf.py ├── convert_roberta_checkpoint_to_pytorch.py ├── convert_tf_checkpoint_to_pytorch.py ├── convert_transfo_xl_checkpoint_to_pytorch.py ├── convert_xlm_checkpoint_to_pytorch.py ├── convert_xlnet_checkpoint_to_pytorch.py ├── file_utils.py ├── modeling_auto.py ├── modeling_bert.py ├── modeling_gpt2.py ├── modeling_openai.py ├── modeling_roberta.py ├── modeling_transfo_xl.py ├── modeling_transfo_xl_utilities.py ├── modeling_utils.py ├── modeling_xlm.py ├── modeling_xlnet.py ├── optimization.py ├── tests │ ├── __init__.py │ ├── conftest.py │ ├── fixtures │ │ ├── input.txt │ │ ├── sample_text.txt │ │ └── test_sentencepiece.model │ ├── modeling_auto_test.py │ ├── modeling_bert_test.py │ ├── modeling_common_test.py │ ├── modeling_gpt2_test.py │ ├── modeling_openai_test.py │ ├── modeling_roberta_test.py │ ├── modeling_transfo_xl_test.py │ ├── modeling_xlm_test.py │ ├── modeling_xlnet_test.py │ ├── optimization_test.py │ ├── tokenization_auto_test.py │ ├── tokenization_bert_test.py │ ├── tokenization_gpt2_test.py │ ├── tokenization_openai_test.py │ ├── tokenization_roberta_test.py │ ├── tokenization_tests_commons.py │ ├── tokenization_transfo_xl_test.py │ ├── tokenization_utils_test.py │ ├── tokenization_xlm_test.py │ └── tokenization_xlnet_test.py ├── tokenization_auto.py ├── tokenization_bert.py ├── tokenization_gpt2.py ├── tokenization_openai.py ├── tokenization_roberta.py ├── tokenization_transfo_xl.py ├── tokenization_utils.py ├── tokenization_xlm.py └── tokenization_xlnet.py ├── run_bert.py ├── run_bert.sh ├── run_bert_cls3.py └── run_bert_cls3.sh /Model_file/F1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/Model_file/F1.py -------------------------------------------------------------------------------- /Model_file/F2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/Model_file/F2.py -------------------------------------------------------------------------------- /Model_file/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/Model_file/Readme.md -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/Readme.md -------------------------------------------------------------------------------- /Readme_data/model.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/Readme_data/model.jpg -------------------------------------------------------------------------------- /data_final/task1/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/data_final/task1/Readme.md -------------------------------------------------------------------------------- /data_final/task1/preproces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/data_final/task1/preproces.py -------------------------------------------------------------------------------- /data_final/task2/Readme.md: -------------------------------------------------------------------------------- 1 | 运行之前 ,上传任务二的训练数据和完整测试集数据 -------------------------------------------------------------------------------- /data_final/task2/preproces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/data_final/task2/preproces.py -------------------------------------------------------------------------------- /pretrain/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/Readme.md -------------------------------------------------------------------------------- /pretrain/create_pretraining_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/create_pretraining_data.py -------------------------------------------------------------------------------- /pretrain/data_humor/cclhumortask12_bert.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/cclhumortask12_bert.txt -------------------------------------------------------------------------------- /pretrain/data_humor/cclhumortaskalldata_bert.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/cclhumortaskalldata_bert.txt -------------------------------------------------------------------------------- /pretrain/data_humor/joke_category.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/joke_category.xlsx -------------------------------------------------------------------------------- /pretrain/data_humor/joke_degree.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/joke_degree.xlsx -------------------------------------------------------------------------------- /pretrain/data_humor/task1.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/task1.csv -------------------------------------------------------------------------------- /pretrain/data_humor/task1_dev.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/task1_dev.csv -------------------------------------------------------------------------------- /pretrain/data_humor/task1_test.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/task1_test.csv -------------------------------------------------------------------------------- /pretrain/data_humor/task2_development.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/task2_development.csv -------------------------------------------------------------------------------- /pretrain/data_humor/task2_test.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/task2_test.csv -------------------------------------------------------------------------------- /pretrain/data_humor/task2_train.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/data_humor/task2_train.csv -------------------------------------------------------------------------------- /pretrain/datapro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/datapro.py -------------------------------------------------------------------------------- /pretrain/finetune_on_pretrain.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/finetune_on_pretrain.py -------------------------------------------------------------------------------- /pretrain/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/preprocess.py -------------------------------------------------------------------------------- /pretrain/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/readme.md -------------------------------------------------------------------------------- /pretrain/run_pretraining.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/run_pretraining.py -------------------------------------------------------------------------------- /pretrain/预训练模型.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pretrain/预训练模型.doc -------------------------------------------------------------------------------- /pytorch_transformers/Readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/Readme.md -------------------------------------------------------------------------------- /pytorch_transformers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__init__.py -------------------------------------------------------------------------------- /pytorch_transformers/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__main__.py -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/file_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/file_utils.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_auto.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_auto.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_bert.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_bert.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_gpt2.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_gpt2.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_openai.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_openai.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_roberta.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_roberta.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_transfo_xl.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_transfo_xl.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_transfo_xl_utilities.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_transfo_xl_utilities.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_utils.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_xlm.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_xlm.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/modeling_xlnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/modeling_xlnet.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/optimization.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/optimization.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_auto.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_auto.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_bert.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_bert.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_gpt2.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_gpt2.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_openai.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_openai.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_roberta.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_roberta.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_transfo_xl.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_transfo_xl.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_utils.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_utils.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_xlm.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_xlm.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/__pycache__/tokenization_xlnet.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/__pycache__/tokenization_xlnet.cpython-37.pyc -------------------------------------------------------------------------------- /pytorch_transformers/convert_gpt2_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_gpt2_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /pytorch_transformers/convert_openai_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_openai_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /pytorch_transformers/convert_pytorch_checkpoint_to_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_pytorch_checkpoint_to_tf.py -------------------------------------------------------------------------------- /pytorch_transformers/convert_roberta_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_roberta_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /pytorch_transformers/convert_tf_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_tf_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /pytorch_transformers/convert_transfo_xl_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_transfo_xl_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /pytorch_transformers/convert_xlm_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_xlm_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /pytorch_transformers/convert_xlnet_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/convert_xlnet_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /pytorch_transformers/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/file_utils.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_auto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_auto.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_bert.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_gpt2.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_openai.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_roberta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_roberta.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_transfo_xl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_transfo_xl.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_transfo_xl_utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_transfo_xl_utilities.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_utils.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_xlm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_xlm.py -------------------------------------------------------------------------------- /pytorch_transformers/modeling_xlnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/modeling_xlnet.py -------------------------------------------------------------------------------- /pytorch_transformers/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/optimization.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pytorch_transformers/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/conftest.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/fixtures/input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/fixtures/input.txt -------------------------------------------------------------------------------- /pytorch_transformers/tests/fixtures/sample_text.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/fixtures/sample_text.txt -------------------------------------------------------------------------------- /pytorch_transformers/tests/fixtures/test_sentencepiece.model: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/fixtures/test_sentencepiece.model -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_auto_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_auto_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_bert_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_bert_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_common_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_common_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_gpt2_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_gpt2_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_openai_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_openai_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_roberta_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_roberta_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_transfo_xl_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_transfo_xl_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_xlm_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_xlm_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/modeling_xlnet_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/modeling_xlnet_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/optimization_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/optimization_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_auto_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_auto_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_bert_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_bert_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_gpt2_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_gpt2_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_openai_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_openai_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_roberta_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_roberta_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_tests_commons.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_tests_commons.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_transfo_xl_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_transfo_xl_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_utils_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_utils_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_xlm_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_xlm_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tests/tokenization_xlnet_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tests/tokenization_xlnet_test.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_auto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_auto.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_bert.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_gpt2.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_openai.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_roberta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_roberta.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_transfo_xl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_transfo_xl.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_utils.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_xlm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_xlm.py -------------------------------------------------------------------------------- /pytorch_transformers/tokenization_xlnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/pytorch_transformers/tokenization_xlnet.py -------------------------------------------------------------------------------- /run_bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/run_bert.py -------------------------------------------------------------------------------- /run_bert.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/run_bert.sh -------------------------------------------------------------------------------- /run_bert_cls3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/run_bert_cls3.py -------------------------------------------------------------------------------- /run_bert_cls3.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qingbonlp/qingbo_CCL2019-Chinese-Humor-Computation/HEAD/run_bert_cls3.sh --------------------------------------------------------------------------------