├── .vscode └── settings.json ├── README.md ├── __pycache__ ├── arguments.cpython-36.pyc ├── arguments.cpython-38.pyc ├── data_preprocessing.cpython-36.pyc ├── data_preprocessing.cpython-38.pyc ├── data_process.cpython-36.pyc ├── logger.cpython-36.pyc ├── logger.cpython-38.pyc ├── model.cpython-36.pyc └── model.cpython-38.pyc ├── data ├── test.json └── train.json ├── data_preprocessing ├── __pycache__ │ ├── data_prepro.cpython-36.pyc │ ├── event_type_data_prepro.cpython-36.pyc │ ├── predict_data_prepro.cpython-36.pyc │ ├── role_extract_data_prepro.cpython-36.pyc │ └── tools.cpython-36.pyc ├── data_prepro.py └── tools.py ├── log └── README.md ├── model ├── __pycache__ │ ├── Bert_mrc.cpython-36.pyc │ ├── Multi_label_cls.cpython-36.pyc │ └── model.cpython-36.pyc ├── loss_function │ ├── __pycache__ │ │ ├── cross_entropy_loss.cpython-36.pyc │ │ ├── focal_loss.cpython-36.pyc │ │ ├── multilabel_cross_entropy.cpython-36.pyc │ │ └── span_loss.cpython-36.pyc │ ├── binary_cross_entropy.py │ ├── cross_entropy_loss.py │ ├── focal_loss.py │ ├── multilabel_cross_entropy.py │ └── span_loss.py ├── metrics │ ├── __pycache__ │ │ └── metrics.cpython-36.pyc │ └── metrics.py └── model.py ├── output └── result.json ├── predict.py ├── pretrained_model └── README.md ├── train.py └── utils ├── __pycache__ ├── arguments_parse.cpython-36.pyc └── logger.cpython-36.pyc ├── arguments_parse.py └── logger.py /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "python.formatting.provider": "yapf" 3 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/README.md -------------------------------------------------------------------------------- /__pycache__/arguments.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/arguments.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/arguments.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/arguments.cpython-38.pyc -------------------------------------------------------------------------------- /__pycache__/data_preprocessing.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/data_preprocessing.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/data_preprocessing.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/data_preprocessing.cpython-38.pyc -------------------------------------------------------------------------------- /__pycache__/data_process.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/data_process.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/logger.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/logger.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/logger.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/logger.cpython-38.pyc -------------------------------------------------------------------------------- /__pycache__/model.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/model.cpython-36.pyc -------------------------------------------------------------------------------- /__pycache__/model.cpython-38.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/__pycache__/model.cpython-38.pyc -------------------------------------------------------------------------------- /data/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data/test.json -------------------------------------------------------------------------------- /data/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data/train.json -------------------------------------------------------------------------------- /data_preprocessing/__pycache__/data_prepro.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data_preprocessing/__pycache__/data_prepro.cpython-36.pyc -------------------------------------------------------------------------------- /data_preprocessing/__pycache__/event_type_data_prepro.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data_preprocessing/__pycache__/event_type_data_prepro.cpython-36.pyc -------------------------------------------------------------------------------- /data_preprocessing/__pycache__/predict_data_prepro.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data_preprocessing/__pycache__/predict_data_prepro.cpython-36.pyc -------------------------------------------------------------------------------- /data_preprocessing/__pycache__/role_extract_data_prepro.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data_preprocessing/__pycache__/role_extract_data_prepro.cpython-36.pyc -------------------------------------------------------------------------------- /data_preprocessing/__pycache__/tools.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data_preprocessing/__pycache__/tools.cpython-36.pyc -------------------------------------------------------------------------------- /data_preprocessing/data_prepro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data_preprocessing/data_prepro.py -------------------------------------------------------------------------------- /data_preprocessing/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/data_preprocessing/tools.py -------------------------------------------------------------------------------- /log/README.md: -------------------------------------------------------------------------------- 1 | # PyTorch_BERT_Biaffine_NER 2 | 论文复现《Named Entity Recognition as Dependency Parsing》 3 | -------------------------------------------------------------------------------- /model/__pycache__/Bert_mrc.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/__pycache__/Bert_mrc.cpython-36.pyc -------------------------------------------------------------------------------- /model/__pycache__/Multi_label_cls.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/__pycache__/Multi_label_cls.cpython-36.pyc -------------------------------------------------------------------------------- /model/__pycache__/model.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/__pycache__/model.cpython-36.pyc -------------------------------------------------------------------------------- /model/loss_function/__pycache__/cross_entropy_loss.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/__pycache__/cross_entropy_loss.cpython-36.pyc -------------------------------------------------------------------------------- /model/loss_function/__pycache__/focal_loss.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/__pycache__/focal_loss.cpython-36.pyc -------------------------------------------------------------------------------- /model/loss_function/__pycache__/multilabel_cross_entropy.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/__pycache__/multilabel_cross_entropy.cpython-36.pyc -------------------------------------------------------------------------------- /model/loss_function/__pycache__/span_loss.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/__pycache__/span_loss.cpython-36.pyc -------------------------------------------------------------------------------- /model/loss_function/binary_cross_entropy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/binary_cross_entropy.py -------------------------------------------------------------------------------- /model/loss_function/cross_entropy_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/cross_entropy_loss.py -------------------------------------------------------------------------------- /model/loss_function/focal_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/focal_loss.py -------------------------------------------------------------------------------- /model/loss_function/multilabel_cross_entropy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/multilabel_cross_entropy.py -------------------------------------------------------------------------------- /model/loss_function/span_loss.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/loss_function/span_loss.py -------------------------------------------------------------------------------- /model/metrics/__pycache__/metrics.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/metrics/__pycache__/metrics.cpython-36.pyc -------------------------------------------------------------------------------- /model/metrics/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/metrics/metrics.py -------------------------------------------------------------------------------- /model/model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/model/model.py -------------------------------------------------------------------------------- /output/result.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/output/result.json -------------------------------------------------------------------------------- /predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/predict.py -------------------------------------------------------------------------------- /pretrained_model/README.md: -------------------------------------------------------------------------------- 1 | # PyTorch_BERT_Biaffine_NER 2 | 论文复现《Named Entity Recognition as Dependency Parsing》 3 | -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/train.py -------------------------------------------------------------------------------- /utils/__pycache__/arguments_parse.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/utils/__pycache__/arguments_parse.cpython-36.pyc -------------------------------------------------------------------------------- /utils/__pycache__/logger.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/utils/__pycache__/logger.cpython-36.pyc -------------------------------------------------------------------------------- /utils/arguments_parse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/utils/arguments_parse.py -------------------------------------------------------------------------------- /utils/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/suolyer/PyTorch_BERT_Biaffine_NER/HEAD/utils/logger.py --------------------------------------------------------------------------------