Instructions to use xusenlin/cmeee-global-pointer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xusenlin/cmeee-global-pointer with Transformers:
# Load model directly from transformers import AutoTokenizer, GlobalPointerForNer tokenizer = AutoTokenizer.from_pretrained("xusenlin/cmeee-global-pointer") model = GlobalPointerForNer.from_pretrained("xusenlin/cmeee-global-pointer", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| language: | |
| - zh | |
| tags: | |
| - named entity recognition | |
| license: apache-2.0 | |
| datasets: | |
| - CMeEE | |
| metrics: | |
| - micro f1 | |
| # Global Pointer实体抽取模型 | |
| ## 模型介绍 | |
| + 数据集:CMeEE中文医学文本命名实时识别 | |
| + 模型方法:[Efficient GlobalPointer:少点参数,多点效果](https://spaces.ac.cn/archives/8877) | |
| ## 使用方法 | |
| ```commandline | |
| pip install litie | |
| ``` | |
| ```python | |
| from pprint import pprint | |
| from litie.pipelines import NerPipeline | |
| pipline = NerPipeline("global-pointer", model_name_or_path="xusenlin/cmeee-global-pointer") | |
| text = "可伴发血肿或脑梗死而出现局灶性神经体征,如肢体瘫痪及颅神经异常等。" | |
| pprint(pipline(text)) | |
| ``` | |
| 更多模型的训练和推理详见 [lit-ie](https://github.com/xusenlinzy/lit-ie) | |