Hinweis: Sie sind auf den Seiten der Moodle 1.9 Dokumentation. Die Dokumentation der aktuellsten Moodle-Version finden Sie hier: Analyse von Kurzantwort-Fragen.

Analyse von Kurzantwort-Fragen: Unterschied zwischen den Versionen

Aus MoodleDocs
Wechseln zu:Navigation, Suche
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
{{Zum Übersetzen}}
{{Zum Übersetzen}}
Siehe [[:en:Short answer analysis]]
Siehe [[:en:Short answer analysis]]
Seit Moodle 1.6 existieren für [[Kurzantwort-Fragen]] in [[Lektion|Lektionen]] zwei unterschiedliche Analyse-Instrumente für die Auswertung der Teilnehmereingaben: eine '''einfache Analyse''' sowie eine '''erweiterte Analyse''' mit Auswertung '''regulärer Ausdrücke'''. Voreingestellt ist die '''einfache Analyse''', und diese wird auch für [[Kurzantwort-Fragen]] in [[Test|Tests]] verwendet. Die erweiterte Analyse mit Auswertung '''regulärer Ausdrücke''' kann verwendet werden, wenn es als Plugin von der Moodle-Administration installiert wurde, und beim [[Frageseite einfügen|Einfügen einer Frageseite vom Typ Kurzantwort]] die Checkbox ''Erweiterte Antwortanalyse'' angeklickt wird.
==Einfache Analyse==
Bei dieser Standardanalyse wird die Groß-/Kleinschreibung ignoriert, und der Trainer kann in seinen möglichen Antwortvorgaben das Asterisk-Zeichen * als Jokerzeichen verwenden. Der Auswertungsprozess geht alle Antworten in der vom Trainer angegebenen Reihenfolge durch, und sobald eine Übereinstimmung mit der Eingabe des Teilnehmers gefunden wurde, bricht der Prozess ab.
Das Asterisk-Zeichen steht für eine beliebige Folge von Zeichen (inklusive der leeren Zeichenkette). Z.B. die Antwortvorgabe "tief*" liefert eine Übereinstimmung mit folgenden Teilnehmereingaben: "tief", "tiefer", "tiefster", aber auch mit "tief wie der See", "tiefer als tief" oder "tiefseetauchen".
Wenn der Trainer die Antworten "tiefster", "tief*", "*" (in dieser Reihenfolge) angegeben hat, dann findet der Prozess bei der Teilnehmereingabe "tiefer" eine Übereinstimmung mit der zweiten Antwort und stoppt an dieser Stelle. Die dritte Antwort "*" wird nicht mehr geprüft (obwohl sie auch eine Übereinstimmung liefert).
Die Antwortvorgabe "*" stimmt mit jeder beliebigen Teilnehmereingabe überein. Deshalb sollte diese Antwort stets als letzte vorgegeben werden, um alle falschen Teilnehmereingaben "abzufangen". Sie sollten diese Antwort insbesondere dann verwenden, wenn Sie ein eigenes Feedback für falsche Antworten anstelle des Standardfeedbacks ''Falsch'' geben möchten.
Wenn Jokerzeichen nötig sind, wird ausdrücklich die [[Analyse von Kurzantwort-Fragen#Erweiterte Antwortanalyse|erweiterte Antwortanalyse mit Auswertung regulärer Ausdrücke]] empfohlen!
==Erweiterte Antwortanalyse==
Mit diesem System steht Ihnen ein mächtigeres, aber auch komplizierteres System zur Auswertung der Teilnehmereingaben zur Verfügung. Eine Einführung zu regulären Ausdrücken finden Sie auf den Websites von [http://www.zend.com/zend/tut/tutorial-delin2.php Zend] bzw. [http://rezeau.org/eao/developpement/expandRegexpToString.htm Joseph Rezeau].
===Richtige Antwort===
It is not possible to give complete examples of the vast possibilities offered by this system, and the following are just some possibilities.
'''Example 1.'''
:Suppose your question is "What are the colors of the French flag?". 
:In the '''''Answer 1''''' field you type this regular expression: "it’s blue, white(,| and) red/i". This will match any of those four student answers:
*it’s blue, white, red
*it’s blue, white and red
*It’s blue, white, red
*It’s blue, white and red
'''Note.-''' By default a regular expression match is case sensitive; to make the match case insensitive you must add the /i parameter right at the end of your expression.
'''Example 2.'''
:'''''Question''''': "What is blue, or red, or yellow?".
:'''''Answer''''': "(|it's )a colou?r". This will match:
*a colour
*a color
*it's a colour
*it's a color
'''Note.-''' The beginning of this regular expression "(|it's )" will match either nothing or "it's " (i.e. "it's" followed by a space). The ? (question-mark) means: preceding character zero or one time; it is used here to match British English as well as US spelling.
'''Example 3.'''
:'''''Question''''': "Name an animal whose name is made of 3 letters and the middle letter is the vowel a".
:'''''Answer''''': "[bcr]at". This will match:
*bat
*cat
*rat
==='''''Detecting missing required words or character strings'''''===
Regular expressions alone cannot detect absent character strings, so you have to add a little code in your Answer field to take care of this. Any ''expected answer'' which begins with a double hyphen will analyse the ''student’s answer'' to find out whether the following string is present or absent. If present, the analysis continues to the next question; if absent, the analysis stops and the relevant Response message is displayed.
'''Example 4.'''
:'''''Question:''''' "What are the colors of the French flag?"
:'''''Answer 2:''''' --.*blue.*/i
:''student answer:'' "it's red and white"
:'''''Response 2:''''' The color of the sky is missing!
:'''''Jump 2:''''' this page
Here, the '''.''' (dot character) stands for “any character” and the '''*''' (asterisk) means “preceding special character repeated any number of times”. The '''''Answer 2''''' regular expression above means: check whether the character string “blue”, preceded by anything and followed by anything is ''absent'' from the student's answer. Please note that the use of the asterisk is different in the Simple analysis system and in the Regular Expressions system.
'''Example 5.'''
:'''''Question''''': "Name an animal whose name is made of 3 letters and the middle letter is the vowel '''''a'''''".
:'''''Answer''''': "--[b|c|r]". Response: "Your answer should start with one of these letters: '''''b''''', '''''c''''' or '''''r'''''"
==='''''Detecting unwanted (incorrect) words or character strings'''''===
You may want to detect, in the student's answer, the presence of one or several words which should be not be there (because they are wrong) and to single them out with a specific response. To do this, just start the ''expected answer'' in the '''''Answer''''' field with a double plus sign (++).
'''Example 6.'''
:'''''Answer:''''' ++(yellow|black|orange|green|black|pink)/i
:''student answer:'' "it's blue, orange and white"
:'''''Response:''''' One or more colors are wrong!
:'''''Jump:''''' this page
'''Note.-''' If any of these (wrong) color names is detected in the student’s answer, then the negative feedback message ('''''Response''''') will be displayed ''and'' the wrong strings will be colored red (or the color of the ''.incorrect'' class will be used if it exists in a CSS stylesheet of your current theme).
'''Example 7.'''
:'''''Question:''''' "Name an animal whose name is made of 3 letters and the middle letter is the vowel a".
:'''''Answer:''''' "++hat".
:'''''Response:''''' "You might wear one made of an animal's skin, but a hat can't be considered as an animal."
===Escaping special characters===
If you need to use characters which are part of the regular expressions set of special characters, you need to "escape" them (i.e. precede them with a backslash). E.g. if you want to accept the answer "My computer cost 1000$", you must write the regular expression as "My computer cost 1000\$".
The special characters which must be escaped are .^$*()[]+?|
===Order of the ''expected answers''===
Because the program tries to match the student's answer with the teacher's ''expected answers'' '''in the order of the '''''Answer''''' fields''', the ''order'' of those ''expected answers'' is of the greatest importance. The best analysis system will be achieved by a careful combination of regular expressions and order of ''expected answers''. Of course, any question programed with the Regular expressions system will have to be thoroughly tested by the teacher before being released in a Lesson.
==Tipps und Tricks==
The teacher should make some sort of provision for the student who does not know the answer to a question. This is true for all questions and especially the short answer and numeric questions.  The most common way is to prevent these students from getting stuck in a loop by making sure the "Maximum number of attempts" setting in the Lesson is less than the frustration point of the students.
Another way is to use a wildcard that will accept any answer as the last line of the analysis. The teacher can give a hint in the response for this answer. 
Be aware that as teacher, the maximum number of attempts will not apply when a teacher previews the lesson. So it is possible for non-editing teacher or co-teachers to get stuck in an endless loop.  And for a student to get bumped to another page after the maximum number of attempts.
==Siehe auch==
*[[Kurzantwort-Fragen]]
*[[Lektion]]


[[Category:Trainer]]
[[Category:Trainer]]

Version vom 23. Februar 2009, 20:12 Uhr

Baustelle.png Diese Seite ist noch nicht vollständig übersetzt.

Siehe en:Short answer analysis

Seit Moodle 1.6 existieren für Kurzantwort-Fragen in Lektionen zwei unterschiedliche Analyse-Instrumente für die Auswertung der Teilnehmereingaben: eine einfache Analyse sowie eine erweiterte Analyse mit Auswertung regulärer Ausdrücke. Voreingestellt ist die einfache Analyse, und diese wird auch für Kurzantwort-Fragen in Tests verwendet. Die erweiterte Analyse mit Auswertung regulärer Ausdrücke kann verwendet werden, wenn es als Plugin von der Moodle-Administration installiert wurde, und beim Einfügen einer Frageseite vom Typ Kurzantwort die Checkbox Erweiterte Antwortanalyse angeklickt wird.

Einfache Analyse

Bei dieser Standardanalyse wird die Groß-/Kleinschreibung ignoriert, und der Trainer kann in seinen möglichen Antwortvorgaben das Asterisk-Zeichen * als Jokerzeichen verwenden. Der Auswertungsprozess geht alle Antworten in der vom Trainer angegebenen Reihenfolge durch, und sobald eine Übereinstimmung mit der Eingabe des Teilnehmers gefunden wurde, bricht der Prozess ab.

Das Asterisk-Zeichen steht für eine beliebige Folge von Zeichen (inklusive der leeren Zeichenkette). Z.B. die Antwortvorgabe "tief*" liefert eine Übereinstimmung mit folgenden Teilnehmereingaben: "tief", "tiefer", "tiefster", aber auch mit "tief wie der See", "tiefer als tief" oder "tiefseetauchen". Wenn der Trainer die Antworten "tiefster", "tief*", "*" (in dieser Reihenfolge) angegeben hat, dann findet der Prozess bei der Teilnehmereingabe "tiefer" eine Übereinstimmung mit der zweiten Antwort und stoppt an dieser Stelle. Die dritte Antwort "*" wird nicht mehr geprüft (obwohl sie auch eine Übereinstimmung liefert).

Die Antwortvorgabe "*" stimmt mit jeder beliebigen Teilnehmereingabe überein. Deshalb sollte diese Antwort stets als letzte vorgegeben werden, um alle falschen Teilnehmereingaben "abzufangen". Sie sollten diese Antwort insbesondere dann verwenden, wenn Sie ein eigenes Feedback für falsche Antworten anstelle des Standardfeedbacks Falsch geben möchten.

Wenn Jokerzeichen nötig sind, wird ausdrücklich die erweiterte Antwortanalyse mit Auswertung regulärer Ausdrücke empfohlen!

Erweiterte Antwortanalyse

Mit diesem System steht Ihnen ein mächtigeres, aber auch komplizierteres System zur Auswertung der Teilnehmereingaben zur Verfügung. Eine Einführung zu regulären Ausdrücken finden Sie auf den Websites von Zend bzw. Joseph Rezeau.

Richtige Antwort

It is not possible to give complete examples of the vast possibilities offered by this system, and the following are just some possibilities.

Example 1.

Suppose your question is "What are the colors of the French flag?".
In the Answer 1 field you type this regular expression: "it’s blue, white(,| and) red/i". This will match any of those four student answers:
  • it’s blue, white, red
  • it’s blue, white and red
  • It’s blue, white, red
  • It’s blue, white and red

Note.- By default a regular expression match is case sensitive; to make the match case insensitive you must add the /i parameter right at the end of your expression.

Example 2.

Question: "What is blue, or red, or yellow?".
Answer: "(|it's )a colou?r". This will match:
  • a colour
  • a color
  • it's a colour
  • it's a color

Note.- The beginning of this regular expression "(|it's )" will match either nothing or "it's " (i.e. "it's" followed by a space). The ? (question-mark) means: preceding character zero or one time; it is used here to match British English as well as US spelling.

Example 3.

Question: "Name an animal whose name is made of 3 letters and the middle letter is the vowel a".
Answer: "[bcr]at". This will match:
  • bat
  • cat
  • rat

Detecting missing required words or character strings

Regular expressions alone cannot detect absent character strings, so you have to add a little code in your Answer field to take care of this. Any expected answer which begins with a double hyphen will analyse the student’s answer to find out whether the following string is present or absent. If present, the analysis continues to the next question; if absent, the analysis stops and the relevant Response message is displayed.

Example 4.

Question: "What are the colors of the French flag?"
Answer 2: --.*blue.*/i
student answer: "it's red and white"
Response 2: The color of the sky is missing!
Jump 2: this page

Here, the . (dot character) stands for “any character” and the * (asterisk) means “preceding special character repeated any number of times”. The Answer 2 regular expression above means: check whether the character string “blue”, preceded by anything and followed by anything is absent from the student's answer. Please note that the use of the asterisk is different in the Simple analysis system and in the Regular Expressions system.

Example 5.

Question: "Name an animal whose name is made of 3 letters and the middle letter is the vowel a".
Answer: "--[b|c|r]". Response: "Your answer should start with one of these letters: b, c or r"

Detecting unwanted (incorrect) words or character strings

You may want to detect, in the student's answer, the presence of one or several words which should be not be there (because they are wrong) and to single them out with a specific response. To do this, just start the expected answer in the Answer field with a double plus sign (++).

Example 6.

Answer: ++(yellow|black|orange|green|black|pink)/i
student answer: "it's blue, orange and white"
Response: One or more colors are wrong!
Jump: this page

Note.- If any of these (wrong) color names is detected in the student’s answer, then the negative feedback message (Response) will be displayed and the wrong strings will be colored red (or the color of the .incorrect class will be used if it exists in a CSS stylesheet of your current theme).

Example 7.

Question: "Name an animal whose name is made of 3 letters and the middle letter is the vowel a".
Answer: "++hat".
Response: "You might wear one made of an animal's skin, but a hat can't be considered as an animal."

Escaping special characters

If you need to use characters which are part of the regular expressions set of special characters, you need to "escape" them (i.e. precede them with a backslash). E.g. if you want to accept the answer "My computer cost 1000$", you must write the regular expression as "My computer cost 1000\$".

The special characters which must be escaped are .^$*()[]+?|

Order of the expected answers

Because the program tries to match the student's answer with the teacher's expected answers in the order of the Answer fields, the order of those expected answers is of the greatest importance. The best analysis system will be achieved by a careful combination of regular expressions and order of expected answers. Of course, any question programed with the Regular expressions system will have to be thoroughly tested by the teacher before being released in a Lesson.

Tipps und Tricks

The teacher should make some sort of provision for the student who does not know the answer to a question. This is true for all questions and especially the short answer and numeric questions. The most common way is to prevent these students from getting stuck in a loop by making sure the "Maximum number of attempts" setting in the Lesson is less than the frustration point of the students.

Another way is to use a wildcard that will accept any answer as the last line of the analysis. The teacher can give a hint in the response for this answer.

Be aware that as teacher, the maximum number of attempts will not apply when a teacher previews the lesson. So it is possible for non-editing teacher or co-teachers to get stuck in an endless loop. And for a student to get bumped to another page after the maximum number of attempts.

Siehe auch