Open Plagiarism Detection Starter File. Click "Run".
Reviewing simple-similarity
1 Type doc-a
into the Interactions Area, then hit "Enter". What appears?
2 Type doc-b
into the Interactions Area, then hit "Enter". What appears?
3 If we compare these two documents using our simple-equality
function, what do you predict the outcome will be… and why?
4 Type simple-equality(doc-a, doc-b)
. What is the output?
Testing string-to-bag
and bag-equality
5 This starter file uses the function string-to-bag
, which converts a string into a bag of words. Type string-to-bag(doc-a)
in the Interactions Area and hit "Enter". What is the output?
6 Type string-to-bag(doc-b)
in the Interactions Area and hit "Enter". What do you observe?
7 The function bag-equality
checks if two different bags of words are identical. What do you predict the output will be when you use doc-a
and doc-b
as the arguments for bag-equality
? Were you correct?
Assessing the model on our elephants texts
8 Use string-to-bag
to build one bag of words for the wiki-article
, and another for the student-essay
. Do the bags of words appear to be identical to you, or not?
9 Our simple-equality
function returned false
when we compared wiki-article
with student-essay
, because the two documents are not identical. What do you predict that bag-equality
will produce, when we compare wiki-article
with student-essay
? Why?
10 Use bag-equality
to compare wiki-article
and student-essay
. Was your prediction correct?
Reflect
11 How is the bag-equality
plagiarism detector different from our primitive simple-equality
plagiarism detector? How is it similar?
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927).
Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.