File size: 335 Bytes
101e5d8 2bb0b26 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# coding=utf-8
# author: xusong <xusong28@jd.com>
# time: 2021/9/17 17:43
#
# from transformers import pipeline
# nlp_fill = pipeline('fill-mask', topk=10)
#
#
# def from_url():
# MODEL_PATH = "http://storage.jd.com/language-models/kplug/huggingface/pytorch_model.bin"
# model = KplugForMaskedLM.from_pretrained(MODEL_PATH)
|