├── .gitignore ├── Dockerfile ├── README.md ├── bot.py ├── docker-compose.yml ├── nlp_module ├── HITSZQA │ └── data │ │ └── train_example.txt ├── LICENSE ├── README.md ├── RequestHandler.py ├── __init__.py ├── bert_pretrain │ ├── README.md │ ├── bert_config.json │ └── vocab.txt ├── models │ ├── ERNIE.py │ ├── bert.py │ ├── bert_CNN.py │ ├── bert_DPCNN.py │ ├── bert_RCNN.py │ └── bert_RNN.py ├── pytorch_pretrained │ ├── __init__.py │ ├── __main__.py │ ├── convert_gpt2_checkpoint_to_pytorch.py │ ├── convert_openai_checkpoint_to_pytorch.py │ ├── convert_tf_checkpoint_to_pytorch.py │ ├── convert_transfo_xl_checkpoint_to_pytorch.py │ ├── file_utils.py │ ├── modeling.py │ ├── modeling_gpt2.py │ ├── modeling_openai.py │ ├── modeling_transfo_xl.py │ ├── modeling_transfo_xl_utilities.py │ ├── optimization.py │ ├── optimization_openai.py │ ├── tokenization.py │ ├── tokenization_gpt2.py │ ├── tokenization_openai.py │ └── tokenization_transfo_xl.py ├── run.py ├── train_eval.py ├── utils.py └── utils_new.py ├── pyproject.toml ├── requirements.txt └── src └── plugins ├── faq ├── __init__.py └── answers_example.txt └── txt_tools.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/README.md -------------------------------------------------------------------------------- /bot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/bot.py -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /nlp_module/HITSZQA/data/train_example.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/HITSZQA/data/train_example.txt -------------------------------------------------------------------------------- /nlp_module/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/LICENSE -------------------------------------------------------------------------------- /nlp_module/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/README.md -------------------------------------------------------------------------------- /nlp_module/RequestHandler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/RequestHandler.py -------------------------------------------------------------------------------- /nlp_module/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nlp_module/bert_pretrain/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/bert_pretrain/README.md -------------------------------------------------------------------------------- /nlp_module/bert_pretrain/bert_config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/bert_pretrain/bert_config.json -------------------------------------------------------------------------------- /nlp_module/bert_pretrain/vocab.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/bert_pretrain/vocab.txt -------------------------------------------------------------------------------- /nlp_module/models/ERNIE.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/models/ERNIE.py -------------------------------------------------------------------------------- /nlp_module/models/bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/models/bert.py -------------------------------------------------------------------------------- /nlp_module/models/bert_CNN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/models/bert_CNN.py -------------------------------------------------------------------------------- /nlp_module/models/bert_DPCNN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/models/bert_DPCNN.py -------------------------------------------------------------------------------- /nlp_module/models/bert_RCNN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/models/bert_RCNN.py -------------------------------------------------------------------------------- /nlp_module/models/bert_RNN.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/models/bert_RNN.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/__init__.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/__main__.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/convert_gpt2_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/convert_gpt2_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/convert_openai_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/convert_openai_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/convert_tf_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/convert_tf_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/convert_transfo_xl_checkpoint_to_pytorch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/convert_transfo_xl_checkpoint_to_pytorch.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/file_utils.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/modeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/modeling.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/modeling_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/modeling_gpt2.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/modeling_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/modeling_openai.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/modeling_transfo_xl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/modeling_transfo_xl.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/modeling_transfo_xl_utilities.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/modeling_transfo_xl_utilities.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/optimization.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/optimization_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/optimization_openai.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/tokenization.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/tokenization_gpt2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/tokenization_gpt2.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/tokenization_openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/tokenization_openai.py -------------------------------------------------------------------------------- /nlp_module/pytorch_pretrained/tokenization_transfo_xl.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/pytorch_pretrained/tokenization_transfo_xl.py -------------------------------------------------------------------------------- /nlp_module/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/run.py -------------------------------------------------------------------------------- /nlp_module/train_eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/train_eval.py -------------------------------------------------------------------------------- /nlp_module/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/utils.py -------------------------------------------------------------------------------- /nlp_module/utils_new.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/nlp_module/utils_new.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/plugins/faq/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/src/plugins/faq/__init__.py -------------------------------------------------------------------------------- /src/plugins/faq/answers_example.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/src/plugins/faq/answers_example.txt -------------------------------------------------------------------------------- /src/plugins/txt_tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/L-M-Sherlock/HITszQAbot/HEAD/src/plugins/txt_tools.py --------------------------------------------------------------------------------