CML ? What is it ?
If you use CPS, you want humans to perform comparisons in order to sort media. But in order them to do so, you must first ask them! Therefore, you will have to design a small web page displaying your media and asking workers to compare them. This where cml enters.
CrowdFlower Markup Language is a modified version of html allowing you to easily ask questions. It also allows CrowdFlower to retrieve their results in order them to be sent to you, so you definitely have to use cml.
Examples
While CrowdFlower's documentation on cml is rather clear, a few examples could never hurt.
- Here is a cml template asking for the comparison of two images. Be carefull if you plan to use it: the size of the images is modified inside < img> marks, so you would better make sure they all have the same size.
-
And here is another cml template asking for the comparison of two videos hosted on youtube. It is pretty much the same as the other one, except that < img> marks are replaced by youtube's embedded flash player.
Note: If want to compare short movies but do not want to host them somewhere else, you can use your own flashplayer. I recommand
flv-player: it is very easy to use and works well. All you have to do is put the given
.swf file on your server; then you can you diplay your videos using the following code:
< object type="application/x-shockwave-flash" data="$THE_COMPLETE_URL_OF_YOUR_FLV-PLAYER" width="320" height="240">
< param name="movie" value="$THE_COMPLETE_URL_OF_YOUR_FLV-PLAYER" />
< param name="FlashVars" value="flv=$THE_COMPLETE_URL_OF_YOUR_OWN_VIDEO" />
< /object>
Where:
- $THE_COMPLETE_URL_OF_YOUR_FLV-PLAYER is... the complete URL of your own flv-player, i.e the address of your server and the path to the .swf file.
- $THE_COMPLETE_URL_OF_YOUR_OWN_VIDEO is the same, but for your video. You should not use relative links.
Don't forget to remove the space at the beginning of the HTML marks in this example!
An example of a cml file using this flashplayer can be found here