简体   繁体   English

您如何使用亚马逊的Mechanical Turk API?

[英]How do you use Amazon's Mechanical Turk API?

I'm using Amazon's Mechanical Turk as a requester and need to automate some things (specifically bonus payments). 我正在使用Amazon的Mechanical Turk作为请求者,并且需要自动执行某些操作(特别是奖金支付)。

I feel really stupid for asking this, but... how does one actually use the MTurk API? 我问这个问题真的很愚蠢,但是...实际上如何使用MTurk API? I was reading the API reference , and it specifies some details about a lot of requests, including this one for bonus payment, but there's nothing about how to actually perform such a request. 我读的API参考 ,并指定了很多要求,包括一些细节这一次的奖金,但没有什么有关如何实际执行这样的要求。 I assume it's an HTML request, but there's no mention of which endpoints to use or how to obtain keys for authorization. 假设这是一个HTML请求,但是没有提到要使用哪些端点或如何获取授权密钥。

You could call it via the AWS CLI or via your preferred programming language, such as Python . 您可以通过AWS CLI或首选的编程语言( 例如Python)来调用它。

For an introduction, you could do a web search and read articles like Tutorial: A beginner's guide to crowdsourcing ML training data with Python and MTurk . 作为介绍,您可以进行网络搜索并阅读诸如Tutorial:使用Python和MTurk众包ML培训数据的初学者指南之类的文章

You'll need to have an AWS account and make a call from code or the CLI. 您需要拥有一个AWS账户并通过代码或CLI进行调用。 For working code examples using the API in a variety of languages, check out mturk-code-samples on GitHub . 有关使用多种语言使用API​​的有效代码示例,请在GitHub上查看mturk-code-samples The MTurk blog also has end-to-end examples. MTurk博客也有端到端的示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM