abecode / emotion-twenty-questions

Automatically exported from code.google.com/p/emotion-twenty-questions
Other
1 stars 1 forks source link

same question with conflicting answers #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem? (In matlab directory)
1.
>> x = dlmread('../lists/features.txt');  %emotions vs questions
>> e = textread('../lists/emotions.txt','%s');  %list of emotions
>> q = textread('../lists/questions.txt','%s'); %list of questions
2.
>> q(256)
ans = 
    'e.valence=positive'
>> q(257)
ans = 
    'e.valence==positive'
q(257)
3.
>> all(x(:,256)==x(:,257))
ans =
     0

What is the expected output? What do you see instead?
These seem to be the same exact question but have different answers in the 
emotion v. question matrix (x).

Please use labels and text to provide additional information.

Original issue reported on code.google.com by JimmyGib...@gmail.com on 26 Jun 2011 at 9:33

GoogleCodeExporter commented 8 years ago
oops, that's a type-o... I fixed it in r54 :

>> x = importdata('../lists/features.txt');  %emotions vs questions
e = importdata('../lists/emotions.txt');  %list of emotions
q = importdata('../lists/questions.txt'); %list of questions
A = [zeros(size(x,1)) x; x' zeros(size(x,2))];  %adjaceny matrix

>> q(256)

ans = 

    'e.valence==positive'

>> q(256:257)

ans = 

    'e.valence==positive'
    'e==violent'

Original comment by abe.kaze...@gmail.com on 27 Jun 2011 at 6:04