├── .gitignore ├── .idea └── vcs.xml ├── README.md ├── api ├── core │ ├── __pycache__ │ │ └── helper.cpython-35.pyc │ └── helper.py └── lstm │ ├── __pycache__ │ ├── lstm_api.cpython-35.pyc │ └── lstm_crf.cpython-35.pyc │ ├── lstm_api.py │ └── lstm_crf.py ├── config ├── __pycache__ │ └── config.cpython-35.pyc └── config.py ├── data ├── 199801人民日报.data ├── model_301_drug_split ├── test.data └── 人民日报199801.txt ├── main.py ├── model_path └── checkpoint ├── output └── output.data ├── test.py ├── token ├── char_id └── label_id └── train.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/.gitignore -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/.idea/vcs.xml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/README.md -------------------------------------------------------------------------------- /api/core/__pycache__/helper.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/api/core/__pycache__/helper.cpython-35.pyc -------------------------------------------------------------------------------- /api/core/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/api/core/helper.py -------------------------------------------------------------------------------- /api/lstm/__pycache__/lstm_api.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/api/lstm/__pycache__/lstm_api.cpython-35.pyc -------------------------------------------------------------------------------- /api/lstm/__pycache__/lstm_crf.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/api/lstm/__pycache__/lstm_crf.cpython-35.pyc -------------------------------------------------------------------------------- /api/lstm/lstm_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/api/lstm/lstm_api.py -------------------------------------------------------------------------------- /api/lstm/lstm_crf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/api/lstm/lstm_crf.py -------------------------------------------------------------------------------- /config/__pycache__/config.cpython-35.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/config/__pycache__/config.cpython-35.pyc -------------------------------------------------------------------------------- /config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/config/config.py -------------------------------------------------------------------------------- /data/199801人民日报.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/data/199801人民日报.data -------------------------------------------------------------------------------- /data/model_301_drug_split: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/data/model_301_drug_split -------------------------------------------------------------------------------- /data/test.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/data/test.data -------------------------------------------------------------------------------- /data/人民日报199801.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/data/人民日报199801.txt -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/main.py -------------------------------------------------------------------------------- /model_path/checkpoint: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/model_path/checkpoint -------------------------------------------------------------------------------- /output/output.data: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/output/output.data -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/test.py -------------------------------------------------------------------------------- /token/char_id: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/token/char_id -------------------------------------------------------------------------------- /token/label_id: -------------------------------------------------------------------------------- 1 | 0 2 | E 1 3 | B 2 4 | O 3 5 | M 4 6 | S 5 7 | -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phychaos/lstm_crf/HEAD/train.py --------------------------------------------------------------------------------