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頻道上給我們發消息。