// Space
for (MultipleChoiceQuestion question : questions) {
String promptWord = question.getPrompt();
// get the vector for the prompt
Vector promptVector = sspace.getVector(promptWord);
// check that the s-space had the prompt word
if (promptVector == null) {
unanswerable++;
continue;
}
int answerIndex = 0;
double closestOption = Double.MIN_VALUE;
// find the options whose vector has the highest similarity (or
// equivalent comparison measure) to the prompt word. The
// running assumption hear is that for the value returned by the
// comparison method, a high value implies more similar vectors.
int optionIndex = 0;
for (String optionWord : question.getOptions()) {
// Get the vector for the option
Vector optionVector = sspace.getVector(optionWord);
// check that the s-space had the option word
if (optionVector == null) {
unanswerable++;
continue question_loop;