模型:
这是一个可用于命名实体识别的 SpanMarker 模型。具体而言,该SpanMarker模型使用 prajjwal1/bert-tiny 作为底层编码器。
要使用此模型进行推理,请首先安装span_marker库:
pip install span_marker
您可以按以下方式运行此模型的推理:
from span_marker import SpanMarkerModel
# Download from the 🤗 Hub
model = SpanMarkerModel.from_pretrained("tomaarsen/span-marker-bert-tiny-fewnerd-coarse-super")
# Run inference
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
有关此库的文档和其他信息,请参见 SpanMarker 存储库。