Professional Documents
Culture Documents
F23lab04 - Sta (2) - JupyterLab
F23lab04 - Sta (2) - JupyterLab
/*
The following are the hint types and their descriptions:
*/
In [3]: stories[0]
https://csci1060u.science.ontariotechu.ca/csci-env/user/abdullah.mustafa@ontariotechu.net/lab/tree/work/f23lab04_starter.ipynb 1/3
10/2/23, 12:38 PM f23lab04_starter
Out[3]: ""Little Red Riding <::nn/>" is a/an <::jj/> fairy tale for young children.
It is a story about a/an <::jj/> girl and a wolf.
The girl's mother sends her to take <::food/> to her sick grandmother.
The mother tells her she must not <::vb/> on the way.
A wolf sees the girl walking through the <::nns/> and makes a plan to <::vb/> her.
The wolf <::rb/> asks the girl where she is going.
The girl <::vbz/> him, because he seems <::jj/>.
Then the wolf tells her to pick some <::nns/> for her grandmother.
While she is <::vbg/> flowers, the wolf goes to her grandmother's house and eats her.
He puts on the grandmother's <::nn/> and gets into her bed.
When the girl arrives at her grandmother's house, she gets into <::nn/> with the wol
f.
The wolf leaps upon the child and <::vbz/> her."
string hint_descriptions[] = {
"name of an animal", "plural of an animal", "name of a part of the human body", "p
"type of food", "plural of a type of food", "adjective", "type of liquid",
"noun", "plural noun", "adverb", "verb, base form", "verb, past tense", "verb geru
"verb, past participle", "verb, 3rd person singular present (i.e. verb ending in '
};
In [ ]:
https://csci1060u.science.ontariotechu.ca/csci-env/user/abdullah.mustafa@ontariotechu.net/lab/tree/work/f23lab04_starter.ipynb 2/3
10/2/23, 12:38 PM f23lab04_starter
return hint_count;
}
In [7]: fillHints(stories[0])
Out[7]: 15
In [ ]:
}
return story;
}
In [ ]:
Out[9]: ""Little Red Riding " is a/an fairy tale for young children.
It is a story about a/an girl and a wolf.
The girl's mother sends her to take to her sick grandmother.
The mother tells her she must not on the way.
A wolf sees the girl walking through the and makes a plan to her.
The wolf asks the girl where she is going.
The girl him, because he seems .
Then the wolf tells her to pick some for her grandmother.
While she is flowers, the wolf goes to her grandmother's house and eats her.
He puts on the grandmother's and gets into her bed.
When the girl arrives at her grandmother's house, she gets into with the wolf.
The wolf leaps upon the child and her."
In [ ]:
In [ ]:
https://csci1060u.science.ontariotechu.ca/csci-env/user/abdullah.mustafa@ontariotechu.net/lab/tree/work/f23lab04_starter.ipynb 3/3