How to use bupt/keywords_extract with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="bupt/keywords_extract", trust_remote_code=True)
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bupt/keywords_extract", trust_remote_code=True, dtype="auto")
利用chatgpt3.5-turbo制作的法律关键词数据集,在chatglm2-6b基模型上通过LoRA微调,得到一个可以理解法律咨询问题,并且提取法律相关关键词的模型。