├── .github ├── ISSUE_TEMPLATE │ ├── bug-report.md │ ├── feature-request.md │ └── usage-question.md ├── stale.yml └── workflows │ ├── ubuntu.yml │ └── windows.yml ├── .gitignore ├── CITATION.cff ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── docs ├── bert.png ├── hf.png ├── sbert_inference.png └── wechat.jpeg ├── examples ├── base_en_demo.py ├── base_zh_demo.py ├── data │ ├── README.md │ ├── cner │ │ ├── dev.char.bio.tsv │ │ ├── test.char.bio.tsv │ │ └── train.char.bio.tsv │ ├── conll03 │ │ ├── dev.word.bioes.tsv │ │ ├── test.word.bioes.tsv │ │ └── train.word.bioes.tsv │ └── people │ │ ├── dev.char.bio.tsv │ │ ├── test.char.bio.tsv │ │ └── train.char.bio.tsv ├── generate_bio_demo.py ├── gradio_demo.py ├── predict_use_origin_transformers_en_demo.py ├── predict_use_origin_transformers_zh_demo.py ├── server_demo.py ├── training_bertspan_en_demo.py ├── training_bertspan_toy_demo.py ├── training_bertspan_zh_demo.py ├── training_ner_model_en_demo.py ├── training_ner_model_toy_demo.py └── training_ner_model_zh_demo.py ├── nerpy ├── __init__.py ├── bertspan.py ├── dataset.py ├── get_file.py ├── losses.py ├── model_args.py ├── ner_model.py ├── ner_utils.py └── version.py ├── requirements.txt ├── setup.py └── tests ├── test_bertspan_train.py ├── test_get_entity.py ├── test_hf_dataset.py ├── test_issue.py └── test_qps.py /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/.github/ISSUE_TEMPLATE/bug-report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/.github/ISSUE_TEMPLATE/feature-request.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/usage-question.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/.github/ISSUE_TEMPLATE/usage-question.md -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/workflows/ubuntu.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/.github/workflows/ubuntu.yml -------------------------------------------------------------------------------- /.github/workflows/windows.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/.github/workflows/windows.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/.gitignore -------------------------------------------------------------------------------- /CITATION.cff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/CITATION.cff -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/README.md -------------------------------------------------------------------------------- /docs/bert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/docs/bert.png -------------------------------------------------------------------------------- /docs/hf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/docs/hf.png -------------------------------------------------------------------------------- /docs/sbert_inference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/docs/sbert_inference.png -------------------------------------------------------------------------------- /docs/wechat.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/docs/wechat.jpeg -------------------------------------------------------------------------------- /examples/base_en_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/base_en_demo.py -------------------------------------------------------------------------------- /examples/base_zh_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/base_zh_demo.py -------------------------------------------------------------------------------- /examples/data/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/README.md -------------------------------------------------------------------------------- /examples/data/cner/dev.char.bio.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/cner/dev.char.bio.tsv -------------------------------------------------------------------------------- /examples/data/cner/test.char.bio.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/cner/test.char.bio.tsv -------------------------------------------------------------------------------- /examples/data/cner/train.char.bio.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/cner/train.char.bio.tsv -------------------------------------------------------------------------------- /examples/data/conll03/dev.word.bioes.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/conll03/dev.word.bioes.tsv -------------------------------------------------------------------------------- /examples/data/conll03/test.word.bioes.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/conll03/test.word.bioes.tsv -------------------------------------------------------------------------------- /examples/data/conll03/train.word.bioes.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/conll03/train.word.bioes.tsv -------------------------------------------------------------------------------- /examples/data/people/dev.char.bio.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/people/dev.char.bio.tsv -------------------------------------------------------------------------------- /examples/data/people/test.char.bio.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/people/test.char.bio.tsv -------------------------------------------------------------------------------- /examples/data/people/train.char.bio.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/data/people/train.char.bio.tsv -------------------------------------------------------------------------------- /examples/generate_bio_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/generate_bio_demo.py -------------------------------------------------------------------------------- /examples/gradio_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/gradio_demo.py -------------------------------------------------------------------------------- /examples/predict_use_origin_transformers_en_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/predict_use_origin_transformers_en_demo.py -------------------------------------------------------------------------------- /examples/predict_use_origin_transformers_zh_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/predict_use_origin_transformers_zh_demo.py -------------------------------------------------------------------------------- /examples/server_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/server_demo.py -------------------------------------------------------------------------------- /examples/training_bertspan_en_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/training_bertspan_en_demo.py -------------------------------------------------------------------------------- /examples/training_bertspan_toy_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/training_bertspan_toy_demo.py -------------------------------------------------------------------------------- /examples/training_bertspan_zh_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/training_bertspan_zh_demo.py -------------------------------------------------------------------------------- /examples/training_ner_model_en_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/training_ner_model_en_demo.py -------------------------------------------------------------------------------- /examples/training_ner_model_toy_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/training_ner_model_toy_demo.py -------------------------------------------------------------------------------- /examples/training_ner_model_zh_demo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/examples/training_ner_model_zh_demo.py -------------------------------------------------------------------------------- /nerpy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/__init__.py -------------------------------------------------------------------------------- /nerpy/bertspan.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/bertspan.py -------------------------------------------------------------------------------- /nerpy/dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/dataset.py -------------------------------------------------------------------------------- /nerpy/get_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/get_file.py -------------------------------------------------------------------------------- /nerpy/losses.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/losses.py -------------------------------------------------------------------------------- /nerpy/model_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/model_args.py -------------------------------------------------------------------------------- /nerpy/ner_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/ner_model.py -------------------------------------------------------------------------------- /nerpy/ner_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/ner_utils.py -------------------------------------------------------------------------------- /nerpy/version.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/nerpy/version.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/setup.py -------------------------------------------------------------------------------- /tests/test_bertspan_train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/tests/test_bertspan_train.py -------------------------------------------------------------------------------- /tests/test_get_entity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/tests/test_get_entity.py -------------------------------------------------------------------------------- /tests/test_hf_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/tests/test_hf_dataset.py -------------------------------------------------------------------------------- /tests/test_issue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/tests/test_issue.py -------------------------------------------------------------------------------- /tests/test_qps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shibing624/nerpy/HEAD/tests/test_qps.py --------------------------------------------------------------------------------