edsl
1.0.0
预期的鹦鹉特定语言(EDSL)软件包使您可以通过AI进行计算社会科学和市场研究。使用它来设计调查和实验,使用大语言模型模拟响应,并执行数据标签和其他研究任务。结果以指定的数据集为格式,并配有用于分析,可视化和共享的内置方法。
一个快速示例:
# Import a question type
from edsl import QuestionMultipleChoice
# Construct a question using the question type template
q = QuestionMultipleChoice (
question_name = "example_question" ,
question_text = "How do you feel today?" ,
question_options = [ "Bad" , "OK" , "Good" ]
)
# Run it with the default language model
results = q . run ()
# Inspect the results in a dataset
results . select ( "example_question" ). print ()
输出:
┏━━━━━━━━━━━━━━━━━━━┓
┃ answer ┃
┃ . example_question ┃
┡━━━━━━━━━━━━━━━━━━━┩
│ Good │
└───────────────────┘
.env
文件中。请参阅有关存储API键的说明。 有兴趣贡献吗?要我们添加一个新功能吗?找到了我们壁球的错误?请给我们发送电子邮件至[email protected],或在我们的Discord频道上给我们发消息。