Dehype LLM and Get Things Done

版主: hci

回复
heteroclinic(Heteroclinic)楼主
著名点评
著名点评
heteroclinic 的博客
帖子互动: 42
帖子: 3925
注册时间: 2022年 10月 31日 00:35

#1 Dehype LLM and Get Things Done

帖子 heteroclinic(Heteroclinic)楼主 »

from transformers import pipeline

qa = pipeline("question-answering", model="distilbert-base-uncased-distilled-squad")

context = "Marie Curie was a physicist and chemist who conducted pioneering research on radioactivity. She was the first woman to win a Nobel Prize and remains the only person to win Nobel Prizes in two different scientific fields."

question = "What did Marie Curie win Nobel Prizes for?"

result = qa(question=question, context=context)
print(result)


{'score': 0.48542842268943787, 'start': 188, 'end': 219, 'answer': 'two different scientific fields'}


Full text:
https://chatgpt.com/share/687edd09-9500 ... e0bd9b3672


COMMENT:
Technically, we got this example program run. But what do you think "What did Marie Curie win Nobel Prizes for"?

标签/Tags:
回复

回到 “葵花宝典(Programming)”