├── LICENSE ├── README.md ├── ZEN ├── __init__.py ├── file_utils.py ├── modeling.py ├── ngram_utils.py ├── optimization.py └── tokenization.py ├── corenlp.py ├── data ├── aesiner.md └── test_dataset │ ├── dev.stanford.json │ ├── dev.txt │ ├── test.stanford.json │ ├── test.txt │ ├── train.stanford.json │ └── train.txt ├── data_helper.py ├── data_preprocess.py ├── data_process.py ├── fastNLP ├── ZEN │ ├── __init__.py │ ├── file_utils.py │ ├── modeling.py │ ├── ngram_utils.py │ ├── optimization.py │ └── tokenization.py ├── __init__.py ├── core │ ├── __init__.py │ ├── _logger.py │ ├── _parallel_utils.py │ ├── batch.py │ ├── callback.py │ ├── const.py │ ├── dataset.py │ ├── dist_trainer.py │ ├── field.py │ ├── instance.py │ ├── losses.py │ ├── metrics.py │ ├── optimizer.py │ ├── predictor.py │ ├── sampler.py │ ├── tester.py │ ├── trainer.py │ ├── utils.py │ └── vocabulary.py ├── doc_utils.py ├── embeddings │ ├── __init__.py │ ├── bert_embedding.py │ ├── char_embedding.py │ ├── contextual_embedding.py │ ├── elmo_embedding.py │ ├── embedding.py │ ├── stack_embedding.py │ ├── static_embedding.py │ ├── utils.py │ └── zen_embedding.py ├── io │ ├── __init__.py │ ├── data_bundle.py │ ├── embed_loader.py │ ├── file_reader.py │ ├── file_utils.py │ ├── loader │ │ ├── __init__.py │ │ ├── classification.py │ │ ├── conll.py │ │ ├── coreference.py │ │ ├── csv.py │ │ ├── cws.py │ │ ├── json.py │ │ ├── loader.py │ │ ├── matching.py │ │ ├── qa.py │ │ └── summarization.py │ ├── model_io.py │ ├── pipe │ │ ├── __init__.py │ │ ├── classification.py │ │ ├── conll.py │ │ ├── coreference.py │ │ ├── cws.py │ │ ├── matching.py │ │ ├── pipe.py │ │ ├── qa.py │ │ ├── summarization.py │ │ └── utils.py │ └── utils.py ├── models │ ├── __init__.py │ ├── base_model.py │ ├── bert.py │ ├── biaffine_parser.py │ ├── cnn_text_classification.py │ ├── sequence_labeling.py │ ├── snli.py │ └── star_transformer.py └── modules │ ├── __init__.py │ ├── decoder │ ├── __init__.py │ ├── crf.py │ ├── mlp.py │ └── utils.py │ ├── dropout.py │ ├── encoder │ ├── __init__.py │ ├── _elmo.py │ ├── attention.py │ ├── bert.py │ ├── char_encoder.py │ ├── conv_maxpool.py │ ├── lstm.py │ ├── pooling.py │ ├── star_transformer.py │ ├── transformer.py │ └── variational_rnn.py │ └── utils.py ├── get_knowledge.py ├── models ├── TENER.py └── __init__.py ├── modules ├── TransformerEmbedding.py ├── __init__.py ├── callbacks.py ├── pipe.py ├── relative_transformer.py ├── transformer.py └── utils.py ├── requirements.txt ├── run_cn.py ├── run_en.py ├── run_token_level_classification.py ├── stanford.sh ├── train_bert_elmo_en.py ├── train_zen_cn.py └── utils_token_level_task.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/README.md -------------------------------------------------------------------------------- /ZEN/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/ZEN/__init__.py -------------------------------------------------------------------------------- /ZEN/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/ZEN/file_utils.py -------------------------------------------------------------------------------- /ZEN/modeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/ZEN/modeling.py -------------------------------------------------------------------------------- /ZEN/ngram_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/ZEN/ngram_utils.py -------------------------------------------------------------------------------- /ZEN/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/ZEN/optimization.py -------------------------------------------------------------------------------- /ZEN/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/ZEN/tokenization.py -------------------------------------------------------------------------------- /corenlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/corenlp.py -------------------------------------------------------------------------------- /data/aesiner.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data/aesiner.md -------------------------------------------------------------------------------- /data/test_dataset/dev.stanford.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data/test_dataset/dev.stanford.json -------------------------------------------------------------------------------- /data/test_dataset/dev.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data/test_dataset/dev.txt -------------------------------------------------------------------------------- /data/test_dataset/test.stanford.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data/test_dataset/test.stanford.json -------------------------------------------------------------------------------- /data/test_dataset/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data/test_dataset/test.txt -------------------------------------------------------------------------------- /data/test_dataset/train.stanford.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data/test_dataset/train.stanford.json -------------------------------------------------------------------------------- /data/test_dataset/train.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data/test_dataset/train.txt -------------------------------------------------------------------------------- /data_helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data_helper.py -------------------------------------------------------------------------------- /data_preprocess.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data_preprocess.py -------------------------------------------------------------------------------- /data_process.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/data_process.py -------------------------------------------------------------------------------- /fastNLP/ZEN/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/ZEN/__init__.py -------------------------------------------------------------------------------- /fastNLP/ZEN/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/ZEN/file_utils.py -------------------------------------------------------------------------------- /fastNLP/ZEN/modeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/ZEN/modeling.py -------------------------------------------------------------------------------- /fastNLP/ZEN/ngram_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/ZEN/ngram_utils.py -------------------------------------------------------------------------------- /fastNLP/ZEN/optimization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/ZEN/optimization.py -------------------------------------------------------------------------------- /fastNLP/ZEN/tokenization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/ZEN/tokenization.py -------------------------------------------------------------------------------- /fastNLP/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/__init__.py -------------------------------------------------------------------------------- /fastNLP/core/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/__init__.py -------------------------------------------------------------------------------- /fastNLP/core/_logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/_logger.py -------------------------------------------------------------------------------- /fastNLP/core/_parallel_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/_parallel_utils.py -------------------------------------------------------------------------------- /fastNLP/core/batch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/batch.py -------------------------------------------------------------------------------- /fastNLP/core/callback.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/callback.py -------------------------------------------------------------------------------- /fastNLP/core/const.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/const.py -------------------------------------------------------------------------------- /fastNLP/core/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/dataset.py -------------------------------------------------------------------------------- /fastNLP/core/dist_trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/dist_trainer.py -------------------------------------------------------------------------------- /fastNLP/core/field.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/field.py -------------------------------------------------------------------------------- /fastNLP/core/instance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/instance.py -------------------------------------------------------------------------------- /fastNLP/core/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/losses.py -------------------------------------------------------------------------------- /fastNLP/core/metrics.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/metrics.py -------------------------------------------------------------------------------- /fastNLP/core/optimizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/optimizer.py -------------------------------------------------------------------------------- /fastNLP/core/predictor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/predictor.py -------------------------------------------------------------------------------- /fastNLP/core/sampler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/sampler.py -------------------------------------------------------------------------------- /fastNLP/core/tester.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/tester.py -------------------------------------------------------------------------------- /fastNLP/core/trainer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/trainer.py -------------------------------------------------------------------------------- /fastNLP/core/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/utils.py -------------------------------------------------------------------------------- /fastNLP/core/vocabulary.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/core/vocabulary.py -------------------------------------------------------------------------------- /fastNLP/doc_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/doc_utils.py -------------------------------------------------------------------------------- /fastNLP/embeddings/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/__init__.py -------------------------------------------------------------------------------- /fastNLP/embeddings/bert_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/bert_embedding.py -------------------------------------------------------------------------------- /fastNLP/embeddings/char_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/char_embedding.py -------------------------------------------------------------------------------- /fastNLP/embeddings/contextual_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/contextual_embedding.py -------------------------------------------------------------------------------- /fastNLP/embeddings/elmo_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/elmo_embedding.py -------------------------------------------------------------------------------- /fastNLP/embeddings/embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/embedding.py -------------------------------------------------------------------------------- /fastNLP/embeddings/stack_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/stack_embedding.py -------------------------------------------------------------------------------- /fastNLP/embeddings/static_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/static_embedding.py -------------------------------------------------------------------------------- /fastNLP/embeddings/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/utils.py -------------------------------------------------------------------------------- /fastNLP/embeddings/zen_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/embeddings/zen_embedding.py -------------------------------------------------------------------------------- /fastNLP/io/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/__init__.py -------------------------------------------------------------------------------- /fastNLP/io/data_bundle.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/data_bundle.py -------------------------------------------------------------------------------- /fastNLP/io/embed_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/embed_loader.py -------------------------------------------------------------------------------- /fastNLP/io/file_reader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/file_reader.py -------------------------------------------------------------------------------- /fastNLP/io/file_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/file_utils.py -------------------------------------------------------------------------------- /fastNLP/io/loader/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/__init__.py -------------------------------------------------------------------------------- /fastNLP/io/loader/classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/classification.py -------------------------------------------------------------------------------- /fastNLP/io/loader/conll.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/conll.py -------------------------------------------------------------------------------- /fastNLP/io/loader/coreference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/coreference.py -------------------------------------------------------------------------------- /fastNLP/io/loader/csv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/csv.py -------------------------------------------------------------------------------- /fastNLP/io/loader/cws.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/cws.py -------------------------------------------------------------------------------- /fastNLP/io/loader/json.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/json.py -------------------------------------------------------------------------------- /fastNLP/io/loader/loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/loader.py -------------------------------------------------------------------------------- /fastNLP/io/loader/matching.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/matching.py -------------------------------------------------------------------------------- /fastNLP/io/loader/qa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/qa.py -------------------------------------------------------------------------------- /fastNLP/io/loader/summarization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/loader/summarization.py -------------------------------------------------------------------------------- /fastNLP/io/model_io.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/model_io.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/__init__.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/classification.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/conll.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/conll.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/coreference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/coreference.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/cws.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/cws.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/matching.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/matching.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/pipe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/pipe.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/qa.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/qa.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/summarization.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/summarization.py -------------------------------------------------------------------------------- /fastNLP/io/pipe/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/pipe/utils.py -------------------------------------------------------------------------------- /fastNLP/io/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/io/utils.py -------------------------------------------------------------------------------- /fastNLP/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/__init__.py -------------------------------------------------------------------------------- /fastNLP/models/base_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/base_model.py -------------------------------------------------------------------------------- /fastNLP/models/bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/bert.py -------------------------------------------------------------------------------- /fastNLP/models/biaffine_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/biaffine_parser.py -------------------------------------------------------------------------------- /fastNLP/models/cnn_text_classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/cnn_text_classification.py -------------------------------------------------------------------------------- /fastNLP/models/sequence_labeling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/sequence_labeling.py -------------------------------------------------------------------------------- /fastNLP/models/snli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/snli.py -------------------------------------------------------------------------------- /fastNLP/models/star_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/models/star_transformer.py -------------------------------------------------------------------------------- /fastNLP/modules/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/__init__.py -------------------------------------------------------------------------------- /fastNLP/modules/decoder/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/decoder/__init__.py -------------------------------------------------------------------------------- /fastNLP/modules/decoder/crf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/decoder/crf.py -------------------------------------------------------------------------------- /fastNLP/modules/decoder/mlp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/decoder/mlp.py -------------------------------------------------------------------------------- /fastNLP/modules/decoder/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/decoder/utils.py -------------------------------------------------------------------------------- /fastNLP/modules/dropout.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/dropout.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/__init__.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/_elmo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/_elmo.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/attention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/attention.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/bert.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/bert.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/char_encoder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/char_encoder.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/conv_maxpool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/conv_maxpool.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/lstm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/lstm.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/pooling.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/pooling.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/star_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/star_transformer.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/transformer.py -------------------------------------------------------------------------------- /fastNLP/modules/encoder/variational_rnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/encoder/variational_rnn.py -------------------------------------------------------------------------------- /fastNLP/modules/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/fastNLP/modules/utils.py -------------------------------------------------------------------------------- /get_knowledge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/get_knowledge.py -------------------------------------------------------------------------------- /models/TENER.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/models/TENER.py -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/TransformerEmbedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/modules/TransformerEmbedding.py -------------------------------------------------------------------------------- /modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /modules/callbacks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/modules/callbacks.py -------------------------------------------------------------------------------- /modules/pipe.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/modules/pipe.py -------------------------------------------------------------------------------- /modules/relative_transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/modules/relative_transformer.py -------------------------------------------------------------------------------- /modules/transformer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/modules/transformer.py -------------------------------------------------------------------------------- /modules/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/modules/utils.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | torch==1.1.0 2 | fastNLP>=0.5 3 | spacy==2.2.4 4 | tqdm==4.38.0 -------------------------------------------------------------------------------- /run_cn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/run_cn.py -------------------------------------------------------------------------------- /run_en.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/run_en.py -------------------------------------------------------------------------------- /run_token_level_classification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/run_token_level_classification.py -------------------------------------------------------------------------------- /stanford.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/stanford.sh -------------------------------------------------------------------------------- /train_bert_elmo_en.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/train_bert_elmo_en.py -------------------------------------------------------------------------------- /train_zen_cn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/train_zen_cn.py -------------------------------------------------------------------------------- /utils_token_level_task.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cuhksz-nlp/AESINER/HEAD/utils_token_level_task.py --------------------------------------------------------------------------------