├── .gitignore ├── .vscode └── launch.json ├── LICENSE ├── drqa ├── __init__.py ├── features │ ├── map.txt │ ├── readme.md │ └── stopword_zh.txt ├── pipeline │ ├── __init__.py │ ├── drqa.py │ └── simpleDrQA.py ├── reader │ ├── __init__.py │ ├── config.py │ ├── data.py │ ├── layers.py │ ├── model.py │ ├── predictor.py │ ├── rnn_reader.py │ ├── utils.py │ └── vector.py ├── retriever │ ├── __init__.py │ ├── doc_db.py │ ├── net_retriever.py │ ├── tfidf_doc_ranker.py │ └── utils.py └── tokenizers │ ├── Zh_tokenizer.py │ ├── __init__.py │ ├── corenlp_tokenizer.py │ ├── regexp_tokenizer.py │ ├── simple_tokenizer.py │ ├── spacy_tokenizer.py │ ├── tokenizer.py │ └── zh_features.py ├── readme.md ├── requirements.txt ├── scripts ├── convert │ ├── squad.py │ └── webquestions.py ├── distant │ ├── check_data.py │ └── generate.py ├── pipeline │ ├── eval.py │ ├── interactive.py │ ├── predict.py │ └── sinteractive.py ├── reader │ ├── README.md │ ├── interactive.py │ ├── predict.py │ ├── preprocess.py │ └── train.py └── retriever │ ├── README.md │ ├── build_db.py │ ├── build_tfidf.py │ ├── eval.py │ ├── interactive.py │ └── prep_wikipedia.py └── setup.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/LICENSE -------------------------------------------------------------------------------- /drqa/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/__init__.py -------------------------------------------------------------------------------- /drqa/features/map.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/features/map.txt -------------------------------------------------------------------------------- /drqa/features/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/features/readme.md -------------------------------------------------------------------------------- /drqa/features/stopword_zh.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/features/stopword_zh.txt -------------------------------------------------------------------------------- /drqa/pipeline/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/pipeline/__init__.py -------------------------------------------------------------------------------- /drqa/pipeline/drqa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/pipeline/drqa.py -------------------------------------------------------------------------------- /drqa/pipeline/simpleDrQA.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/pipeline/simpleDrQA.py -------------------------------------------------------------------------------- /drqa/reader/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/__init__.py -------------------------------------------------------------------------------- /drqa/reader/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/config.py -------------------------------------------------------------------------------- /drqa/reader/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/data.py -------------------------------------------------------------------------------- /drqa/reader/layers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/layers.py -------------------------------------------------------------------------------- /drqa/reader/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/model.py -------------------------------------------------------------------------------- /drqa/reader/predictor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/predictor.py -------------------------------------------------------------------------------- /drqa/reader/rnn_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/rnn_reader.py -------------------------------------------------------------------------------- /drqa/reader/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/utils.py -------------------------------------------------------------------------------- /drqa/reader/vector.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/reader/vector.py -------------------------------------------------------------------------------- /drqa/retriever/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/retriever/__init__.py -------------------------------------------------------------------------------- /drqa/retriever/doc_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/retriever/doc_db.py -------------------------------------------------------------------------------- /drqa/retriever/net_retriever.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/retriever/net_retriever.py -------------------------------------------------------------------------------- /drqa/retriever/tfidf_doc_ranker.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/retriever/tfidf_doc_ranker.py -------------------------------------------------------------------------------- /drqa/retriever/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/retriever/utils.py -------------------------------------------------------------------------------- /drqa/tokenizers/Zh_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/Zh_tokenizer.py -------------------------------------------------------------------------------- /drqa/tokenizers/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/__init__.py -------------------------------------------------------------------------------- /drqa/tokenizers/corenlp_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/corenlp_tokenizer.py -------------------------------------------------------------------------------- /drqa/tokenizers/regexp_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/regexp_tokenizer.py -------------------------------------------------------------------------------- /drqa/tokenizers/simple_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/simple_tokenizer.py -------------------------------------------------------------------------------- /drqa/tokenizers/spacy_tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/spacy_tokenizer.py -------------------------------------------------------------------------------- /drqa/tokenizers/tokenizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/tokenizer.py -------------------------------------------------------------------------------- /drqa/tokenizers/zh_features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/drqa/tokenizers/zh_features.py -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/readme.md -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/requirements.txt -------------------------------------------------------------------------------- /scripts/convert/squad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/convert/squad.py -------------------------------------------------------------------------------- /scripts/convert/webquestions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/convert/webquestions.py -------------------------------------------------------------------------------- /scripts/distant/check_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/distant/check_data.py -------------------------------------------------------------------------------- /scripts/distant/generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/distant/generate.py -------------------------------------------------------------------------------- /scripts/pipeline/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/pipeline/eval.py -------------------------------------------------------------------------------- /scripts/pipeline/interactive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/pipeline/interactive.py -------------------------------------------------------------------------------- /scripts/pipeline/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/pipeline/predict.py -------------------------------------------------------------------------------- /scripts/pipeline/sinteractive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/pipeline/sinteractive.py -------------------------------------------------------------------------------- /scripts/reader/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/reader/README.md -------------------------------------------------------------------------------- /scripts/reader/interactive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/reader/interactive.py -------------------------------------------------------------------------------- /scripts/reader/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/reader/predict.py -------------------------------------------------------------------------------- /scripts/reader/preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/reader/preprocess.py -------------------------------------------------------------------------------- /scripts/reader/train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/reader/train.py -------------------------------------------------------------------------------- /scripts/retriever/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/retriever/README.md -------------------------------------------------------------------------------- /scripts/retriever/build_db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/retriever/build_db.py -------------------------------------------------------------------------------- /scripts/retriever/build_tfidf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/retriever/build_tfidf.py -------------------------------------------------------------------------------- /scripts/retriever/eval.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/retriever/eval.py -------------------------------------------------------------------------------- /scripts/retriever/interactive.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/retriever/interactive.py -------------------------------------------------------------------------------- /scripts/retriever/prep_wikipedia.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/scripts/retriever/prep_wikipedia.py -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AmoseKang/DrQA_cn/HEAD/setup.py --------------------------------------------------------------------------------