Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Self-paced reading task

edited November 2014 in OpenSesame

Hi all!

I would like to program a self-paced reading task experiment on OpenSesame.
I've already looked at the video tutorial and looked for tips or references in the net, without success.

Does anybody know how to to implement the pacing in the experiment loop?

Thank you.

Comments

  • edited 9:01AM

    Hi,

    If a "self-paced reading task" boils down to presenting screens with text many times after each other in the pace of the participant pressing a button or a key, you can simple you use text_form_display items. Write your text into these forms and tell your participants that they should press the OK button to proceed to the next page.
    You can have a look on the forms in general to get an idea of how it works.

    Give it a try, if you need help, you post your specific question here again.

    Good luck,

    Eduard

    Buy Me A Coffee

  • edited 9:01AM

    Hi,

    thank you Eduard for your response.
    I'll try to explain better myself.

    I need to test reaction reading time within sentences. I need the program to present different sequences of a sentence in response to the pressing of a button by the subject.

    For example, the sentence "John eat meat" is going to be presented by mean of three sequences. Each sequence corresponds to the prevoius one plus an element:
    1. John
    2. John eat
    3. John eat meat.
    Simplyfying, each time the subject presses a button she gets the following word.
    This way, reading times for each (in this case) word are tested, since the subject press a button to get the next sequence.

    My temporary solution consists in using .jpg files containing already cutted sequences, although it requires a lot of time because each sequence of each sentence consists of one .jpg file.

    From a corpus of sentences, given the points of cutting, how can I tell to OpenSesame how manage the administration of stimuli?

    Thank you very much!

    Silvia

  • edited 9:01AM

    Hi Silvia,

    Now I understand better. Thanks for the explanation. Well, the solution to this problem depends a lot on how you have saved all the sentences. If you all have them as a ".jpg" file, I can't think of a smart way that requires not too much work-arounds. I think the easiest option would be, if you had the sentences in a ".txt" file, with one sentence per line. First thing to do then is reading this file and saving the strings to a nice list. You can adapt following code in an inline_script.

    your_file = exp.get_file('file.txt') # the textfile should be in the filepool, 
    #or at least in the same folder as the experiment
    
    with open(your_file, 'r') as f:
        your_list =  f.readlines()
    
    # your_list is a list that contains every sentence as an entry
    

    You can put this script in the beginning of your experiment, because you need the file read only once. After that you start your loop, in which every iteration picks one sentence.

    Now you can add another inline_script to your sequence, in which split the current sentence into its pieces (so far it has been a long string, e.g. 'John eats meat'). This will again give you a list with every word as an entry:

    word_list = your_list[cur_iteration].split( ) # .split( ) will separate your 
    # string whenever it encounters a space 
    # (see python documentation for more info)
    
    exp.set('presented_sequence', ' ') # This set the sentence you want to 
    # display to an empty string
    

    Next. you add another loop with a sequence containing an inline_script and a sketchpad. In this sequence you will loop over each word, add it to the presented_sequence and show it then via the sketchpad.

    exp.presented_sequence = exp.presented_sequence + word_list[exp.word_no] 
    # word_no is the running index of the loop
    

    When doing this you should keep following things in mind:

    • for all inline_scripts(especially the last one), put the code in the prepare phase
    • in the sketchpad, you have to add a placeholder string: [variable] will show the content of that variable and not literally "variable".
    • in the last loop don't forget to switch off randomization, if you don't want to have scrambled sentences.
    • the code how it is now, probably won't work if you just copy it and fill some gaps. Use it as a guideline to the structure you need to get.
    • this is one way of doing it. There are many others. In my opinion, this is one is rather straightforward.

    Alright, I hope this helps, if you need more help later, just ask again.

    Good luck,

    Eduard

    Buy Me A Coffee

  • edited 9:01AM

    Hi Eduard,

    thanks a lot!!!
    I am going to apply your wonderful suggestions immediately.

    Silvia

  • Hi Eduard, Hi Silviark,

    I am also currenty working on a very similar experiment. I will try your solutions too, so thank you for these answers.

    But I wanted to ask that, I have my sentences in an Excel file, and in my case every sentence should be presented next to a picture: so participants will think a person (picture) says the sentence. I am thinking of using your suggested method, but I am not sure how can I trick Opensesame to pull the corresponding picture to the corresponding sentence, and then make it present in the same way one word at a time. I am new to OpenSesame, and I came kind of so far but I am stuck here. I would be really glad for your help.

    PS: I have variable codes for everything: say if my Speaker 1 is A, she will say the sentence coded 00, or Speaker 2 will need to have the sentence 01. They are all in the Excel files.


    Best,

    Hülya

  • Hi Hulya,

    One way of doing it is giving the files the same names (except the ending of course). Like that, you can code the name in the loop table and load the corresponding variables. Presenting pictures next to the text is not particularly hard. The procedure that I described above is primarily relevant for generating the sentences step-by step. The actual presentation on a sketchpad is straightforward. You just need to draw an image and a text item (at a different location).

    Does that make sense?

    Eduard

    Buy Me A Coffee

  • Hi Eduard,

    Thank you very much for your answer!

    Yes, I am able to make them in the sketchpad as you said, so that is okay. But I think I couldn't explain the main problem, so I will try:

    I have 4 pictures that will be assigned to 160 sentences. And those are all randomized in an Excel file beforehand, so the lists are ready. So I was wondering if I need to draw every one of them one by one in the sketchpads, that is going to take so long and kind of feels like bad practice... Therefore I was wondering if I can make my sequence grab the picture names and their assigned sentences automatically into one sketchpad, and follow the sequence in the Excel file. So what I want to do is: Picture 1 with sentence 150, picture 2 with sentence 35, picture 4 with sentence 60, picture 3 with sentence 63, picture 2 with sentence 23.... and loop like this until the end of the list. (and they are going to be self-paced reading so picture needs to stay while words are shown one by one with the button press). Can I say, to the table in OpenSesame, the variable names; and copy-paste my Excel list there, and just draw [pic_variable_name] and [sentence_codes] in one sketchpad to do this?

    I am sorry if I am being confusing...because I am confused too...

    Best,

    Hülya

  • Hello!

    I solved the problem, apparently I could do it :) Thank you!

    Best,

    Hülya

  • Very nice!

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games